On Sun, Jan 25, 2009 at 09:43:02AM +0100, Danny Backx wrote:
> Lars,
>
> Thanks a lot for your work. I was away for a couple of days so I had no
> access to my mail.
>
> Your submission adds a couple of things to the pm.h that I had recently
> entered in SVN. I've merged them and attached the result to this
> message.
I am using trunk, is your pm.h in one of the branches?
> The winbase.h patch was already in SVN, a submission by Klaus Rechert
> from 2008-09-04.
Yes, I saw that, but on wince (according to MSDN) SetSystemPowerState
should be in pm.h. Now we got multiple definitions of that function.
Attached patch fixes that.
> Can you check whether it works for you ?
Yes, works nicely.
Thanks
Lars Munch
Index: cegcc/src/w32api/include/winbase.h
===================================================================
--- cegcc/src/w32api/include/winbase.h (revision 1205)
+++ cegcc/src/w32api/include/winbase.h (working copy)
@@ -2027,10 +2027,7 @@
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. */
+#if !defined (_WIN32_WCE)
WINBASEAPI BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
#endif
WINBASEAPI BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel