Vanara.PInvoke.SetupAPI 3.4.13

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vanara.PInvoke.SetupAPI --version 3.4.13                
NuGet\Install-Package Vanara.PInvoke.SetupAPI -Version 3.4.13                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.SetupAPI" Version="3.4.13" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.SetupAPI --version 3.4.13                
#r "nuget: Vanara.PInvoke.SetupAPI, 3.4.13"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.SetupAPI as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.SetupAPI&version=3.4.13

// Install Vanara.PInvoke.SetupAPI as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.SetupAPI&version=3.4.13                

Vanara

Vanara.PInvoke.SetupAPI NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows SetupAPI.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the AppVeyor build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.SetupAPI

Functions Enumerations Structures
InstallHinfSection SetupAddInstallSectionToDiskSpaceList SetupAddSectionToDiskSpaceList SetupAddToDiskSpaceList SetupAddToSourceList SetupAdjustDiskSpaceList SetupBackupError SetupCancelTemporarySourceList SetupCloseFileQueue SetupCloseInfFile SetupCloseLog SetupCommitFileQueue SetupConfigureWmiFromInfSection SetupCopyError SetupCopyOEMInf SetupCreateDiskSpaceList SetupDecompressOrCopyFile SetupDefaultQueueCallback SetupDeleteError SetupDestroyDiskSpaceList SetupDiAskForOEMDisk SetupDiBuildClassInfoList SetupDiBuildClassInfoListEx SetupDiBuildDriverInfoList SetupDiCallClassInstaller SetupDiCancelDriverInfoSearch SetupDiChangeState SetupDiClassGuidsFromName SetupDiClassGuidsFromNameEx SetupDiClassNameFromGuid SetupDiClassNameFromGuidEx SetupDiCreateDeviceInfo SetupDiCreateDeviceInfoList SetupDiCreateDeviceInfoListEx SetupDiCreateDeviceInterface SetupDiCreateDeviceInterfaceRegKey SetupDiCreateDevRegKey SetupDiDeleteDeviceInfo SetupDiDeleteDeviceInterfaceData SetupDiDeleteDeviceInterfaceRegKey SetupDiDeleteDevRegKey SetupDiDestroyClassImageList SetupDiDestroyDeviceInfoList SetupDiDestroyDriverInfoList SetupDiDrawMiniIcon SetupDiEnumDeviceInfo SetupDiEnumDeviceInterfaces SetupDiEnumDriverInfo SetupDiGetActualModelsSection SetupDiGetActualSectionToInstall SetupDiGetActualSectionToInstallEx SetupDiGetClassBitmapIndex SetupDiGetClassDescription SetupDiGetClassDescriptionEx SetupDiGetClassDevPropertySheets SetupDiGetClassDevs SetupDiGetClassDevsEx SetupDiGetClassImageIndex SetupDiGetClassImageList SetupDiGetClassImageListEx SetupDiGetClassInstallParams SetupDiGetClassPropertyExW SetupDiGetClassPropertyKeys SetupDiGetClassPropertyKeysExW SetupDiGetClassPropertyW SetupDiGetClassRegistryProperty SetupDiGetCustomDeviceProperty SetupDiGetDeviceInfoListClass SetupDiGetDeviceInfoListDetail SetupDiGetDeviceInstallParams SetupDiGetDeviceInstanceId SetupDiGetDeviceInterfaceAlias SetupDiGetDeviceInterfaceDetail SetupDiGetDeviceInterfacePropertyKeys SetupDiGetDeviceInterfacePropertyW SetupDiGetDevicePropertyKeys SetupDiGetDevicePropertyW SetupDiGetDeviceRegistryProperty SetupDiGetDriverInfoDetail SetupDiGetDriverInstallParams SetupDiGetHwProfileFriendlyName SetupDiGetHwProfileFriendlyNameEx SetupDiGetHwProfileList SetupDiGetHwProfileListEx SetupDiGetINFClass SetupDiGetSelectedDevice SetupDiGetSelectedDriver SetupDiInstallClass SetupDiInstallClassEx SetupDiInstallDevice SetupDiInstallDeviceInterfaces SetupDiInstallDriverFiles SetupDiLoadClassIcon SetupDiLoadDeviceIcon SetupDiOpenClassRegKey SetupDiOpenClassRegKeyEx SetupDiOpenDeviceInfo SetupDiOpenDeviceInterface SetupDiOpenDeviceInterfaceRegKey SetupDiOpenDevRegKey SetupDiRegisterCoDeviceInstallers SetupDiRegisterDeviceInfo SetupDiRemoveDevice SetupDiRemoveDeviceInterface SetupDiRestartDevices SetupDiSelectBestCompatDrv SetupDiSelectDevice SetupDiSelectOEMDrv SetupDiSetClassInstallParams SetupDiSetClassPropertyExW SetupDiSetClassPropertyW SetupDiSetClassRegistryProperty SetupDiSetDeviceInstallParams SetupDiSetDeviceInterfaceDefault SetupDiSetDeviceInterfacePropertyW SetupDiSetDevicePropertyW SetupDiSetDeviceRegistryProperty SetupDiSetDriverInstallParams SetupDiSetSelectedDevice SetupDiSetSelectedDriver SetupDiUnremoveDevice SetupDuplicateDiskSpaceList SetupEnumInfSections SetupFindFirstLine SetupFindNextLine SetupFindNextMatchLine SetupFreeSourceList SetupGetBinaryField SetupGetFieldCount SetupGetFileCompressionInfo SetupGetFileCompressionInfoEx SetupGetFileQueueCount SetupGetFileQueueFlags SetupGetInfDriverStoreLocation SetupGetInfFileList SetupGetInfInformation SetupGetInfPublishedName SetupGetIntField SetupGetLineByIndex SetupGetLineCount SetupGetLineText SetupGetMultiSzField SetupGetNonInteractiveMode SetupGetSourceFileLocation SetupGetSourceFileSize SetupGetSourceInfo SetupGetStringField SetupGetTargetPath SetupGetThreadLogToken SetupInitDefaultQueueCallback SetupInitDefaultQueueCallbackEx SetupInitializeFileLog SetupInstallFile SetupInstallFileEx SetupInstallFilesFromInfSection SetupInstallFromInfSection SetupInstallServicesFromInfSection SetupInstallServicesFromInfSectionEx SetupIterateCabinet SetupLogError SetupLogFile SetupOpenAppendInfFile SetupOpenFileQueue SetupOpenInfFile SetupOpenLog SetupOpenMasterInf SetupPromptForDisk SetupPromptReboot SetupQueryDrivesInDiskSpaceList SetupQueryFileLog SetupQueryInfFileInformation SetupQueryInfOriginalFileInformation SetupQueryInfVersionInformation SetupQuerySourceList SetupQuerySpaceRequiredOnDrive SetupQueueCopy SetupQueueCopyIndirect SetupQueueCopySection SetupQueueDefaultCopy SetupQueueDelete SetupQueueDeleteSection SetupQueueRename SetupQueueRenameSection SetupRemoveFileLogEntry SetupRemoveFromDiskSpaceList SetupRemoveFromSourceList SetupRemoveInstallSectionFromDiskSpaceList SetupRemoveSectionFromDiskSpaceList SetupRenameError SetupScanFileQueue SetupSetDirectoryId SetupSetDirectoryIdEx SetupSetFileQueueAlternatePlatform SetupSetFileQueueFlags SetupSetNonInteractiveMode SetupSetPlatformPathOverride SetupSetSourceList SetupSetThreadLogToken SetupTermDefaultQueueCallback SetupTerminateFileLog SetupUninstallNewlyCopiedInfs SetupUninstallOEMInf SetupVerifyInfFile SetupWriteTextLog SetupWriteTextLogError SetupWriteTextLogInfLine DEVPROPSTORE DEVPROPTYPE CopyStyle DI_FLAGS DI_FLAGSEX DI_FUNCTION DI_REMOVEDEVICE DI_UNREMOVEDEVICE DIBCI DICD DICLASSPROP DICS DICS_FLAG DICUSTOMDEVPROP DIGCDP_FLAG DIGCF DIOCR DIOD DIODI DIREG DMI DNF FILE_COMPRESSION FILEOP FILEOP_RESULT IDF INF_STYLE INFINFO SCWMI SP_COPY SPCRP SPDIT SPDRP SPDSL SPFILELOG SPFILENOTIFY SPINST SPINT SPPSR SPQ_FLAG SPRDI SPREG SRCINFO SRCLIST LogSeverity SETDIRID SetupFileLogInfo SPLOGFILE SPQ_SCAN SPSVCINST SUOI DEVPROPCOMPKEY DEVPROPERTY DEVPROPKEY CABINET_INFO FILE_IN_CABINET_INFO FILEPATHS FILEPATHS_SIGNERINFO HDEVINFO HDSKSPC HINF HSPFILEQ INFCONTEXT SOURCE_MEDIA SP_ALTPLATFORM_INFO_V1 SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO_V3 SP_CLASSIMAGELIST_DATA SP_CLASSINSTALL_HEADER SP_DETECTDEVICE_PARAMS SP_DEVICE_INTERFACE_DATA SP_DEVICE_INTERFACE_DETAIL_DATA SP_DEVINFO_DATA SP_DEVINFO_LIST_DETAIL_DATA SP_DEVINSTALL_PARAMS SP_DRVINFO_DATA_V2 SP_DRVINFO_DETAIL_DATA SP_DRVINSTALL_PARAMS SP_FILE_COPY_PARAMS SP_INF_INFORMATION SP_INF_SIGNER_INFO_V1 SP_INF_SIGNER_INFO_V2 SP_NEWDEVICEWIZARD_DATA SP_ORIGINAL_FILE_INFO SP_POWERMESSAGEWAKE_PARAMS SP_PROPCHANGE_PARAMS SP_PROPSHEETPAGE_REQUEST SP_REGISTER_CONTROL_STATUS SP_REMOVEDEVICE_PARAMS SP_SELECTDEVICE_PARAMS SP_TROUBLESHOOTER_PARAMS SP_UNREMOVEDEVICE_PARAMS HSPFILELOG SP_ALTPLATFORM_INFO
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.SetupAPI:

