|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
SetupDiGetDeviceInterfaceDetail(hardwareDeviceInfo, deviceInterfacedata, FunctionClassDeviceData.cbsize, predictedLength, requiredLength, 0)
请教各位大侠,我在调用上述函数时,能成功调用,但是参数FunctionClassDeviceData的返回值却不变,请问这是为什么?
说明:
1.参数hardwareDeviceInfo:hardwareDeviceInfo = SetupDiGetClassDevs(pGuid, 0, 0, &H12)
2.参数deviceInterfacedata:SetupDiEnumDeviceInterfaces(hardwareDeviceInfo, 0, pGuid, i, deviceInterfacedata)
3.参数:FunctionClassDeviceData:
FunctionClassDeviceData.cbsize=5
ReDim FunctionClassDeviceData.DevicePath(254)
Public Structure SP_DEVICE_INTERFACE_DETAIL
Public cbsize As Int32
Public DevicePath() As Byte
End Structure
Dim FunctionClassDeviceData As SP_DEVICE_INTERFACE_DETAIL
4.参数predictedLength:255 |
|