Skip to main content
0 votes
0 answers
75 views

Say I want to iterate through all of the devices on a system, and for each device, iterate through its interfaces. Given the information available from an SP_DEVINFO_DATA object, how can I iterate ...
Edward Falk's user avatar
  • 10.2k
0 votes
0 answers
33 views

I use the following demo to simultaneously obtain the instanceId and guid of the device, but on my computer, all devices obtain the same SPDRP_CLASSGUID value. Why is this? int main() { HDEVINFO ...
伟大的狗王's user avatar
1 vote
0 answers
102 views

I'm trying to discover if a Bluetooth Low Energy (BLE) device, that has been paired previously, is currently enabled using setupAPI in a C program with minGW compiler. At the moment I'm trying to use ...
Jonny Schubert's user avatar
0 votes
0 answers
28 views

I am currently working on a C# program that is responsible for monitoring COM ports. In case of an error condition, the connected device should be restarted. For this purpose, all relevant devices are ...
SourceC0de's user avatar
0 votes
0 answers
245 views

I have this C++ WinAPI program. If we assume that the following source code is compiled into devctrl.exe, running devctrl.exe <DEVICE_GUID> uninstalls the device with GUID class <DEVICE_GUID&...
coderodde's user avatar
  • 967
0 votes
1 answer
203 views

Now I have this non-working (minimum?) example: #pragma comment (lib, "Setupapi.lib") #pragma comment (lib, "newdev.lib") #include <windows.h> #include <newdev.h> #...
coderodde's user avatar
  • 967
1 vote
1 answer
2k views

I'm writing a low level input system with the HID API. I've gotten to the point where I can enumerate all of the devices on a system, and open them with CreateFile. The problem I'm running into now is ...
Zachary Peterson's user avatar
1 vote
1 answer
1k views

I have a lot of experience with libusb, libudev, and SetupAPI for writing Windows drivers, but it's totally unclear to me what CfgMgr32 offers over SetupAPI for Windows USB applications. Microsoft ...
Charles Lohr's user avatar
  • 1,021
2 votes
1 answer
572 views

There is a property "Last Arrival Date" that is present for my USB device in the Device Manager UI. screenshot (device-manager/properties/details) How can I programmatically retrieve that ...
Jason L.'s user avatar
0 votes
0 answers
827 views

I'm trying to port code from SetupAPI to cfgmgr32, since Microsoft now recommends this, and I do the following query: SetupDiGetClassDevsExA(&GUID_DEVINTERFACE_COMPORT, nullptr, nullptr, ...
KitsuneSan's user avatar
3 votes
1 answer
2k views

Overview... I have read How to get device interface GUID for a device? and How to open a handle to a device using its Device Instance ID?, but I'm still confused about how I am to (or whether I should ...
Ben's user avatar
  • 338
2 votes
3 answers
3k views

I have two UVC cameras in a stereoscopic setup, controlled with a C++ MediaFoundation app. I need to uniquely identify them in order to assign left and right to each physical device. This camera model ...
Numeric Anomaly's user avatar
1 vote
0 answers
2k views

I have C++ code (works well with VS6 up to VS2017) that enumerates USB devices and retrieves several properties. I recently added SPDRP_DEVTYPE: SetupDiGetDeviceRegistryProperty(hDevInfo, &DevData,...
user3677092's user avatar
2 votes
0 answers
600 views

When I plug a USB RNDIS device (Linux gadget) to a Windows PC, is seen as 'RNDIS' device, without driver. To make it work I go to Device Manager, and manually select the Microsoft Generic Remote RNDIS ...
StefanoV's user avatar
  • 495
1 vote
1 answer
382 views

I'm calling the Setup API function SetupDiGetDriverInfoDetail like this: SP_DRVINFO_DETAIL_DATA_W driverDetailData = SP_DRVINFO_DETAIL_DATA_W(); driverDetailData.cbSize = sizeof(...
Boris's user avatar
  • 9,041

15 30 50 per page
1
2 3 4 5
8