Hi,
I would like to trigger AddDevice() with the use of a Win32 API (to add a
virtual PnP device). Is it possible ? If yes, how ?
The keywords here are: ‘root enumerated device’ and ‘SetupApi’
DDK samples ‘install’ and ‘devcon’ should help.
I wonder if this is in the ‘Kernel Driver FAQ’.
I admit I haven’t read the FAQ yet.
Norbert.
“You are never alone with a schizophrenic.”
---- snip ----
Hi,
I would like to trigger AddDevice() with the use of a Win32 API (to add a
virtual PnP device). Is it possible ? If yes, how ?
---- snip ----
Also the Toaster sample will shows how. This is in the DDK.
Ok I’m going to look at it
“William Michael Jones” a écrit dans le message
de news:xxxxx@ntdev…
>
> Also the Toaster sample will shows how. This is in the DDK.
>
>
> I would like to trigger AddDevice() with the use of a Win32 API (to add a
virtual PnP device). Is it possible ? If yes, how ?
Create a root-enumerated devnode using SetupDi APIs. IIRC Toaster sample has
such a code.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com