Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Installing Camera driver programmatically

[b][red]This message was edited by leojose at 2005-10-21 1:2:33[/red][/b][hr]
Hi all,

What I have is a .inf and .sys file of a Camera driver. I would like to install it on my WinXP machine programmatically.
Earlier, I managed to install a printer driver (.inf an .ppd files) by using
[CODE]
if( !CreateProcess( NULL, //ModuleName, // module name
sCommandLine2
, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
{
printf("CreateProcess2 failed
");
return false;
}
[/CODE]
where
[CODE]
sCommandLine2 = "rundll32 printui.dll,PrintUIEntry /q /if /b "PrinterName" /f "c:\gs\gs8.15\lib\PrinterName.inf" /r file: /m "PrinterName
[/CODE]
Is there any similar method to install a Camera driver?

Thanks


Sign In or Register to comment.