Hi,
I written a win2k plug n play driver for pcmcia 16 bit PC card and
this driver successfully recognized the card. In driver, in
IoCreateDevice funtion I given Device name as NULL and Device type as
FILE_DEVICE_UNKNOWN. I used IoRegisterDeviceInterface() to pass the
parameter class GUID as mentioned in INF file, and Address of symbolic
Link Name.
To get the handle of this device,I want to use this symbolic Link
Name in CreateFile() in the Application.
My doubt is how I can access the symbolic Link name in the
application,because Iam having symbolic Link name in the driver.
please guide me in getting the handle of the device in my application.
Shall I use IoCreateSymbolicLink()?
Is there any other method to get the handle?
please reply the procedure.

bye,
Mahender.

Re: How to use Symbolic Link Name of IoRegisterDeviceInterface() by Mark

Mark
Sat Sep 10 18:04:13 CDT 2005

mahi wrote:
>
> Hi,
> I written a win2k plug n play driver for pcmcia 16 bit PC card and
> this driver successfully recognized the card. In driver, in
> IoCreateDevice funtion I given Device name as NULL and Device type as
> FILE_DEVICE_UNKNOWN. I used IoRegisterDeviceInterface() to pass the
> parameter class GUID as mentioned in INF file, and Address of symbolic
> Link Name.
> To get the handle of this device,I want to use this symbolic Link
> Name in CreateFile() in the Application.
> My doubt is how I can access the symbolic Link name in the
> application,because Iam having symbolic Link name in the driver.
> please guide me in getting the handle of the device in my application.
> Shall I use IoCreateSymbolicLink()?
> Is there any other method to get the handle?
> please reply the procedure.
>
> bye,
> Mahender.
>
Use the 'SetupDi*' apis (in the SDK) to enumerate your device interfaces
and obtain the symbolic link names you need.

--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

Re: How to use Symbolic Link Name of IoRegisterDeviceInterface() in the Applications by Doron

Doron
Mon Sep 12 10:40:40 CDT 2005

also, you should use a separate guid from the class GUID in the INF. use a
new guid (see uuidgen.exe to create one) instead.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Mark Roddy" <markr@hollistech.com> wrote in message
news:%23tfg3vltFHA.2592@TK2MSFTNGP09.phx.gbl...
> mahi wrote:
>>
>> Hi,
>> I written a win2k plug n play driver for pcmcia 16 bit PC card and
>> this driver successfully recognized the card. In driver, in
>> IoCreateDevice funtion I given Device name as NULL and Device type as
>> FILE_DEVICE_UNKNOWN. I used IoRegisterDeviceInterface() to pass the
>> parameter class GUID as mentioned in INF file, and Address of symbolic
>> Link Name.
>> To get the handle of this device,I want to use this symbolic Link
>> Name in CreateFile() in the Application.
>> My doubt is how I can access the symbolic Link name in the
>> application,because Iam having symbolic Link name in the driver.
>> please guide me in getting the handle of the device in my application.
>> Shall I use IoCreateSymbolicLink()?
>> Is there any other method to get the handle?
>> please reply the procedure.
>>
>> bye,
>> Mahender.
>>
> Use the 'SetupDi*' apis (in the SDK) to enumerate your device interfaces
> and obtain the symbolic link names you need.
>
> --
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com