Package Downloads
Vanara.SystemServices

Classes for system related items derived from the Vanara PInvoke libraries. Includes extensions for Process (privileges and elavation), FileInfo (compression info), Shared Network Drives and Devices, and ServiceController (SetStartType) that pull extended information through native API calls.

Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

Vanara.PInvoke.CfgMgr32

PInvoke API (methods, structures and constants) imported from Windows CfgMgr32.dll.

Vanara.PInvoke.PortableDeviceApi

PInvoke API (methods, structures and constants) imported from Windows Portable Device (WPD) Api.

Vanara.PInvoke.NewDev

PInvoke API (methods, structures and constants) imported from Windows NewDev.dll.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Vanara.PInvoke.SetupAPI:

Repository Stars
dantmnf/MHC2
information about next generation color management in Windows
Version Downloads Last updated
4.0.4 1,461 9/13/2024
4.0.3 1,053 8/5/2024
4.0.2 904 6/24/2024
4.0.1 1,037 4/30/2024
4.0.0 423 3/29/2024
4.0.0-beta2 372 1/22/2024
4.0.0-beta 447 11/20/2023
3.4.17 4,631 10/18/2023
3.4.16 2,511 8/7/2023
3.4.15 4,888 5/18/2023
3.4.14 924 4/15/2023
3.4.13 2,155 2/4/2023
3.4.12 1,765 1/15/2023
3.4.11 4,037 11/15/2022
3.4.10 2,393 10/25/2022
3.4.9 2,690 10/3/2022
3.4.8 2,395 9/16/2022
3.4.7 2,408 9/3/2022
3.4.6 2,576 8/7/2022
3.4.5 7,219 7/17/2022
3.4.4 2,806 7/5/2022
3.4.3 2,617 6/14/2022
3.4.2 4,137 5/13/2022
3.4.1 2,477 5/5/2022
3.4.0 5,373 3/14/2022
3.3.15 4,897 12/27/2021
3.3.14 1,665 10/26/2021
3.3.13 1,193 9/30/2021
3.3.12 1,364 8/30/2021
3.3.11 7,757 7/22/2021
3.3.10 1,361 6/4/2021
3.3.9 1,626 5/7/2021
3.3.8 1,240 4/7/2021
3.3.7 985 3/24/2021
3.3.6 987 3/19/2021
3.3.5 988 3/1/2021
3.3.4 938 2/11/2021
3.3.3 945 2/3/2021
3.3.2 979 1/21/2021
3.3.1 1,030 1/20/2021

