I have found additional definitions that should go into the headers.
(Most of these aren't in the videolan headers either, which is why I
didn't find them sooner.)
-Kevin
Index: src/w32api/include/tlhelp32.h
===================================================================
--- src/w32api/include/tlhelp32.h (revision 777)
+++ src/w32api/include/tlhelp32.h (working copy)
@@ -121,7 +121,8 @@
BOOL WINAPI Thread32Next(HANDLE,LPTHREADENTRY32);
BOOL WINAPI Toolhelp32ReadProcessMemory(DWORD,LPCVOID,LPVOID,DWORD,LPDWORD);
HANDLE WINAPI CreateToolhelp32Snapshot(DWORD,DWORD);
-#ifdef UNICODE
+BOOL WINAPI CloseToolhelp32Snapshot(HANDLE hSnapshot);
+#if defined(UNICODE) && !defined(_WIN32_WCE)
#define LPMODULEENTRY32 LPMODULEENTRY32W
#define LPPROCESSENTRY32 LPPROCESSENTRY32W
#define MODULEENTRY32 MODULEENTRY32W
Index: src/w32api/include/winnt.h
===================================================================
--- src/w32api/include/winnt.h (revision 777)
+++ src/w32api/include/winnt.h (working copy)
@@ -989,6 +989,7 @@
#define PAGE_EXECUTE_WRITECOPY 0x0080
#define PAGE_GUARD 0x0100
#define PAGE_NOCACHE 0x0200
+#define PAGE_PHYSICAL 0x0400
#define MEM_COMMIT 0x1000
#define MEM_RESERVE 0x2000
#define MEM_DECOMMIT 0x4000
Index: src/w32api/include/winbase.h
===================================================================
--- src/w32api/include/winbase.h (revision 777)
+++ src/w32api/include/winbase.h (working copy)
@@ -1728,7 +1728,11 @@
WINBASEAPI BOOL WINAPI LocalUnlock(HLOCAL);
WINBASEAPI BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
WINBASEAPI BOOL WINAPI LockFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPOVERLAPPED);
+#ifdef _WIN32_WCE
+#define LockResource(h) ((PVOID)(h))
+#else
WINBASEAPI PVOID WINAPI LockResource(HGLOBAL);
+#endif
#define LockSegment(w) GlobalFix((HANDLE)(w)) /* Obsolete: Has no effect. */
WINBASEAPI BOOL WINAPI LogonUserA(LPSTR,LPSTR,LPSTR,DWORD,DWORD,PHANDLE);
WINBASEAPI BOOL WINAPI LogonUserW(LPWSTR,LPWSTR,LPWSTR,DWORD,DWORD,PHANDLE);
@@ -2040,6 +2044,15 @@
WINBASEAPI BOOL WINAPI
MapUserPhysicalPagesScatter(PVOID*,ULONG_PTR,PULONG_PTR);
#endif
+typedef struct STORE_INFORMATION {
+ DWORD dwStoreSize;
+ DWORD dwFreeSize;
+} STORE_INFORMATION, *LPSTORE_INFORMATION;
+
+WINBASEAPI BOOL GetStoreInformation(LPSTORE_INFORMATION lpsi);
+
+WINBASEAPI BOOL CeSetThreadQuantum(HANDLE hThread, DWORD dwTime);
+
#ifdef UNICODE
typedef STARTUPINFOW STARTUPINFO,*LPSTARTUPINFO;
typedef WIN32_FIND_DATAW WIN32_FIND_DATA,*PWIN32_FIND_DATA,*LPWIN32_FIND_DATA;
Index: src/w32api/include/winuser.h
===================================================================
--- src/w32api/include/winuser.h (revision 777)
+++ src/w32api/include/winuser.h (working copy)
@@ -3396,7 +3396,11 @@
WINUSERAPI LPWSTR WINAPI CharUpperW(LPWSTR);
WINUSERAPI DWORD WINAPI CharUpperBuffA(LPSTR,DWORD);
WINUSERAPI DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD);
+#ifdef _WIN32_WCE
+#define CheckDlgButton(h,i,c) SendDlgItemMessage(h, i, BM_SETCHECK, c, 0)
+#else
WINUSERAPI BOOL WINAPI CheckDlgButton(HWND,int,UINT);
+#endif
WINUSERAPI DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT);
WINUSERAPI BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT);
WINUSERAPI BOOL WINAPI CheckRadioButton(HWND,int,int,int);
@@ -3429,8 +3433,12 @@
#define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0)
WINUSERAPI HWND WINAPI
CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM);
WINUSERAPI HWND WINAPI
CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM);
+#ifdef _WIN32_WCE
+#define CreateDialogParamW(h,n,w,f,p) CreateDialogIndirectParamW(h,
(LPCDLGTEMPLATE)LoadResource(h, FindResource(h, n, RT_DIALOG)), w, f, p)
+#else
WINUSERAPI HWND WINAPI
CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);
WINUSERAPI HWND WINAPI
CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);
+#endif
WINUSERAPI HICON WINAPI CreateIcon(HINSTANCE,int,int,BYTE,BYTE,const
BYTE*,const BYTE*);
WINUSERAPI HICON WINAPI CreateIconFromResource(PBYTE,DWORD,BOOL,DWORD);
WINUSERAPI HICON WINAPI
CreateIconFromResourceEx(PBYTE,DWORD,BOOL,DWORD,int,int,UINT);
Index: src/w32api/ChangeLog.ce
===================================================================
--- src/w32api/ChangeLog.ce (revision 777)
+++ src/w32api/ChangeLog.ce (working copy)
@@ -1,3 +1,15 @@
+2006-11-05 Kevin O'Connor <[EMAIL PROTECTED]>
+
+ * include/tlhelp32.h: Define CloseToolhelp32Snapshot. CE doesn't
+ have unicode variants of toolhelp (there is a Process32Next, but
+ no Process32NextW.)
+ * include/winnt.h: Define PAGE_PHYSICAL
+ * include/winbase.h: Define GetStoreInformation and
+ CeSetThreadQuantum. LockResource is a noop on wince.
+ * include/winuser.h: Define CheckDlgButton in terms of
+ SendDlgItemMessage. Define CreateDialogParamW using
+ CreateDialogIndirectParamW.
+
2006-11-02 Kevin O'Connor <[EMAIL PROTECTED]>
* include/winuser.h (DialogBoxParamW) : Implement on terms of
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel