Questions tagged [setupapi]

SetupAPI is a Win32API that is used for installing device drivers and in enumerating existing devices on a Windows computer.

SetupAPI is a Win32API that is used for installing device drivers and in enumerating existing devices on a Windows computer.

116 questions
0
votes
2 answers

Internal works of WMI?

I'm curious as to how WMI works. Particularly, I am currently using WMI to query for the physical monitors via "Select * from Win32_DesktopMonitor" as it has consistently given me the correct result across multiple platforms since I want to know…
chromic
  • 1
  • 1
  • 3
0
votes
1 answer

Find HID Devices C#

I need to connect to a USB-device connected to the computer, I have looked around a bit and found some example projects, but cant get this to work. Everything runs nice, but I don't even get into the while-function. Since SetupDiGetClassDevs is from…
Nick3
  • 639
  • 1
  • 14
  • 40
0
votes
1 answer

SetupDiGetClassDevs to list SCSI drives fails with error code 13 (ERROR_INVALID_DATA)

I have a rather interesting problem for which I'm unable to find a resolution. I'm using Setup API to list drives in the system. I have no trouble using the code listed below when setting the enumerator to "IDE". My angst comes when the…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51
0
votes
1 answer

SetupDiGetClassDevs causing error on XP

I have a Win32 application that is invoked by another WPF application. In the Win32 tray application I am registering for USB Device notifications. In this I use the API call to SetupDiGetClassDevs So that I can look for any connected devices. On XP…
koderiter
  • 441
  • 1
  • 4
  • 9
0
votes
1 answer

What do I pass as the last value to the function SetupAPI.DLL.SetupDiEnumDeviceInterfaces()?

I'm working in Python trying to create a simple program that reads and write from and to a fairly simple USB device. The problem I'm having is that since PyWinUSB and PyUSB don't seem to have what I need (trying to write to the device makes things…
Will
  • 281
  • 1
  • 6
  • 18
0
votes
1 answer

Calling SetupDiGetClassDevs from Python only returns an integer value

I'm trying to create a simple read/write application for a fairly simple USB device, but it's turning out to be not so simple at all. I'm using WinUSB and SetupAPI DLLs and working from scratch since I can't seem to find anything that actually works…
Will
  • 281
  • 1
  • 6
  • 18
0
votes
1 answer

Linker error with DiInstallDevice x86

I'm using DiInstallDevice function (MSDN) for driver installing. However, I've got a linker error when building solution under x86, while x64 version is OK. Error is LNK2019, linked was unable to find function in x86 version of newdev.lib. Here is a…
Barbarian
  • 11
  • 4
0
votes
1 answer

WIX installer, include different merge modules depending on platform

I'm writing an an application with a WIX installer. The application is requires a driver (which I also wrote), and this is installed via a merge module included in the main WIX installer project. Different platforms require a different driver…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
0
votes
1 answer

SetupVerifyInfFile returns ERROR_INVALID_PARAMETER (0x57) for windows xp

This code successfully works on Vista/Win7, but it fails on win xp (returns ERROR_INVALID_PARAMETER). There're no docs in internet about this problem. Does anybody know where the mistake is? Thanks. QList > versions; versions <<…
-1
votes
1 answer

why is LogSeverity #defined as DWORD in windows SetupAPI

I see this #define in windows kit 10 SetupAPI.h in line 4871 #define LogSeverity DWORD So I can't do something like typedef int LogSeverity This effectively makes LogSeverity like a reserved keyword if I dont want to redefine…
device_exec
  • 1,686
  • 1
  • 9
  • 7
-1
votes
1 answer

use SetupGetInfDriverStoreLocation function

BOOL SetupGetInfDriverStoreLocation( _In_ PCTSTR FileName, _In_opt_ PSP_ALTPLATFORM_INFO AlternatePlatformInfo, _In_opt_ PCTSTR LocaleName, _Out_ PTSTR ReturnBuffer, _In_ DWORD …
1 2 3 4 5 6 7
8