Currently implements:

Functions
InstallHinfSection SetupAddInstallSectionToDiskSpaceList SetupAddSectionToDiskSpaceList SetupAddToDiskSpaceList SetupAddToSourceList SetupAdjustDiskSpaceList SetupBackupError SetupCancelTemporarySourceList SetupCloseFileQueue SetupCloseInfFile SetupCloseLog SetupCommitFileQueue SetupConfigureWmiFromInfSection SetupCopyError SetupCopyOEMInf SetupCreateDiskSpaceList SetupDecompressOrCopyFile SetupDefaultQueueCallback SetupDeleteError SetupDestroyDiskSpaceList SetupDiAskForOEMDisk SetupDiBuildClassInfoList SetupDiBuildClassInfoListEx SetupDiBuildDriverInfoList SetupDiCallClassInstaller SetupDiCancelDriverInfoSearch SetupDiChangeState SetupDiClassGuidsFromName SetupDiClassGuidsFromNameEx SetupDiClassNameFromGuid SetupDiClassNameFromGuidEx SetupDiCreateDeviceInfo SetupDiCreateDeviceInfoList SetupDiCreateDeviceInfoListEx SetupDiCreateDeviceInterface SetupDiCreateDeviceInterfaceRegKey SetupDiCreateDevRegKey SetupDiDeleteDeviceInfo SetupDiDeleteDeviceInterfaceData SetupDiDeleteDeviceInterfaceRegKey SetupDiDeleteDevRegKey SetupDiDestroyClassImageList SetupDiDestroyDeviceInfoList SetupDiDestroyDriverInfoList SetupDiDrawMiniIcon SetupDiEnumDeviceInfo SetupDiEnumDeviceInterfaces SetupDiEnumDriverInfo SetupDiGetActualModelsSection SetupDiGetActualSectionToInstall SetupDiGetActualSectionToInstallEx SetupDiGetClassBitmapIndex SetupDiGetClassDescription SetupDiGetClassDescriptionEx SetupDiGetClassDevPropertySheets SetupDiGetClassDevs SetupDiGetClassDevsEx SetupDiGetClassImageIndex SetupDiGetClassImageList SetupDiGetClassImageListEx SetupDiGetClassInstallParams SetupDiGetClassPropertyExW SetupDiGetClassPropertyKeys SetupDiGetClassPropertyKeysExW SetupDiGetClassPropertyW SetupDiGetClassRegistryProperty SetupDiGetCustomDeviceProperty SetupDiGetDeviceInfoListClass SetupDiGetDeviceInfoListDetail SetupDiGetDeviceInstallParams SetupDiGetDeviceInstanceId SetupDiGetDeviceInterfaceAlias SetupDiGetDeviceInterfaceDetail SetupDiGetDeviceInterfacePropertyKeys SetupDiGetDeviceInterfacePropertyW SetupDiGetDevicePropertyKeys SetupDiGetDevicePropertyW SetupDiGetDeviceRegistryProperty SetupDiGetDriverInfoDetail SetupDiGetDriverInstallParams SetupDiGetHwProfileFriendlyName SetupDiGetHwProfileFriendlyNameEx SetupDiGetHwProfileList SetupDiGetHwProfileListEx SetupDiGetINFClass SetupDiGetSelectedDevice SetupDiGetSelectedDriver SetupDiInstallClass SetupDiInstallClassEx SetupDiInstallDevice SetupDiInstallDeviceInterfaces SetupDiInstallDriverFiles SetupDiLoadClassIcon SetupDiLoadDeviceIcon SetupDiOpenClassRegKey SetupDiOpenClassRegKeyEx SetupDiOpenDeviceInfo SetupDiOpenDeviceInterface SetupDiOpenDeviceInterfaceRegKey SetupDiOpenDevRegKey SetupDiRegisterCoDeviceInstallers SetupDiRegisterDeviceInfo SetupDiRemoveDevice SetupDiRemoveDeviceInterface SetupDiRestartDevices SetupDiSelectBestCompatDrv SetupDiSelectDevice SetupDiSelectOEMDrv SetupDiSetClassInstallParams SetupDiSetClassPropertyExW SetupDiSetClassPropertyW SetupDiSetClassRegistryProperty SetupDiSetDeviceInstallParams SetupDiSetDeviceInterfaceDefault SetupDiSetDeviceInterfacePropertyW SetupDiSetDevicePropertyW SetupDiSetDeviceRegistryProperty SetupDiSetDriverInstallParams SetupDiSetSelectedDevice SetupDiSetSelectedDriver SetupDiUnremoveDevice SetupDuplicateDiskSpaceList SetupEnumInfSections SetupFindFirstLine SetupFindNextLine SetupFindNextMatchLine SetupFreeSourceList SetupGetBinaryField SetupGetFieldCount SetupGetFileCompressionInfo SetupGetFileCompressionInfoEx SetupGetFileQueueCount SetupGetFileQueueFlags SetupGetInfDriverStoreLocation SetupGetInfFileList SetupGetInfInformation SetupGetInfPublishedName SetupGetIntField SetupGetLineByIndex SetupGetLineCount SetupGetLineText SetupGetMultiSzField SetupGetNonInteractiveMode SetupGetSourceFileLocation SetupGetSourceFileSize SetupGetSourceInfo SetupGetStringField SetupGetTargetPath SetupGetThreadLogToken SetupInitDefaultQueueCallback SetupInitDefaultQueueCallbackEx SetupInitializeFileLog SetupInstallFile SetupInstallFileEx SetupInstallFilesFromInfSection SetupInstallFromInfSection SetupInstallServicesFromInfSection SetupInstallServicesFromInfSectionEx SetupIterateCabinet SetupLogError SetupLogFile SetupOpenAppendInfFile SetupOpenFileQueue SetupOpenInfFile SetupOpenLog SetupOpenMasterInf SetupPromptForDisk SetupPromptReboot SetupQueryDrivesInDiskSpaceList SetupQueryFileLog SetupQueryInfFileInformation SetupQueryInfOriginalFileInformation SetupQueryInfVersionInformation SetupQuerySourceList SetupQuerySpaceRequiredOnDrive SetupQueueCopy SetupQueueCopyIndirect SetupQueueCopySection SetupQueueDefaultCopy SetupQueueDelete SetupQueueDeleteSection SetupQueueRename SetupQueueRenameSection SetupRemoveFileLogEntry SetupRemoveFromDiskSpaceList SetupRemoveFromSourceList SetupRemoveInstallSectionFromDiskSpaceList SetupRemoveSectionFromDiskSpaceList SetupRenameError SetupScanFileQueue SetupSetDirectoryId SetupSetDirectoryIdEx SetupSetFileQueueAlternatePlatform SetupSetFileQueueFlags SetupSetNonInteractiveMode SetupSetPlatformPathOverride SetupSetSourceList SetupSetThreadLogToken SetupTermDefaultQueueCallback SetupTerminateFileLog SetupUninstallNewlyCopiedInfs SetupUninstallOEMInf SetupVerifyInfFile SetupWriteTextLog SetupWriteTextLogError SetupWriteTextLogInfLine

