On Sun Jan 21 18:04:40 2024 +0000, Zebediah Figura wrote:
This implementation is only going to return devices that happen to have been opened. That doesn't seem like it's going in the right direction even for a semi-stub. It needs tests anyway. And if we're going to have a semi-stub that actually implements the basic functionality, it's not really much of a semi-stub anymore. Better to change the message to a TRACE but add a FIXME for nonzero flags. Also, if we're touching functions, let's please get rid of the unnecessary pointer typedefs and Hungarian and camel-case variable names.
im not too familiar with setupapi/cfgmgr32, but MSDN says:
The function retrieves the device instance handle for the specified device only if the device is currently configured in the device tree.
Does this mean that the device has to be opened for it to get a device instance handle?
I should probably write tests to check