From: <dan...@us...> - 2008-09-04 18:28:29
|
Revision: 1171 http://cegcc.svn.sourceforge.net/cegcc/?rev=1171&view=rev Author: dannybackx Date: 2008-09-04 18:28:26 +0000 (Thu, 04 Sep 2008) Log Message: ----------- Fix SetSystemPowerState as indicated by Klaus Rechert Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2008-08-30 07:52:10 UTC (rev 1170) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2008-09-04 18:28:26 UTC (rev 1171) @@ -1,3 +1,8 @@ +2008-09-04 Danny Backx <dan...@us...> + + * include/winbase.h: Fix SetSystemPowerState as indicated by Klaus + Rechert. + 2008-06-20 Danny Backx <dan...@us...> * include/aygshell.h: Include prsht.h. Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2008-08-30 07:52:10 UTC (rev 1170) +++ trunk/cegcc/src/w32api/include/winbase.h 2008-09-04 18:28:26 UTC (rev 1171) @@ -2027,7 +2027,12 @@ WINBASEAPI BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL); WINBASEAPI BOOL WINAPI SetStdHandle(DWORD,HANDLE); #define SetSwapAreaSize(w) (w) +#if (_WIN32_WCE >= 0x0400) +WINBASEAPI DWORD WINAPI SetSystemPowerState(LPCWSTR, DWORD, DWORD); +#else +/* Only on Windows Server 2008, Windows Server 2003, or Windows 2000 Server. */ WINBASEAPI BOOL WINAPI SetSystemPowerState(BOOL,BOOL); +#endif WINBASEAPI BOOL WINAPI SetSystemTime(const SYSTEMTIME*); WINBASEAPI BOOL WINAPI SetSystemTimeAdjustment(DWORD,BOOL); WINBASEAPI DWORD WINAPI SetTapeParameters(HANDLE,DWORD,PVOID); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |