Changeset 10606 for trunk/include
- Timestamp:
- May 24, 2004, 10:56:07 AM (21 years ago)
- Location:
- trunk/include
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/initdll.h
r10303 r10606 104 104 ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag); 105 105 ULONG APIENTRY inittermMSVCRT(ULONG hModule, ULONG ulFlag); 106 ULONG APIENTRY inittermImm32(ULONG hModule, ULONG ulFlag); 106 107 107 108 ULONG APIENTRY InitializeKernel32(); -
trunk/include/versionos2.h
r10395 r10606 1 /* $Id: versionos2.h,v 1.2 7 2004-01-15 10:27:10sandervl Exp $ */1 /* $Id: versionos2.h,v 1.28 2004-05-24 08:52:51 sandervl Exp $ */ 2 2 3 3 #ifndef __VERSIONOS2__H__ … … 58 58 #define USER32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION 59 59 #define USER32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION 60 #define IMM32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION 61 #define IMM32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION 60 62 61 63 -
trunk/include/win/debugtools.h
r9985 r10606 24 24 #define dprintf(a) WriteLog a 25 25 #endif 26 #define eprintf(a) WriteLog a 26 #define eprintf(a) WriteLog a 27 27 #define dassert(a, b) if(!(a)) dprintf b 28 28 #define dbgCheckObj(a) a->checkObject() … … 249 249 return res; 250 250 } 251 252 #ifndef __WIN32OS2__ 251 253 if (n > sizeof(res)) return "(null)"; 252 254 #endif 253 255 if (n < 0) n = 0; 256 #ifdef __WIN32OS2__ 257 { 258 LPCSTR s = src; 259 int srcSize = n; 260 int reqSize = 0; 261 BYTE c; 262 263 reqSize++; 264 while (srcSize-- > 0 && *s) 265 { 266 c = *s++; 267 switch (c) 268 { 269 case '\n': reqSize++; reqSize++; break; 270 case '\r': reqSize++; reqSize++; break; 271 case '\t': reqSize++; reqSize++; break; 272 case '"': reqSize++; reqSize++; break; 273 case '\\': reqSize++; reqSize++; break; 274 default: 275 if (c >= ' ' && c <= 126) 276 reqSize++; 277 else 278 { 279 reqSize++; 280 reqSize++; 281 reqSize++; 282 reqSize++; 283 } 284 } 285 } 286 reqSize++; 287 if (*s) 288 { 289 reqSize++; 290 reqSize++; 291 reqSize++; 292 } 293 reqSize++; 294 295 if( reqSize > sizeof( res )) return "(null)"; 296 } 297 #endif 298 254 299 dst = res; 255 300 *dst++ = '"'; … … 304 349 return res; 305 350 } 351 352 #ifndef __WIN32OS2__ 306 353 if (n > sizeof(res)) return "(null)"; 354 #endif 307 355 if (n < 0) n = 0; 356 #ifdef __WIN32OS2__ 357 { 358 LPCWSTR s = src; 359 int srcSize = n; 360 int reqSize = 0; 361 WORD c; 362 363 reqSize++; 364 reqSize++; 365 while (srcSize-- > 0 && *s) 366 { 367 c = *s++; 368 switch (c) 369 { 370 case '\n': reqSize++; reqSize++; break; 371 case '\r': reqSize++; reqSize++; break; 372 case '\t': reqSize++; reqSize++; break; 373 case '"': reqSize++; reqSize++; break; 374 case '\\': reqSize++; reqSize++; break; 375 default: 376 if (c >= ' ' && c <= 126) 377 reqSize++; 378 else 379 { 380 reqSize++; 381 reqSize+=4; 382 } 383 } 384 } 385 reqSize++; 386 if (*s) 387 { 388 reqSize++; 389 reqSize++; 390 reqSize++; 391 } 392 reqSize++; 393 394 if( reqSize > sizeof( res )) return "(null)"; 395 } 396 #endif 308 397 309 398 dst = res; -
trunk/include/win32type.h
r10567 r10606 233 233 // strings 234 234 /* Some systems might have wchar_t, but we really need 16 bit characters */ 235 typedef unsigned shortWCHAR;236 #define LPTSTR char * 237 #define LPSTR char * 238 #define LPCSTR const char * 239 #define LPCTSTR const char * 240 #define LPWSTR WCHAR * 241 #define PWSTR WCHAR * 242 #define LPCWSTR const WCHAR * 235 typedef unsigned short WCHAR; 236 typedef char *LPTSTR; 237 typedef char *LPSTR; 238 typedef const char *LPCSTR; 239 typedef const char *LPCTSTR; 240 typedef WCHAR *LPWSTR; 241 typedef WCHAR *PWSTR; 242 typedef const WCHAR *LPCWSTR; 243 243 244 244 // handles 245 245 #define HANDLE ULONG 246 #define PHANDLE HANDLE * 246 typedef HANDLE *PHANDLE; 247 247 #define HINSTANCE ULONG 248 248 #define HGLOBAL DWORD … … 268 268 #define HWND16 WORD 269 269 #define HWND32 DWORD 270 #define LPUINT16 WORD * 270 typedef WORD *LPUINT16; 271 271 #define HTASK16 WORD 272 272 #define HMMIO16 WORD … … 1264 1264 1265 1265 typedef struct _UNICODE_STRING { 1266 USHORT Length;/* bytes */1267 USHORT MaximumLength;/* bytes */1268 PWSTRBuffer;1266 USHORT Length; /* bytes */ 1267 USHORT MaximumLength; /* bytes */ 1268 PWSTR Buffer; 1269 1269 } UNICODE_STRING,*PUNICODE_STRING; 1270 1270 … … 1346 1346 typedef struct 1347 1347 { 1348 UINT 1349 UINT 1350 POINT 1351 INT16 1352 INT16 1348 UINT gmBlackBoxX; 1349 UINT gmBlackBoxY; 1350 POINT gmptGlyphOrigin; 1351 INT16 gmCellIncX; 1352 INT16 gmCellIncY; 1353 1353 } GLYPHMETRICS, *LPGLYPHMETRICS; 1354 1354
Note:
See TracChangeset
for help on using the changeset viewer.