Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
- Dan.
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Yes, KMDF will manage on symbolic link for you on a device. If you
happen to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a
symlink against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty
(DevicePropertyPhysicalDeviceObjectName)), which is what KMDF does for
an unnamed devobj when you call WdfDeviceCreateSymbolicLink). Remember
to destroy the symlinks you create via IoCreateSymbolicLink in the
WDFDEVICE’s EvtObjectCleanup routine (KMDF will automatically destroy
the symlink created by WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
“Dan Kyler” wrote in message news:xxxxx@ntdev…
nope. I don’t think so.
I was able to create another GUID associated with the same device…
In my drivers, I have interfaces that are generic to the user mode app that
each driver can choose to implement, with some supporting IOCTLs that are
implemented when that GUID is supported. eg.
// Implements functionality for the device IOCTL.
WdfDeviceCreateDeviceInterface(Device, (LPGUID) &MyDeviceGUID, NULL);
// Implements Trace Control IOCTLs - some of our drivers might support it
and others may not.
WdfDeviceCreateDeviceInterface(Device, (LPGUID) &MySpecialTracesGUID, NULL);
> Is there a limit of one symbolic link per device created with
> WdfDeviceCreateSymbolicLink?
>
> Thanks,
> - Dan.
>
>
Thanks.
Can multiple KMDF managed symlinks be considered as an enhancement request?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 10:47 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Yes, KMDF will manage on symbolic link for you on a device. If you happen
to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a symlink
against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty (DevicePropertyPhysicalDeviceObjectName)),
which is what KMDF does for an unnamed devobj when you call
WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you create
via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup routine (KMDF
will automatically destroy the symlink created by
WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
KMDF supports an unlimited number of device interfaces associated with a
device (limited by available memory). Device interfaces are the way we
want ppl to create accessible names so there is full support there. We
realize that ppl still use symbolic links, so we have symbolic link
support…BUT, I have seen very few drivers need more then one symbolic
link, so we decided there was not enough need to support more then one
symbolic link name on a device (and there is a workaround, you create
the extra sym links on your own).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashok Bruno
Sent: Tuesday, July 18, 2006 9:52 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] WdfDeviceCreateSymbolicLink - only one?
“Dan Kyler” wrote in message news:xxxxx@ntdev…
nope. I don’t think so.
I was able to create another GUID associated with the same device…
In my drivers, I have interfaces that are generic to the user mode app
that each driver can choose to implement, with some supporting IOCTLs
that are implemented when that GUID is supported. eg.
// Implements functionality for the device IOCTL.
WdfDeviceCreateDeviceInterface(Device, (LPGUID) &MyDeviceGUID, NULL);
// Implements Trace Control IOCTLs - some of our drivers might support
it and others may not.
WdfDeviceCreateDeviceInterface(Device, (LPGUID) &MySpecialTracesGUID,
NULL);
> Is there a limit of one symbolic link per device created with
> WdfDeviceCreateSymbolicLink?
>
> Thanks,
> - Dan.
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
We can consider it, but in what scenario do you need it? We haven’t
added it b/c there was very little market need for it (and the
limitation is not a KMDF adoption blocker since there is a very easy
workaround for it).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Thanks.
Can multiple KMDF managed symlinks be considered as an enhancement
request?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 10:47 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Yes, KMDF will manage on symbolic link for you on a device. If you
happen to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a
symlink against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty
(DevicePropertyPhysicalDeviceObjectName)),
which is what KMDF does for an unnamed devobj when you call
WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you
create via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup
routine (KMDF will automatically destroy the symlink created by
WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Can I use device interfaces without a PDO?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 11:12 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
We can consider it, but in what scenario do you need it? We haven’t added
it b/c there was very little market need for it (and the limitation is not a
KMDF adoption blocker since there is a very easy workaround for it).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Thanks.
Can multiple KMDF managed symlinks be considered as an enhancement request?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 10:47 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Yes, KMDF will manage on symbolic link for you on a device. If you happen
to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a symlink
against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty (DevicePropertyPhysicalDeviceObjectName)),
which is what KMDF does for an unnamed devobj when you call
WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you create
via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup routine (KMDF
will automatically destroy the symlink created by
WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
No, you need a PDO for device interfaces. Again, why do you need
multiple sym links to the same device? What functionality are you
enabling?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 10:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Can I use device interfaces without a PDO?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 11:12 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
We can consider it, but in what scenario do you need it? We haven’t
added it b/c there was very little market need for it (and the
limitation is not a KMDF adoption blocker since there is a very easy
workaround for it).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Thanks.
Can multiple KMDF managed symlinks be considered as an enhancement
request?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 10:47 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Yes, KMDF will manage on symbolic link for you on a device. If you
happen to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a
symlink against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty
(DevicePropertyPhysicalDeviceObjectName)),
which is what KMDF does for an unnamed devobj when you call
WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you
create via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup
routine (KMDF will automatically destroy the symlink created by
WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
It’s a non-pnp driver with control devices that present a volume interface.
I want a volume GUID name, and a drive letter.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 11:50 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
No, you need a PDO for device interfaces. Again, why do you need multiple
sym links to the same device? What functionality are you enabling?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 10:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Can I use device interfaces without a PDO?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 11:12 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
We can consider it, but in what scenario do you need it? We haven’t added
it b/c there was very little market need for it (and the limitation is not a
KMDF adoption blocker since there is a very easy workaround for it).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Thanks.
Can multiple KMDF managed symlinks be considered as an enhancement request?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, July 18, 2006 10:47 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Yes, KMDF will manage on symbolic link for you on a device. If you happen
to need more then one symbolic link per device, you have to
manage it yourself. You can get the device’s name by calling
WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
yourself. If you created an unnamed device object, you can create a symlink
against the PDO’s name (which can be retrieved by calling
WdfDeviceAllocAndQueryProperty (DevicePropertyPhysicalDeviceObjectName)),
which is what KMDF does for an unnamed devobj when you call
WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you create
via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup routine (KMDF
will automatically destroy the symlink created by
WdfDeviceCreateSymbolicLink).
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
Sent: Tuesday, July 18, 2006 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Is there a limit of one symbolic link per device created with
WdfDeviceCreateSymbolicLink?
Thanks,
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Create the PDO using IoReportDetectedDevice with all NULLs as arguments.
I believe this is what FtDisk uses to create the HarddiskVolume%d devices -
they are PDOs.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Dan Kyler”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, July 18, 2006 10:10 PM
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
> It’s a non-pnp driver with control devices that present a volume interface.
> I want a volume GUID name, and a drive letter.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 11:50 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> No, you need a PDO for device interfaces. Again, why do you need multiple
> sym links to the same device? What functionality are you enabling?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 10:36 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Can I use device interfaces without a PDO?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 11:12 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> We can consider it, but in what scenario do you need it? We haven’t added
> it b/c there was very little market need for it (and the limitation is not a
> KMDF adoption blocker since there is a very easy workaround for it).
>
> d
>
> – I can spell, I just can’t type.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 9:54 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Thanks.
>
> Can multiple KMDF managed symlinks be considered as an enhancement request?
>
> - Dan.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 10:47 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> Yes, KMDF will manage on symbolic link for you on a device. If you happen
> to need more then one symbolic link per device, you have to
> manage it yourself. You can get the device’s name by calling
> WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
> yourself. If you created an unnamed device object, you can create a symlink
> against the PDO’s name (which can be retrieved by calling
> WdfDeviceAllocAndQueryProperty (DevicePropertyPhysicalDeviceObjectName)),
> which is what KMDF does for an unnamed devobj when you call
> WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you create
> via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup routine (KMDF
> will automatically destroy the symlink created by
> WdfDeviceCreateSymbolicLink).
>
> d
>
> – I can spell, I just can’t type.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 9:38 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Is there a limit of one symbolic link per device created with
> WdfDeviceCreateSymbolicLink?
>
> Thanks,
> - Dan.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
You cannot enumerate such a PDO using KMDF if your driver is going to
control the PDO part of the stack. KMDF does not support calling
IoReportDetectedDevice w/in the KMDF client driver. If it works, it is
not by design…it certainly was not tested.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Wednesday, July 19, 2006 2:58 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] WdfDeviceCreateSymbolicLink - only one?
Create the PDO using IoReportDetectedDevice with all NULLs as
arguments.
I believe this is what FtDisk uses to create the HarddiskVolume%d
devices - they are PDOs.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Dan Kyler”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, July 18, 2006 10:10 PM
Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
> It’s a non-pnp driver with control devices that present a volume
interface.
> I want a volume GUID name, and a drive letter.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 11:50 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> No, you need a PDO for device interfaces. Again, why do you need
multiple
> sym links to the same device? What functionality are you enabling?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 10:36 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Can I use device interfaces without a PDO?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 11:12 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> We can consider it, but in what scenario do you need it? We haven’t
added
> it b/c there was very little market need for it (and the limitation is
not a
> KMDF adoption blocker since there is a very easy workaround for it).
>
> d
>
> – I can spell, I just can’t type.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 9:54 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Thanks.
>
> Can multiple KMDF managed symlinks be considered as an enhancement
request?
>
> - Dan.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Tuesday, July 18, 2006 10:47 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
>
> Yes, KMDF will manage on symbolic link for you on a device. If you
happen
> to need more then one symbolic link per device, you have to
> manage it yourself. You can get the device’s name by calling
> WdfDeviceRetrieveDeviceName() and then calling IoCreateSymbolicLink
> yourself. If you created an unnamed device object, you can create a
symlink
> against the PDO’s name (which can be retrieved by calling
> WdfDeviceAllocAndQueryProperty
(DevicePropertyPhysicalDeviceObjectName)),
> which is what KMDF does for an unnamed devobj when you call
> WdfDeviceCreateSymbolicLink). Remember to destroy the symlinks you
create
> via IoCreateSymbolicLink in the WDFDEVICE’s EvtObjectCleanup routine
(KMDF
> will automatically destroy the symlink created by
> WdfDeviceCreateSymbolicLink).
>
> d
>
> – I can spell, I just can’t type.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dan Kyler
> Sent: Tuesday, July 18, 2006 9:38 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] WdfDeviceCreateSymbolicLink - only one?
>
> Is there a limit of one symbolic link per device created with
> WdfDeviceCreateSymbolicLink?
>
> Thanks,
> - Dan.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer