From 5a837cf11dce680077fd4b4b87f5f2d2820e70fd Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Wed, 9 Oct 2024 16:18:45 +0000
Subject: [PATCH] crt: Add new APIs in cfgmgr32 import library

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-crt/lib-common/cfgmgr32.def |  6 ++++-
 mingw-w64-crt/lib32/cfgmgr32.def      | 33 ++++++++++++++++++++++++++-
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-crt/lib-common/cfgmgr32.def 
b/mingw-w64-crt/lib-common/cfgmgr32.def
index 2d81a70..71e1226 100644
--- a/mingw-w64-crt/lib-common/cfgmgr32.def
+++ b/mingw-w64-crt/lib-common/cfgmgr32.def
@@ -7,8 +7,9 @@ LIBRARY "CFGMGR32.dll"
 EXPORTS
 CMP_GetBlockedDriverInfo
 CMP_GetServerSideDeviceInstallFlags
+CMP_Get_Device_ID_List
+CMP_Get_Device_ID_List_Size
 CMP_Init_Detection
-CMP_RegisterNotification
 CMP_RegisterServiceNotification
 CMP_Register_Notification
 CMP_Report_LogOn
@@ -61,6 +62,7 @@ CM_Enumerate_EnumeratorsA
 CM_Enumerate_EnumeratorsW
 CM_Enumerate_Enumerators_ExA
 CM_Enumerate_Enumerators_ExW
+CM_Export_Pnp_StateW
 CM_Find_Range
 CM_First_Range
 CM_Free_Log_Conf
@@ -167,6 +169,7 @@ CM_Get_Version_Ex
 CM_Import_PowerScheme
 CM_Install_DevNodeW
 CM_Install_DevNode_ExW
+CM_Install_DriverW
 CM_Intersect_Range_List
 CM_Invert_Range_List
 CM_Is_Dock_Station_Present
@@ -253,6 +256,7 @@ CM_Setup_DevNode_Ex
 CM_Test_Range_Available
 CM_Uninstall_DevNode
 CM_Uninstall_DevNode_Ex
+CM_Uninstall_DriverW
 CM_Unregister_Device_InterfaceA
 CM_Unregister_Device_InterfaceW
 CM_Unregister_Device_Interface_ExA
diff --git a/mingw-w64-crt/lib32/cfgmgr32.def b/mingw-w64-crt/lib32/cfgmgr32.def
index 068e90c..e9a5c25 100644
--- a/mingw-w64-crt/lib32/cfgmgr32.def
+++ b/mingw-w64-crt/lib32/cfgmgr32.def
@@ -7,8 +7,11 @@ LIBRARY "CFGMGR32.dll"
 EXPORTS
 CMP_GetBlockedDriverInfo@16
 CMP_GetServerSideDeviceInstallFlags@12
+CMP_Get_Device_ID_List@16
+CMP_Get_Device_ID_List_Size@12
 CMP_Init_Detection@4
-CMP_RegisterNotification@24
+CMP_RegisterServiceNotification@16
+CMP_Register_Notification@20
 CMP_Report_LogOn@8
 CMP_UnregisterNotification@4
 CMP_WaitNoPendingInstallEvents@4
@@ -165,6 +168,7 @@ CM_Get_Version_Ex@4
 CM_Import_PowerScheme@12
 CM_Install_DevNodeW@32
 CM_Install_DevNode_ExW@36
+CM_Install_DriverW@28
 CM_Intersect_Range_List@16
 CM_Invert_Range_List@20
 CM_Is_Dock_Station_Present@4
@@ -212,6 +216,7 @@ CM_Register_Device_InterfaceA@24
 CM_Register_Device_InterfaceW@24
 CM_Register_Device_Interface_ExA@28
 CM_Register_Device_Interface_ExW@28
+CM_Register_Notification@16
 CM_Remove_SubTree@8
 CM_Remove_SubTree_Ex@12
 CM_Request_Device_EjectA@20
@@ -250,8 +255,34 @@ CM_Setup_DevNode_Ex@12
 CM_Test_Range_Available@24
 CM_Uninstall_DevNode@8
 CM_Uninstall_DevNode_Ex@12
+CM_Uninstall_DriverW@28
 CM_Unregister_Device_InterfaceA@8
 CM_Unregister_Device_InterfaceW@8
 CM_Unregister_Device_Interface_ExA@12
 CM_Unregister_Device_Interface_ExW@12
+CM_Unregister_Notification@4
 CM_Write_UserPowerKey@32
+DevCloseObjectQuery@4
+DevCreateObjectQuery@36
+DevCreateObjectQueryEx@44
+DevCreateObjectQueryFromId@40
+DevCreateObjectQueryFromIdEx@48
+DevCreateObjectQueryFromIds@40
+DevCreateObjectQueryFromIdsEx@48
+DevFindProperty@20
+DevFreeObjectProperties@8
+DevFreeObjects@8
+DevGetObjectProperties@28
+DevGetObjectPropertiesEx@36
+DevGetObjects@32
+DevGetObjectsEx@40
+DevSetObjectProperties@16
+SwDeviceClose@4
+SwDeviceCreate@32
+SwDeviceGetLifetime@8
+SwDeviceInterfacePropertySet@16
+SwDeviceInterfaceRegister@28
+SwDeviceInterfaceSetState@12
+SwDevicePropertySet@12
+SwDeviceSetLifetime@8
+SwMemFree@4
-- 
2.47.0

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to