-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
149 changed files
with
5,190 additions
and
3,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include <KexComm.h> | ||
#include <powrprof.h> | ||
|
||
#if !defined(KXMIAPI) && defined(KEX_ENV_WIN32) | ||
# define KXMIAPI | ||
# pragma comment(lib, "KxMi.lib") | ||
#endif | ||
|
||
typedef ULONG (CALLBACK *PDEVICE_NOTIFY_CALLBACK_ROUTINE) ( | ||
IN PVOID Context OPTIONAL, | ||
IN ULONG Type, | ||
IN PVOID Setting); | ||
|
||
typedef struct _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS { | ||
PDEVICE_NOTIFY_CALLBACK_ROUTINE Callback; | ||
PVOID Context; | ||
} TYPEDEF_TYPE_NAME(DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS); | ||
|
||
// | ||
// powrprof.c | ||
// | ||
|
||
KXMIAPI POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRoleEx( | ||
IN ULONG Version); | ||
|
||
KXMIAPI ULONG WINAPI PowerRegisterSuspendResumeNotification( | ||
IN ULONG Flags, | ||
IN HANDLE Recipient, | ||
OUT PHPOWERNOTIFY RegistrationHandle); | ||
|
||
KXMIAPI ULONG WINAPI PowerUnregisterSuspendResumeNotification( | ||
IN OUT HPOWERNOTIFY RegistrationHandle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.