Changeset 242 for trunk/include
- Timestamp:
- Jan 19, 2003, 8:42:16 PM (23 years ago)
- Location:
- trunk/include
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/apps.h
r223 r242 76 76 77 77 #ifdef INCL_WINPROGRAMLIST 78 // additional PROG_* flags for appQueryAppType 79 // #define PROG_XWP_DLL 998 // dynamic link library 80 // removed, PROG_DLL exists already 81 // V0.9.16 (2001-10-06) 82 83 #define PROG_WIN32 990 // added V0.9.16 (2001-12-08) [umoeller] 78 // moved extra PROG_* defs to exeh.h V1.0.1 (2003-01-17) [umoeller] 84 79 85 80 APIRET appQueryAppType(const char *pcszExecutable, 86 81 PULONG pulDosAppType, 87 82 PULONG pulWinAppType); 88 89 PCSZ appDescribeAppType(PROGCATEGORY progc);90 83 91 84 ULONG appIsWindowsApp(ULONG ulProgCategory); -
trunk/include/helpers/comctl.h
r233 r242 1195 1195 1196 1196 MRESULT ctlFormatExtFrame(HWND hwndFrame, 1197 PXFRAMECONTROLSpxfc,1197 const XFRAMECONTROLS *pxfc, 1198 1198 MPARAM mp1, 1199 1199 MPARAM mp2); 1200 1200 1201 VOID ctlCalcExtFrameRect(MPARAM mp1, 1202 MPARAM mp2, 1203 LONG lStatusBarHeight); 1201 MRESULT ctlCalcExtFrameRect(HWND hwndFrame, 1202 const XFRAMECONTROLS *pxfc, 1203 MPARAM mp1, 1204 MPARAM mp2); 1204 1205 1205 1206 HWND ctlCreateStatusBar(HWND hwndFrame, … … 1401 1402 typedef CTLMAKECOLORRECT *PCTLMAKECOLORRECT; 1402 1403 1404 /* ****************************************************************** 1405 * 1406 * Container control replacement 1407 * 1408 ********************************************************************/ 1409 1410 #define WC_CCTL_CNR "ComctlCnr" 1411 1412 MRESULT EXPENTRY fnwpCnr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 1413 1414 BOOL ctlRegisterXCnr(HAB hab); 1415 1416 1403 1417 #endif 1404 1418 -
trunk/include/helpers/exeh.h
r136 r242 7 7 * numbering. 8 8 * 9 *@@include #define INCL_WINPROGRAMLIST // for some funcs only 9 10 *@@include #include <os2.h> 10 11 *@@include #include "helpers\dosh.h" … … 231 232 typedef struct _LXHEADER 232 233 { 233 CHAR achLX[2];// 00: e32_magic "LX" or "LE" magic234 CHAR achLX[2]; // 00: e32_magic "LX" or "LE" magic 234 235 // this is "LX" for 32-bit OS/2 programs, but 235 236 // "LE" for MS-DOS progs which use this format … … 245 246 ULONG ulFlags; // 10: e32_mflags module flags 246 247 #ifndef E32NOTP // do not conflict with toolkit exe defs 247 #define E32NOTP 0x 8000L// Library Module - used as NENOTP248 #define E32NOLOAD 0x 2000L// Module not Loadable249 #define E32PMAPI 0x0 300L// Uses PM Windowing API250 #define E32PMW 0x0 200L// Compatible with PM Windowing251 #define E32NOPMW 0x0 100L// Incompatible with PM Windowing252 #define E32NOEXTFIX 0x00 20L// NO External Fixups in .EXE253 #define E32NOINTFIX 0x00 10L// NO Internal Fixups in .EXE254 #define E32SYSDLL 0x000 8L// System DLL, Internal Fixups discarded255 #define E32LIBINIT 0x000 4L// Per-Process Library Initialization248 #define E32NOTP 0x00008000L // Library Module - used as NENOTP 249 #define E32NOLOAD 0x00002000L // Module not Loadable 250 #define E32PMAPI 0x00000300L // Uses PM Windowing API 251 #define E32PMW 0x00000200L // Compatible with PM Windowing 252 #define E32NOPMW 0x00000100L // Incompatible with PM Windowing 253 #define E32NOEXTFIX 0x00000020L // NO External Fixups in .EXE 254 #define E32NOINTFIX 0x00000010L // NO Internal Fixups in .EXE 255 #define E32SYSDLL 0x00000008L // System DLL, Internal Fixups discarded 256 #define E32LIBINIT 0x00000004L // Per-Process Library Initialization 256 257 #define E32LIBTERM 0x40000000L // Per-Process Library Termination 257 #define E32APPMASK 0x0300L // Application Type Mask 258 259 #define E32APPMASK 0x00000300L // Application Type Mask 260 261 // hiword defs added V1.0.1 (2003-01-17) [umoeller] 262 #define E32PROTDLL 0x00010000L // Protected memory library module * 263 #define E32DEVICE 0x00020000L // Device driver * 264 #define E32MODEXE 0x00000000L // .EXE module * 265 #define E32MODDLL 0x00008000L // .DLL module * 266 #define E32MODPROTDLL 0x00018000L // Protected memory library module * 267 #define E32MODPDEV 0x00020000L // Physical device driver * 268 #define E32MODVDEV 0x00028000L // Virtual device driver * 269 #define E32MODMASK 0x00038000L // Module type mask * 270 #define E32NOTMPSAFE 0x00080000L // Process is multi-processor unsafe * 258 271 #endif 259 272 ULONG ulPageCount; // 14: e32_mpages no. of pages in module … … 1243 1256 APIRET exehQueryBldLevel(PEXECUTABLE pExec); 1244 1257 1258 #ifdef INCL_WINPROGRAMLIST 1259 1260 // additional PROG_* flags for exehQueryProgType; moved these here 1261 // from app.h V1.0.1 (2003-01-17) [umoeller] 1262 1263 // #define PROG_XWP_DLL 998 // dynamic link library 1264 // removed, PROG_DLL exists already 1265 // V0.9.16 (2001-10-06) 1266 1267 #define PROG_WIN32 990 // added V0.9.16 (2001-12-08) [umoeller] 1268 1269 APIRET exehQueryProgType(const EXECUTABLE *pExec, 1270 PROGCATEGORY *pulProgType); 1271 1272 PCSZ exehDescribeProgType(PROGCATEGORY progc); 1273 1274 #endif 1275 1245 1276 /* 1246 1277 *@@ FSYSMODULE: -
trunk/include/helpers/gpih.h
r232 r242 194 194 PCH pchString); 195 195 typedef GPIHCHARSTRINGPOSAT *PGPIHCHARSTRINGPOSAT; 196 197 VOID XWPENTRY gpihCalcTextExtent(HPS hps, 198 PCSZ pcsz, 199 PLONG pcx, 200 PULONG pcLines); 201 202 VOID XWPENTRY gpihDrawString(HPS hps, 203 PCSZ pcsz, 204 PRECTL prcl, 205 ULONG fl, 206 PFONTMETRICS pfm); 196 207 197 208 /* -
trunk/include/helpers/linklist.h
r174 r242 134 134 const char *function); 135 135 typedef PLINKLIST XWPENTRY LSTCREATEDEBUG(BOOL fItemsFreeable, 136 const char *file,137 unsigned long line,138 const char *function);136 const char *file, 137 unsigned long line, 138 const char *function); 139 139 typedef LSTCREATEDEBUG *PLSTCREATEDEBUG; 140 140 … … 199 199 unsigned long ulIndex); 200 200 typedef PLISTNODE XWPENTRY LSTINSERTITEMBEFORE(PLINKLIST pList, 201 void* pNewItemData,202 unsigned long ulIndex);201 void* pNewItemData, 202 unsigned long ulIndex); 203 203 typedef LSTINSERTITEMBEFORE *PLSTINSERTITEMBEFORE; 204 205 PLISTNODE XWPENTRY lstInsertItemAfterNode(PLINKLIST pList, 206 void* pNewItemData, 207 PLISTNODE pNodeInsertAfter); 208 typedef PLISTNODE XWPENTRY LSTINSERTITEMAFTERNODE(PLINKLIST pList, 209 void* pNewItemData, 210 PLISTNODE pNodeInsertAfter); 211 typedef LSTINSERTITEMAFTERNODE *PLSTINSERTITEMAFTERNODE; 204 212 205 213 BOOL XWPENTRY lstRemoveNode(PLINKLIST pList, PLISTNODE pRemoveNode); -
trunk/include/helpers/nls.h
r194 r242 90 90 } COUNTRYSETTINGS, *PCOUNTRYSETTINGS; 91 91 92 VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS pcs); 92 /* 93 *@@ COUNTRYAMPM: 94 * 95 *@@added V1.0.1 (2003-01-17) [umoeller] 96 */ 97 98 typedef struct _COUNTRYAMPM 99 { 100 CHAR sz2359[10], 101 sz1159[10]; 102 } COUNTRYAMPM, *PCOUNTRYAMPM; 103 104 /* 105 *@@ COUNTRYSETTINGS: 106 * second structure to finally get the AM/PM 107 * stuff right too. I suspect people have used 108 * this structure in XCenter DLLs and such so 109 * I cannot easily change it... hence a second 110 * one. 111 * 112 *@@changed V1.0.1 (2003-01-17) [umoeller] 113 */ 114 115 typedef struct _COUNTRYSETTINGS2 116 { 117 COUNTRYSETTINGS cs; 118 COUNTRYAMPM ampm; 119 } COUNTRYSETTINGS2, *PCOUNTRYSETTINGS2; 120 121 VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS2 pcs); 93 122 94 123 PSZ XWPENTRY nlsThousandsULong(PSZ pszTarget, ULONG ul, CHAR cThousands); … … 103 132 CHAR cThousands); 104 133 134 VOID XWPENTRY nlsDate(const COUNTRYSETTINGS2 *pcs2, 135 PSZ pszDate, 136 USHORT year, 137 BYTE month, 138 BYTE day); 139 140 VOID XWPENTRY nlsTime(const COUNTRYSETTINGS2 *pcs, 141 PSZ pszTime, 142 BYTE hours, 143 BYTE minutes, 144 BYTE seconds); 145 105 146 VOID XWPENTRY nlsFileDate(PSZ pszBuf, 106 FDATE *pfDate, 107 ULONG ulDateFormat, 108 CHAR cDateSep); 147 const FDATE *pfDate, 148 const COUNTRYSETTINGS2 *pcs); 109 149 110 150 VOID XWPENTRY nlsFileTime(PSZ pszBuf, 111 FTIME *pfTime, 112 ULONG ulTimeFormat, 113 CHAR cTimeSep); 151 const FTIME *pfTime, 152 const COUNTRYSETTINGS2 *pcs); 114 153 115 154 VOID XWPENTRY nlsDateTime(PSZ pszDate, 116 155 PSZ pszTime, 117 DATETIME *pDateTime,156 const DATETIME *pDateTime, 118 157 ULONG ulDateFormat, 119 158 CHAR cDateSep, … … 122 161 typedef VOID XWPENTRY NLSDATETIME(PSZ pszDate, 123 162 PSZ pszTime, 124 DATETIME *pDateTime,163 const DATETIME *pDateTime, 125 164 ULONG ulDateFormat, 126 165 CHAR cDateSep, … … 129 168 typedef NLSDATETIME *PNLSDATETIME; 130 169 131 ULONG nlsUpper(PSZ psz); 170 VOID XWPENTRY nlsDateTime2(PSZ pszDate, 171 PSZ pszTime, 172 const DATETIME *pDateTime, 173 const COUNTRYSETTINGS2 *pcs2); 174 typedef VOID XWPENTRY NLSDATETIME2(PSZ pszDate, 175 PSZ pszTime, 176 const DATETIME *pDateTime, 177 const COUNTRYSETTINGS2 *pcs2); 178 typedef NLSDATETIME2 *PNLSDATETIME2; 132 179 133 180 #endif 181 182 ULONG nlsUpper(PSZ psz); 134 183 135 184 #endif -
trunk/include/helpers/standards.h
r232 r242 126 126 #define STOREIFMAX(a, b) if ((a) > (b)) { b = a; } 127 127 128 #ifdef _PMPRINTF_ 129 #define PMPF_RECT(s, prect) _PmpfF(("%s: xLeft %d, xRight %d, yBottom %d, yTop %d", (s), (prect)->xLeft, (prect)->xRight, (prect)->yBottom, (prect)->yTop)) 130 #else 131 #define PMPF_RECT(s, prect) 132 #endif 133 128 134 #endif 129 135 -
trunk/include/helpers/winh.h
r239 r242 673 673 ********************************************************************/ 674 674 675 #define ID_VSCROLL 100 676 #define ID_HSCROLL 101 677 678 BOOL XWPENTRY winhCreateScrollBars(HWND hwndParent, 679 HWND *phwndV, 680 HWND *phwndH); 681 675 682 BOOL XWPENTRY winhUpdateScrollBar(HWND hwndScrollBar, 676 683 ULONG ulWinPels, … … 687 694 ULONG msg, 688 695 MPARAM mp2); 696 697 LONG XWPENTRY winhHandleScrollMsg2(HWND hwndScrollBar, 698 PLONG plCurPelsOfs, 699 LONG lWindowPels, 700 LONG lWorkareaPels, 701 USHORT usLineStepPels, 702 ULONG msg, 703 MPARAM mp2); 704 BOOL XWPENTRY winhScrollWindow(HWND hwnd2Scroll, 705 PRECTL prclClip, 706 PPOINTL pptlScroll); 689 707 690 708 BOOL XWPENTRY winhProcessScrollChars(HWND hwndClient, … … 951 969 ULONG ulID); 952 970 971 BOOL XWPENTRY winhSetParentAndOwner(HWND hwnd, 972 HWND hwndNewParent, 973 BOOL fRedraw); 974 953 975 VOID XWPENTRY winhRepaintWindows(HWND hwndParent); 954 976
Note:
See TracChangeset
for help on using the changeset viewer.