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
1
vote
1 answer

Link info from EnumDisplayDevices with info from SetupDiOpenDevRegKey (EDID)

Windows 7, multi-monitors configurations. Cross compiled on linux (opensuse 13.1) with gcc-mingw-5.1.0 (which may actually be the cause of me not getting the expected values). I get a list of all display devices with EnumDisplayDevices: Code: int…
GuillaumeR
  • 49
  • 6
1
vote
0 answers

SetupApi : enable virtual network adapter using c++ setupApi

On windows, I am unable to find how to enable hotspot adapter i.e. virtual adapter through coding if it was disabled manually from 'Network Connections'. I want to implement as we do from device manager and enable it by right click on network…
1
vote
2 answers

SetupAPI - SetupDiGetDeviceRegistryProperty substitute?

I need to use some SetupAPI functions in firefox extension. I need to retrieve device's friendly name. I figured it can be done by SetupDiGetClassDevs, SetupDiEnumDeviceInfo, SetupDiGetDeviceRegistryProperty and SetupDiDestroyDeviceInfoList. BUT! I…
Kobrar
  • 184
  • 1
  • 1
  • 10
1
vote
0 answers

Getting the Physical Device Object for a specific volume id

I want to query different flags of a specific volume. Input should be the volume id, for instance: \\?\Volume{b1a245f3-0000-0000-0000-100000000000}\, then some flags are checked and the output is true/false depending if the desired flags are…
mkay
  • 11
  • 2
1
vote
2 answers

CM_Get_DevNode_Property_Keys Is there a way to get names of the keys

I am able to get the property keys (DEVPROPKEY) of a devnode. However I did not found a way to get the names and/or descriptions of those keys. It is allso possible to get the values of those property keys using CM_Get_DevNode_PropertyW. if I use a…
coban
  • 122
  • 1
  • 6
1
vote
1 answer

Getting the Physical Device Object name of a disk device

I need to retrieve the "Physical Device Object name" of a disk device from a user mode application on Windows, as seen in Device Manager. I have a solution now that involves a kernel driver that gets loaded and interrogated through IOCTLs. Once in…
KIV
  • 745
  • 8
  • 12
1
vote
1 answer

The implementation of SCardGetReaderDeviceInstanceId

Microsoft implements SCardGetReaderDeviceInstanceId in winscard.dll on Windows8 and later version. I really want to know the implementation of this function. I tried to decompile it but am not good at decompilation, I got nothing. I am asking…
SevenWow
  • 305
  • 3
  • 14
1
vote
1 answer

How to retrieve 'bus reported device description' for Universal Serial Bus Controllers in MATLAB?

I am trying to extract 'Bus reported device description' and 'Bus Relations' informations for Universal Serial Bus Controllers in Matlab. I can't find it in the registry and I don't know exactly how to use setupapi.dll function in Matlab to get the…
NumLock
  • 73
  • 1
  • 9
1
vote
1 answer

Windows XP SetupAPI refuses to install non-WHQL-signed .INFs from a service

My service is invoking SetupCopyOEMInf to install an Authenticode but not WHQL signed INF file. SetupCopyOEMInf is returning with CERT_E_WRONG_USAGE (0x800B0110) and the INF file is not being installed.
Ilya
  • 5,533
  • 2
  • 29
  • 57
1
vote
1 answer

Getting device path for CreateFile while enumerating devices with SetupDiEnumDeviceInfo

I need to get info about all connected usb mass storage devices. For now I'm using this code to do the job HDEVINFO deviceInfoList; deviceInfoList = SetupDiGetClassDevs(NULL, _T("USBSTOR"), NULL, DIGCF_ALLCLASSES | DIGCF_PRESENT); if…
s.maks
  • 2,583
  • 1
  • 23
  • 27
1
vote
0 answers

USB device location on windows XP

I'm trying to group USB devices based on their parent hub by using the SetupDiGetDeviceRegistryProperty function with the SPDRP_LOCATION_INFORMATION property. On windows 7 it's working great - the string I'm getting is a nice "PORT_XXXX&HUB_XXXX".…
liorda
  • 1,552
  • 2
  • 15
  • 38
1
vote
2 answers

Find out which driver is loaded for a device via SetupApi

I've been struggling with the Setup API for days now and there is still one thing that bugs me: I can load a list of devices, I can use those device handles to retrieve a list of appropriate drivers from the driverstore, but how do I determine which…
Janis F
  • 2,637
  • 1
  • 25
  • 36
1
vote
0 answers

Problems with "SetupScanFileQueue" callback from SetupAPI C#

I've implemented a SetupAPI wrapper in C# that enumerates devices based on GUIDs. I have, more or less, converted the DevCon c++ example code found on MSDN to C# (Yes I very much know that this is all veyr painfully to do in .NET, but it's fun and a…
Gnm
  • 129
  • 6
0
votes
1 answer

Code Access Security is preventing PInvoking Setup API calls

I'm rewording this question since I understand a bit more now. Originally, what I had was too vague. I've discovered that I'm being routed by something called "Code Access Security." This is old-hat to everyone reading this, I'm sure, but not to…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51
0
votes
1 answer

Get a list of SATA HBAs from setup api

I'm not sure what I'm missing but it's time to ask from more knowledgeable people than I. I'm using the HDC GUID that I found here. I'm trying to open with this in my C++ code: // note: devGuid is pointer of type struct GUID in the class this ctor…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51