Tech Support > Microsoft Windows > Drivers > Could I get associated symbolic link of a specific PDO?
Could I get associated symbolic link of a specific PDO?
Posted by Jackal Huang on September 4th, 2007


I implemented a stream class minidriver.
Minidriver's initialize routine is called and PDO is passed by class driver.
I would like to know whether any symbolic name is associated with PDO.

I ever tried IoGetDeviceInterfaces to get symbolic link list.
But the list seems to be meaningless.
I use IoRegisterDeviceInterface to register one interface and get symbolic
name.
Immediately I called IoGetDeviceInterfaces, the result is same.

How should I find the associated interface GUID of a PDO and its symbolic
name?

Best Regards
Jack Huang


Posted by Eliyas Yakub [MSFT] on September 5th, 2007


What do you mean by the list is meaningless? What are you expecting to see
in the SymbolicLinkList?

--
- This posting is provided "AS IS" with no warranties, and confers no
rights.


Posted by Jackal Huang on September 8th, 2007


I'm developing STI USD minidriver on Win2000.
It's an user mode DLL.

I also developed a stream class minidriver for PC camera device.
I found the kernel driver should write a symbolic link name in
the driver registry key with value name "CreateFileName" .

USD minidriver will call IStiDeviceControl::GetMyDevicePortName()
to get a port name and pass it to CreateFile() to get a device handle.

IStiDeviceControl::GetMyDevicePortName just returns the string of
"CreateFileName" registry value.

If I can name the FDO, I can create the symbolic link name as
\\dosdevice\devxx
and use symbolic link name as \\.\devxx in user mode program.
However, PDO and FDO of the device are not created by my stream class
minidriver.
I can call IoGetDeviceInterfaces to get a symbolic link name of kernel name
space.
This string cannot be used directly in user mode program.

So I want to know how to solve this problem.

Best Regards
Jack Huang

"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> ...



Similar Posts