From: JY on
Hi,

I have an MFC application which needs to install a driver (I could use
SetupCopyOEMInf() or DriverPackageInstall() , etc), but I have to check if it
is already installed, and proceed only if it isn't. How do I check this? Is
there any API available for this?

TIA,
JY
From: Maxim S. Shatskih on
> SetupCopyOEMInf() or DriverPackageInstall() , etc), but I have to check if it
> is already installed, and proceed only if it isn't. How do I check this? Is
> there any API available for this?

Look at the source of "devcon enum"

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: JY on
> Look at the source of "devcon enum"
>
Could you post the link to it? I couldn't find it.
TIA,
JY
From: Don Burn on
The source is in src\setup\devcon in the WDK directory. Enum is one of the
commands, it cannot be posted.

--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply




"JY" <sd(a)nospamgroup.com> wrote in message
news:4DE68B0D-E126-4D91-8375-D3B700CAC951(a)microsoft.com...
>> Look at the source of "devcon enum"
>>
> Could you post the link to it? I couldn't find it.
> TIA,
> JY
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4834 (20100204) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4834 (20100204) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




From: JY on
"Don Burn" wrote:

> The source is in src\setup\devcon in the WDK directory. Enum is one of the
> commands, it cannot be posted.

OK, I've got the code for devcon, but did not find any command named "Enum"
in those files (specifically cmds.cpp). Could you let me know which command
in particular to refer to?

TIA,
JY