mirror of https://github.com/dahall/Vanara.git
More functions to CfgMgr32
parent
351eb31a53
commit
058dbc4568
|
@ -2765,7 +2765,7 @@ namespace Vanara.PInvoke
|
||||||
protected override bool InternalReleaseHandle() => CM_Disconnect_Machine(handle) == 0;
|
protected override bool InternalReleaseHandle() => CM_Disconnect_Machine(handle) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="LOG_CONF"/> that is disposed using <see cref="CM_Free_Log_Conf"/>.</summary>
|
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="LOG_CONF"/> that is disposed using <see cref="CM_Free_Log_Conf_Handle"/>.</summary>
|
||||||
public class SafeLOG_CONF : SafeHANDLE
|
public class SafeLOG_CONF : SafeHANDLE
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the <see cref="SafeLOG_CONF"/> class and assigns an existing handle.</summary>
|
/// <summary>Initializes a new instance of the <see cref="SafeLOG_CONF"/> class and assigns an existing handle.</summary>
|
||||||
|
@ -2808,127 +2808,5 @@ namespace Vanara.PInvoke
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
protected override bool InternalReleaseHandle() => CM_Free_Res_Des_Handle(handle) == 0;
|
protected override bool InternalReleaseHandle() => CM_Free_Res_Des_Handle(handle) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
CM_Get_Device_ID_ListA
|
|
||||||
CM_Get_Device_ID_ListW
|
|
||||||
CM_Get_Device_ID_List_Size_ExW
|
|
||||||
CM_Get_Device_ID_List_SizeA
|
|
||||||
CM_Get_Device_ID_List_SizeW
|
|
||||||
CM_Get_Device_ID_Size
|
|
||||||
CM_Get_Device_ID_Size_Ex
|
|
||||||
CM_Get_Device_IDW
|
|
||||||
CM_Get_Device_Interface_AliasW
|
|
||||||
CM_Get_Device_Interface_List_SizeA
|
|
||||||
CM_Get_Device_Interface_List_SizeW
|
|
||||||
CM_Get_Device_Interface_ListA
|
|
||||||
CM_Get_Device_Interface_ListW
|
|
||||||
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_PropertyW
|
|
||||||
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_ExA
|
|
||||||
CM_Get_HW_Prof_Flags_ExW
|
|
||||||
CM_Get_HW_Prof_FlagsA
|
|
||||||
CM_Get_HW_Prof_FlagsW
|
|
||||||
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_DetailsW
|
|
||||||
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_ExW
|
|
||||||
CM_Locate_DevNodeA
|
|
||||||
CM_Locate_DevNodeW
|
|
||||||
CM_MapCrToWin32Err
|
|
||||||
CM_Modify_Res_Des
|
|
||||||
CM_Modify_Res_Des_Ex
|
|
||||||
CM_Open_Class_KeyW
|
|
||||||
CM_Open_Device_Interface_Key_ExA
|
|
||||||
CM_Open_Device_Interface_Key_ExW
|
|
||||||
CM_Open_Device_Interface_KeyA
|
|
||||||
CM_Open_Device_Interface_KeyW
|
|
||||||
CM_Open_DevNode_Key
|
|
||||||
CM_Query_And_Remove_SubTree_ExW
|
|
||||||
CM_Query_And_Remove_SubTreeW
|
|
||||||
CM_Query_Resource_Conflict_List
|
|
||||||
CM_Reenumerate_DevNode
|
|
||||||
CM_Reenumerate_DevNode_Ex
|
|
||||||
CM_Register_Notification
|
|
||||||
CM_Request_Device_Eject_ExW
|
|
||||||
CM_Request_Device_EjectW
|
|
||||||
CM_Request_Eject_PC
|
|
||||||
CM_Request_Eject_PC_Ex
|
|
||||||
CM_Set_Class_Property_ExW
|
|
||||||
CM_Set_Class_PropertyW
|
|
||||||
CM_Set_Class_Registry_PropertyW
|
|
||||||
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_PropertyW
|
|
||||||
CM_Setup_DevNode
|
|
||||||
CM_Uninstall_DevNode
|
|
||||||
CM_Unregister_Notification
|
|
||||||
CM_WaitNoPendingInstallEvents
|
|
||||||
|
|
||||||
BUSNUMBER_DES
|
|
||||||
BUSNUMBER_RANGE
|
|
||||||
BUSNUMBER_RESOURCE
|
|
||||||
CM_NOTIFY_EVENT_DATA
|
|
||||||
CM_NOTIFY_FILTER
|
|
||||||
CONFLICT_DETAILS_A
|
|
||||||
CONFLICT_DETAILS_W
|
|
||||||
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
|
|
||||||
|
|
||||||
CM_NOTIFY_ACTION
|
|
||||||
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,87 @@
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using static Vanara.PInvoke.SetupAPI;
|
||||||
|
|
||||||
|
namespace Vanara.PInvoke
|
||||||
|
{
|
||||||
|
/// <summary>Items from the CfgMgr32.dll</summary>
|
||||||
|
public static partial class CfgMgr32
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
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_ExW
|
||||||
|
CM_Locate_DevNodeA
|
||||||
|
CM_Locate_DevNodeW
|
||||||
|
CM_MapCrToWin32Err
|
||||||
|
CM_Modify_Res_Des
|
||||||
|
CM_Modify_Res_Des_Ex
|
||||||
|
CM_Open_Class_KeyW
|
||||||
|
CM_Open_Device_Interface_Key_ExA
|
||||||
|
CM_Open_Device_Interface_Key_ExW
|
||||||
|
CM_Open_Device_Interface_KeyA
|
||||||
|
CM_Open_Device_Interface_KeyW
|
||||||
|
CM_Open_DevNode_Key
|
||||||
|
CM_Query_And_Remove_SubTree_ExW
|
||||||
|
CM_Query_And_Remove_SubTreeW
|
||||||
|
CM_Query_Resource_Conflict_List
|
||||||
|
CM_Reenumerate_DevNode
|
||||||
|
CM_Reenumerate_DevNode_Ex
|
||||||
|
CM_Register_Notification
|
||||||
|
CM_Request_Device_Eject_ExW
|
||||||
|
CM_Request_Device_EjectW
|
||||||
|
CM_Request_Eject_PC
|
||||||
|
CM_Request_Eject_PC_Ex
|
||||||
|
CM_Set_Class_Property_ExW
|
||||||
|
CM_Set_Class_PropertyW
|
||||||
|
CM_Set_Class_Registry_PropertyW
|
||||||
|
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_PropertyW
|
||||||
|
CM_Setup_DevNode
|
||||||
|
CM_Uninstall_DevNode
|
||||||
|
CM_Unregister_Notification
|
||||||
|
CM_WaitNoPendingInstallEvents
|
||||||
|
|
||||||
|
BUSNUMBER_DES
|
||||||
|
BUSNUMBER_RANGE
|
||||||
|
BUSNUMBER_RESOURCE
|
||||||
|
CM_NOTIFY_EVENT_DATA
|
||||||
|
CM_NOTIFY_FILTER
|
||||||
|
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
|
||||||
|
|
||||||
|
CM_NOTIFY_ACTION
|
||||||
|
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue