Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category.

How to get a device's location information?

Hi, all
I want to get a PCI device's location information, just like PCI bus 0, device 31, function 6

SetupDiGetDeviceRegistryProperty
(
m_hDevInfo,
&DeviceInfoData,
SPDRP_LOCATION_INFORMATION,
NULL,
(PBYTE)DeviceLocation,
buffersize,
&buffersize
)
This function can get the Location data as the italic string metioned above. But on deferent operating system language region settings,
it can return in diferent language, like Japanese or Korean.
Is there any way to get the three positional parameters directly? Or, I have to make a match for each language.



xxxxx@sina.com

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!