http://bugs.winehq.org/show_bug.cgi?id=35224
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello Luke,
I've seen your post to wine-devel (I'm not subscribed but watch it).
Implementing 'Win32_PnPEntity' WMI class alone doesn't solve your problem. It's just another representation of information that is typically managed by the Windows Plug and Play (PnP) manager.
The information is maintained in registry:
HKLM\System\CurrentControlSet\Enum<enumerator><deviceID><instanceID>
To give you an overview how this information is created on Windows:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff540535%28v=vs.85%... ("Adding a PnP Device to a Running System")
Implementing PNP manager and other needed infrastructure is obviously out of scope for now.
If you fake the registry data manually you need a proper way to retrieve it. This is typically done using setupapi's SetupDiXXX API.
There are many articles, blog posts etc. how to use that API.
Wine source for reference: http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/setupapi/devinst.c
Regards