There's no signature to use PowerRegisterSuspendResumeNotification per the Win32 docs
https://learn.microsoft.com/en-us/windows/win32/api/powerbase/nf-powerbase-powerregistersuspendresumenotification
Actual behavior
internal static extern unsafe winmdroot.Foundation.WIN32_ERROR PowerRegisterSuspendResumeNotification(winmdroot.UI.WindowsAndMessaging.REGISTER_NOTIFICATION_FLAGS Flags, winmdroot.Foundation.HANDLE Recipient, void** RegistrationHandle);
Expected behavior
Should have an overload taking DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS
Repro steps
NativeMethods.txt content:
PowerRegisterSuspendResumeNotification
NativeMethods.json content (if present):
{
"$schema": "https://aka.ms/CsWin32.schema.json",
"wideCharOnly": true,
"emitSingleFile": true,
"public": false,
"allowMarshaling": false
}
- Any of your own code that should be shared?
Context
- CsWin32 version: 0.3.269
- Target Framework: net10.0
There's no signature to use PowerRegisterSuspendResumeNotification per the Win32 docs
https://learn.microsoft.com/en-us/windows/win32/api/powerbase/nf-powerbase-powerregistersuspendresumenotification
Actual behavior
Expected behavior
Should have an overload taking DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS
Repro steps
NativeMethods.txtcontent:NativeMethods.jsoncontent (if present):{ "$schema": "https://aka.ms/CsWin32.schema.json", "wideCharOnly": true, "emitSingleFile": true, "public": false, "allowMarshaling": false }Context