Structures
CABINET_INFO DEVPROPCOMPKEY DEVPROPERTY DEVPROPKEY FILEPATHS FILEPATHS_SIGNERINFO FILE_IN_CABINET_INFO HDEVINFO HDSKSPC HINF HSPFILELOG HSPFILEQ INFCONTEXT SOURCE_MEDIA SP_ALTPLATFORM_INFO SP_ALTPLATFORM_INFO_V1 SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO_V3 SP_CLASSIMAGELIST_DATA SP_CLASSINSTALL_HEADER SP_DETECTDEVICE_PARAMS SP_DEVICE_INTERFACE_DATA SP_DEVICE_INTERFACE_DETAIL_DATA SP_DEVINFO_DATA SP_DEVINFO_LIST_DETAIL_DATA SP_DEVINSTALL_PARAMS SP_DRVINFO_DATA_V2 SP_DRVINFO_DETAIL_DATA SP_DRVINSTALL_PARAMS SP_FILE_COPY_PARAMS SP_INF_INFORMATION SP_INF_SIGNER_INFO_V1 SP_INF_SIGNER_INFO_V2 SP_NEWDEVICEWIZARD_DATA SP_ORIGINAL_FILE_INFO SP_POWERMESSAGEWAKE_PARAMS SP_PROPCHANGE_PARAMS SP_PROPSHEETPAGE_REQUEST SP_REGISTER_CONTROL_STATUS SP_REMOVEDEVICE_PARAMS SP_SELECTDEVICE_PARAMS SP_TROUBLESHOOTER_PARAMS SP_UNREMOVEDEVICE_PARAMS