By the way, another missing definition is SHInitDialog. In the PocketPC 2000 (WinCE 3.0) SDK is on aygshell.h (ayhshell.lib). In the WinCE 4.2 standard SDK is on shellsdk.h (also aygshell.lib). In the WinCE 5.0 standard SDK is on shellsdk.h (also aygshell.lib).
I'm running linux, so can't check on other SDK's, because I need to pass the "Genuine Windows Validation" to make the download (the others I can use wine to "install"). Here are the definitions needed on aygshell.h (or shellsdk.h): <CODE> /* MSDN says this is wince 4.2 or latter, but it's declared in the * PocketPC 2000 SDK. */ typedef struct tagSHINITDLGINFO { DWORD dwMask; HWND hDlg; DWORD dwFlags; } SHINITDLGINFO, *PSHINITDLGINFO; BOOL SHInitDialog( PSHINITDLGINFO pshidi ); #define SHIDIM_FLAGS 0x0001 #define SHIDIF_DONEBUTTON 0x0001 #define SHIDIF_SIZEDLG 0x0002 #define SHIDIF_SIZEDLGFULLSCREEN 0x0004 #define SHIDIF_SIPDOWN 0x0008 #define SHIDIF_FULLSCREENNOMENUBAR 0x0010 #define SHIDIF_EMPTYMENU 0x0020 </CODE> This function is only used (usefull?) on PocketPC's, so it's probably not found on the Handheld PC version of WinCE. Another header that is missing is todaycmn.h, used on PocketPC's for "today screen plugin's". This was made by me: <todaycmn.h> #ifndef _TODAYCMN_H_ #define _TODAYCMN_H_ /* List item types */ typedef enum _TODAYLISTITEMTYPE { tlitOwnerInfo = 0, tlitAppointments, tlitMail, tlitTasks, tlitCustom, tlitNil /* sentinel */ } TODAYLISTITEMTYPE; #define MAX_ITEMNAME 32 /* Information for a single today item */ typedef struct _TODAYLISTITEM { TCHAR szName[MAX_ITEMNAME]; TODAYLISTITEMTYPE tlit; DWORD dwOrder; DWORD cyp; BOOL fEnabled; BOOL fOptions; DWORD grfFlags; TCHAR szDLLPath[MAX_PATH]; HINSTANCE hinstDLL; HWND hwndCustom; BOOL fSizeOnDraw; BYTE *prgbCachedData; DWORD cbCachedData; } TODAYLISTITEM; /* Maximum number of today items */ #define k_cTodayItemsMax 12 /* Custom DLL resources */ #define IDI_ICON 128 #define IDD_TODAY_CUSTOM 500 /* Custom DLL functions */ #define ORDINAL_INITIALIZEITEM 240 typedef HWND (*PFNCUSTOMINITIALIZEITEM)(TODAYLISTITEM *, HWND); #define ORDINAL_OPTIONSDIALOGPROC 241 typedef BOOL (*PFNCUSTOMOPTIONSDLGPROC)(HWND, UINT, UINT, LONG); /* Custom DLL messages */ #define WM_TODAYCUSTOM_CLEARCACHE (WM_USER + 242) #define WM_TODAYCUSTOM_QUERYREFRESHCACHE (WM_USER + 243) #define WM_TODAYCUSTOM_RECEIVEDSELECTION (WM_USER + 244) #define WM_TODAYCUSTOM_LOSTSELECTION (WM_USER + 245) #define WM_TODAYCUSTOM_USERNAVIGATION (WM_USER + 246) #define WM_TODAYCUSTOM_ACTION (WM_USER + 247) /* Messages to parent window */ #define TODAYM_DRAWWATERMARK (WM_USER + 101) #define TODAYM_TOOKSELECTION (WM_USER + 102) /* Today screen system colors */ #define TODAYCOLOR_HIGHLIGHT (0x10000022) #define TODAYCOLOR_HIGHLIGHTEDTEXT (0x10000023) /* Watermark drawing info */ typedef struct { HDC hdc; RECT rc; HWND hwnd; } TODAYDRAWWATERMARKINFO; #endif /* !_TODAYCMN_H_ */ </todaycmn.h> If anyone interested, I have a test application for this (but needs registry entries to work, as explained on the online help). It's a DLL with fixed functions exported, so can be a nice example for how to use .DEF files and DLL's in cegcc (actually, only used mingw32ce). Regards, ~Nuno Lucas ------------------------------------------------------------------------- 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 Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel