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 */ +}