hi,
is there any way to get the service name of a particular device object
opened with CreateFile in usermode?
(for example: device name = Serial0 => service name = Serial, dev.name =
Serial1 => service name = VComm, …)
thanks,
daniel.
That depends on where you got the device name from. If you got it from
SetupDi* functions, then use SetupDi* to get information about the PNP
device. If you got it from enumerating objects in the NT “native” object
directory, then it’s a bit more difficult.
– arlie
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of L3sT4Rd
Sent: Saturday, February 04, 2006 11:52 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] service name from device name?
hi,
is there any way to get the service name of a particular device object
opened with CreateFile in usermode?
(for example: device name = Serial0 => service name = Serial, dev.name =
Serial1 => service name = VComm, …)
thanks,
daniel.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@stonestreetone.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
One device can have more than one service associated with it
( filter drivers, etc. )
–PA
“L3sT4Rd” wrote in message news:xxxxx@ntdev…
> hi,
> is there any way to get the service name of a particular device object opened with CreateFile in usermode?
> (for example: device name = Serial0 => service name = Serial, dev.name = Serial1 => service name = VComm, …)
> thanks,
> daniel.
>
>
Pavel A. wrote:
One device can have more than one service associated with it
( filter drivers, etc. )–PA
sorry, i should have said, that i only want the topmost service…
Arlie Davis wrote:
That depends on where you got the device name from. If you got it from
SetupDi* functions, then use SetupDi* to get information about the PNP
device. If you got it from enumerating objects in the NT “native” object
directory, then it’s a bit more difficult.– arlie
thanks, i think SetupDiGetDeviceRegistryProperty is what i’ve been
looking for.
daniel.
From user mode - no ways.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “L3sT4Rd”
To: “Windows System Software Devs Interest List”
Sent: Saturday, February 04, 2006 7:52 PM
Subject: [ntdev] service name from device name?
> hi,
> is there any way to get the service name of a particular device object
> opened with CreateFile in usermode?
> (for example: device name = Serial0 => service name = Serial, dev.name =
> Serial1 => service name = VComm, …)
> thanks,
> daniel.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
well dunno…but i thought i already got it working…!?
ok, i don’t query the service name by the file handle returned by
CreateFile but through SetupDiXXX calls instead
and everything seems to work fine…
daniel.
Maxim S. Shatskih wrote:
From user mode - no ways.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com----- Original Message -----
From: “L3sT4Rd”
>To: “Windows System Software Devs Interest List”
>Sent: Saturday, February 04, 2006 7:52 PM
>Subject: [ntdev] service name from device name?
>
>
>
>
>>hi,
>>is there any way to get the service name of a particular device object
>>opened with CreateFile in usermode?
>>(for example: device name = Serial0 => service name = Serial, dev.name =
>>Serial1 => service name = VComm, …)
>>thanks,
>>daniel.
>>
>>