From cfd8bb8c18d8e74315e39ecb100955779a4d0dc6 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Fri, 14 Mar 2003 23:01:24 +0000 Subject: [PATCH] Added stub for GetDevicePowerState(). --- dlls/kernel/kernel32.spec | 2 +- win32/newfns.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 9f0c310c34e..003613c5877 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -384,7 +384,7 @@ @ stdcall GetDefaultCommConfigA(str ptr long) GetDefaultCommConfigA @ stdcall GetDefaultCommConfigW(wstr ptr long) GetDefaultCommConfigW @ stub GetDefaultSortkeySize -@ stub GetDevicePowerState +@ stdcall GetDevicePowerState(long ptr) GetDevicePowerState @ stdcall GetDiskFreeSpaceA(str ptr ptr ptr ptr) GetDiskFreeSpaceA @ stdcall GetDiskFreeSpaceW(wstr ptr ptr ptr ptr) GetDiskFreeSpaceW @ stdcall GetDriveTypeA(str) GetDriveTypeA diff --git a/win32/newfns.c b/win32/newfns.c index 6a42109a0ad..e8854186749 100644 --- a/win32/newfns.c +++ b/win32/newfns.c @@ -311,3 +311,12 @@ BOOL WINAPI GetQueuedCompletionStatus( SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } + +/****************************************************************************** + * GetDevicePowerState (KERNEL32.@) + */ +BOOL WINAPI GetDevicePowerState(HANDLE hDevice, BOOL* pfOn) +{ + FIXME("(hDevice %p pfOn %p): stub\n", hDevice, pfOn); + return TRUE; /* no information */ +}