Skip to main content
net10.0-windows7.0.NETFramework4.8net5.0net6.0net7.0net8.0-windows7.0

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

Published
Aug 15, 2026
2mo ago
Total Downloads
68.4K
68,380

Install

dotnet add package Vanara.PInvoke.CfgMgr32 --version 5.0.7
ProductVersions
.NET
net10.0-windows7.0net5.0net6.0net7.0net8.0-windows7.0net9.0-windows7.0
.NET Standard
netstandard2.0netstandard2.1
Other
.NETCoreApp3.1.NETFramework4.8

README

Vanara

Vanara.PInvoke.CfgMgr32 NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows CfgMgr32.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 MyGet build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.CfgMgr32

Functions Enumerations Structures
CM_Add_Empty_Log_Conf
CM_Add_Empty_Log_Conf_Ex
CM_Add_ID
CM_Add_ID_Ex
CM_Add_Res_Des
CM_Add_Res_Des_Ex
CM_Connect_Machine
CM_Delete_Class_Key
CM_Delete_Device_Interface_Key
CM_Delete_Device_Interface_Key_Ex
CM_Delete_DevNode_Key
CM_Disable_DevNode
CM_Disconnect_Machine
CM_Enable_DevNode
CM_Enumerate_Classes
CM_Enumerate_Classes_Ex
CM_Enumerate_Enumerators
CM_Enumerate_Enumerators_Ex
CM_Free_Log_Conf
CM_Free_Log_Conf_Ex
CM_Free_Log_Conf_Handle
CM_Free_Res_Des
CM_Free_Res_Des_Ex
CM_Free_Res_Des_Handle
CM_Free_Resource_Conflict_Handle
CM_Get_Child
CM_Get_Child_Ex
CM_Get_Class_Property_ExW
CM_Get_Class_Property_Keys
CM_Get_Class_Property_Keys_Ex
CM_Get_Class_PropertyW
CM_Get_Class_Registry_Property
CM_Get_Depth
CM_Get_Depth_Ex
CM_Get_Device_ID
CM_Get_Device_ID_Ex
CM_Get_Device_ID_List
CM_Get_Device_ID_List_Ex
CM_Get_Device_ID_List_Size
CM_Get_Device_ID_List_Size_Ex
CM_Get_Device_ID_Size
CM_Get_Device_ID_Size_Ex
CM_Get_Device_Interface_Alias
CM_Get_Device_Interface_List
CM_Get_Device_Interface_List_Size
CM_Get_Device_Interface_Property_ExW
CM_Get_Device_Interface_Property_Keys_ExW
CM_Get_Device_Interface_Property_KeysW
CM_Get_Device_Interface_PropertyW
CM_Get_DevNode_Property_ExW
CM_Get_DevNode_Property_Keys
CM_Get_DevNode_Property_Keys_Ex
CM_Get_DevNode_PropertyW
CM_Get_DevNode_Registry_Property
CM_Get_DevNode_Status
CM_Get_DevNode_Status_Ex
CM_Get_First_Log_Conf
CM_Get_First_Log_Conf_Ex
CM_Get_HW_Prof_Flags
CM_Get_HW_Prof_Flags_Ex
CM_Get_Log_Conf_Priority
CM_Get_Log_Conf_Priority_Ex
CM_Get_Next_Log_Conf
CM_Get_Next_Log_Conf_Ex
CM_Get_Next_Res_Des
CM_Get_Next_Res_Des_Ex
CM_Get_Parent
CM_Get_Parent_Ex
CM_Get_Res_Des_Data
CM_Get_Res_Des_Data_Ex
CM_Get_Res_Des_Data_Size
CM_Get_Res_Des_Data_Size_Ex
CM_Get_Resource_Conflict_Count
CM_Get_Resource_Conflict_Details
CM_Get_Sibling
CM_Get_Sibling_Ex
CM_Get_Version
CM_Get_Version_Ex
CM_Is_Dock_Station_Present
CM_Is_Dock_Station_Present_Ex
CM_Is_Version_Available
CM_Is_Version_Available_Ex
CM_Locate_DevNode
CM_Locate_DevNode_Ex
CM_MapCrToWin32Err
CM_Modify_Res_Des
CM_Modify_Res_Des_Ex
CM_Open_Class_Key
CM_Open_Device_Interface_Key
CM_Open_Device_Interface_Key_Ex
CM_Open_DevNode_Key
CM_Query_And_Remove_SubTree
CM_Query_And_Remove_SubTree_Ex
CM_Query_Resource_Conflict_List
CM_Reenumerate_DevNode
CM_Reenumerate_DevNode_Ex
CM_Register_Notification
CM_Request_Device_Eject
CM_Request_Device_Eject_Ex
CM_Request_Eject_PC
CM_Request_Eject_PC_Ex
CM_Set_Class_Property_ExW
CM_Set_Class_PropertyW
CM_Set_Class_Registry_Property
CM_Set_Device_Interface_Property_ExW
CM_Set_Device_Interface_PropertyW
CM_Set_DevNode_Problem
CM_Set_DevNode_Problem_Ex
CM_Set_DevNode_Property_ExW
CM_Set_DevNode_PropertyW
CM_Set_DevNode_Registry_Property
CM_Setup_DevNode
CM_Uninstall_DevNode
CM_Unregister_Notification
CM_WaitNoPendingInstallEvents
SwDeviceClose
SwDeviceCreate
SwDeviceGetLifetime
SwDeviceInterfacePropertySet
SwDeviceInterfaceRegister
SwDeviceInterfaceSetState
SwDevicePropertySet
SwDeviceSetLifetime
SwMemFree
CM_ADD_ID
CM_CLASS_PROPERTY
CM_CRP
CM_DELETE_CLASS
CM_DISABLE
CM_ENUMERATE_CLASSES
CM_GETIDLIST
CM_REGISTRY
CONFIGRET
LOG_CONF_FLAG
PNP_VETO_TYPE
PRIORITY
RESOURCEID
CM_CDFLAGS
CM_CDMASK
CM_DRP
CM_GET_DEVICE_INTERFACE_LIST
CM_PROB
CSCONFIGFLAG
CM_LOCATE_DEVINST
CM_LOCATE_DEVNODE
CM_NOTIFY_ACTION
CM_NOTIFY_FILTER_FLAG
CM_NOTIFY_FILTER_TYPE
CM_OPEN_CLASS_KEY
CM_REENUMERATE
CM_REMOVE
CM_SETUP_DEVNODE
DMA_DES_FLAGS
IO_DES_FLAGS
IRQD_FLAGS
MEM_DES_FLAGS
MFCARD_DES_FLAGS
PCD_FLAGS
REGDISPOSITION
SW_DEVICE_CAPABILITIES
SW_DEVICE_LIFETIME

| BUSNUMBER_DES
BUSNUMBER_RANGE
BUSNUMBER_RESOURCE
CM_NOTIFY_EVENT_DATA
CM_NOTIFY_FILTER
CONFLICT_DETAILS
CS_DES
CS_RESOURCE
DMA_DES
DMA_RANGE
DMA_RESOURCE
IO_DES
IO_RANGE
IO_RESOURCE
IRQ_DES_32
IRQ_DES_64
IRQ_RANGE
IRQ_RESOURCE_32
IRQ_RESOURCE_64
MEM_DES
MEM_RANGE
MEM_RESOURCE
MFCARD_DES
MFCARD_RESOURCE
PCCARD_DES
PCCARD_RESOURCE
SW_DEVICE_CREATE_INFO
CONFLICT_LIST
HCMNOTIFICATION
HMACHINE
LOG_CONF
RES_DES
HSWDEVICE
UNION
UNION
DEVICEINTERFACE
DEVICEHANDLE
DEVICEINSTANCE
e__FixedBuffer
e__FixedBuffer
e__FixedBuffer
e__FixedBuffer

Changes from Previous Version

No structural changes between v5.0.6 and v5.0.7.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 10 target frameworks; confirm the exact target used by your application.The published metadata declares 42 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.