From 3751c1559c96ffd2089b944612cb24dd9d3ca9ad Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Mon, 10 Aug 2020 11:08:12 +0200 Subject: [PATCH] Add CM_Register_Notification and CM_Unregister_Notification. --- src/um/cfgmgr32.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/um/cfgmgr32.rs b/src/um/cfgmgr32.rs index 2c4c7f39f..df13d3d39 100644 --- a/src/um/cfgmgr32.rs +++ b/src/um/cfgmgr32.rs @@ -1821,6 +1821,9 @@ extern "system" { ulFlags: ULONG, hMachine: HMACHINE, ) -> CONFIGRET; + pub fn CM_Unregister_Notification( + NotifyContext: HCMNOTIFICATION, + ) -> CONFIGRET; pub fn CM_Register_Device_Driver( dnDevInst: DEVINST, ulFlags: ULONG, @@ -1830,6 +1833,12 @@ extern "system" { ulFlags: ULONG, hMachine: HMACHINE, ) -> CONFIGRET; + pub fn CM_Register_Notification( + pFilter: PCM_NOTIFY_FILTER, + pContext: PVOID, + pCallback: PCM_NOTIFY_CALLBACK, + pNotifyContext: PHCMNOTIFICATION, + ) -> CONFIGRET; pub fn CM_Remove_SubTree( dnAncestor: DEVINST, ulFlags: ULONG,