powrprof: Add PowerRegisterSuspendResumeNotification stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
51d606faac
commit
9d77624d99
|
@ -1,5 +1,5 @@
|
|||
@ stdcall CallNtPowerInformation(long ptr long ptr long) powrprof.CallNtPowerInformation
|
||||
@ stdcall GetPwrCapabilities(ptr) powrprof.GetPwrCapabilities
|
||||
@ stdcall PowerDeterminePlatformRoleEx(long) powrprof.PowerDeterminePlatformRoleEx
|
||||
@ stub PowerRegisterSuspendResumeNotification
|
||||
@ stdcall PowerRegisterSuspendResumeNotification(long ptr ptr) powrprof.PowerRegisterSuspendResumeNotification
|
||||
@ stub PowerUnregisterSuspendResumeNotification
|
||||
|
|
|
@ -330,6 +330,12 @@ DWORD WINAPI PowerEnumerate(HKEY key, const GUID *scheme, const GUID *subgroup,
|
|||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
DWORD WINAPI PowerRegisterSuspendResumeNotification(DWORD flags, HANDLE recipient, PHPOWERNOTIFY handle)
|
||||
{
|
||||
FIXME("(0x%08x,%p,%p) stub!\n", flags, recipient, handle);
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch(fdwReason) {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
@ stdcall PowerSetActiveScheme (ptr ptr)
|
||||
@ stdcall PowerReadDCValue (ptr ptr ptr ptr ptr ptr ptr)
|
||||
@ stdcall PowerReadFriendlyName (ptr ptr ptr ptr ptr ptr)
|
||||
@ stdcall PowerRegisterSuspendResumeNotification(long ptr ptr)
|
||||
@ stdcall ReadGlobalPwrPolicy (ptr)
|
||||
@ stdcall ReadProcessorPwrScheme (long ptr)
|
||||
@ stdcall ReadPwrScheme (long ptr)
|
||||
|
|
|
@ -145,6 +145,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM);
|
||||
typedef PVOID HPOWERNOTIFY, *PHPOWERNOTIFY;
|
||||
|
||||
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG);
|
||||
BOOLEAN WINAPI CanUserWritePwrScheme(VOID);
|
||||
|
@ -159,6 +160,7 @@ BOOLEAN WINAPI IsPwrHibernateAllowed(VOID);
|
|||
BOOLEAN WINAPI IsPwrShutdownAllowed(VOID);
|
||||
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID);
|
||||
DWORD WINAPI PowerEnumerate(HKEY, const GUID *, const GUID *, POWER_DATA_ACCESSOR, ULONG, UCHAR *, DWORD *);
|
||||
DWORD WINAPI PowerRegisterSuspendResumeNotification(DWORD, HANDLE, PHPOWERNOTIFY);
|
||||
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
|
||||
BOOLEAN WINAPI ReadProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
|
||||
BOOLEAN WINAPI ReadPwrScheme(UINT, PPOWER_POLICY);
|
||||
|
|
Loading…
Reference in New Issue