get a handle to PNP device

Hi all

Is there any way to get handle in user mode for PNP device by just
mentioning path as “\device” ? I understand that PNP devices cannot use
IoCreateSymbolicName method from DDK . Or atleast by the symbolic name that
is displayed in winobj.exe utility .
I tried to use the symbolic name that is displayed in winobj.exe utility .
It did not help me . can somebody help me ?

Thanks in advance
srinivas


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

try \.{GUID_PnP_Manager_Created} for example:

hDevice=CreateFile(TEXT(“\\.\{D75Dfc28-4268-4bab-baa7-08af7533bdb0}”),
GENERIC_WRITE | GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
0
);

RG

-----Original Message-----
From: Srinivasa Rao Deevi [mailto:xxxxx@Transilica.com]
Sent: Thursday, June 28, 2001 12:30 AM
To: NT Developers Interest List
Subject: [ntdev] get a handle to PNP device

Hi all

Is there any way to get handle in user mode for PNP device by just
mentioning path as “\device” ? I understand that PNP devices cannot use
IoCreateSymbolicName method from DDK . Or atleast by the symbolic name that
is displayed in winobj.exe utility .
I tried to use the symbolic name that is displayed in winobj.exe utility .
It did not help me . can somebody help me ?

Thanks in advance
srinivas


You are currently subscribed to ntdev as: xxxxx@envara.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com