J
Jerry West
Dim did As SP_DEVINFO_DATA
hWnd& = SetupDiGetClassDevs(0, 0, 0, &H4)
did.cbsize = 28
sPropertyBuffer$ = vbNullString
lRet& = SetupDiGetDeviceRegistryProperty(hWnd&, did, &H1C,
lPropertyRegDataType&, sPropertyBuffer$, Len(sPropertyBuffer$),
lRequiredSize&)
The call to SetupDiGetDeviceRegistryProperty always fails with
ERROR_INVALID_PARAMETER. I have a valid handle in hWnd&. What could be wrong
here?
Any insight would be greatly appriciated.
JW
hWnd& = SetupDiGetClassDevs(0, 0, 0, &H4)
did.cbsize = 28
sPropertyBuffer$ = vbNullString
lRet& = SetupDiGetDeviceRegistryProperty(hWnd&, did, &H1C,
lPropertyRegDataType&, sPropertyBuffer$, Len(sPropertyBuffer$),
lRequiredSize&)
The call to SetupDiGetDeviceRegistryProperty always fails with
ERROR_INVALID_PARAMETER. I have a valid handle in hWnd&. What could be wrong
here?
Any insight would be greatly appriciated.
JW