Changeset 21301 for trunk/include/win
- Timestamp:
- Jun 16, 2009, 3:47:05 PM (16 years ago)
- Location:
- trunk/include/win
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/debugtools.h
r10606 r21301 249 249 return res; 250 250 } 251 252 #ifndef __WIN32OS2__253 251 if (n > sizeof(res)) return "(null)"; 254 #endif 252 255 253 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 else278 {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 #endif298 299 254 dst = res; 300 255 *dst++ = '"'; … … 350 305 } 351 306 352 #ifndef __WIN32OS2__353 307 if (n > sizeof(res)) return "(null)"; 354 #endif355 308 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 else379 {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 #endif397 309 398 310 dst = res; -
trunk/include/win/oleauto.h
r10633 r21301 163 163 #define V_ARRAYREF(A) V_UNION(A, pparray) 164 164 #define V_BYREF(A) V_UNION(A, byref) 165 #if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION) 166 #define V_DECIMAL(A) ((A)->n1.decVal) 167 #else 168 #define V_DECIMAL(A) ((A)->decVal) 169 #endif 165 #define V_DECIMAL(A) V_UNION(A, decVal) 170 166 #define V_DECIMALREF(A) V_UNION(A, pdecVal) 171 172 #ifndef LOCALE_USE_NLS173 /* This is missing from native winnls.h, but may be added at some point */174 #define LOCALE_USE_NLS 0x10000000175 #endif176 177 167 178 168 /* -
trunk/include/win/windef.h
r21299 r21301 763 763 764 764 /* 765 * Cinc: added 29/09/2004766 */767 #if 0 /* for IDL only */768 typedef struct tagDEC {769 USHORT wReserved;770 BYTE scale;771 BYTE sign;772 ULONG Hi32;773 ULONGLONG Lo64;774 } DECIMAL;775 #else /* C/C++ defs */776 typedef struct tagDEC {777 USHORT wReserved;778 union {779 struct {780 BYTE scale;781 BYTE sign;782 } DUMMYSTRUCTNAME;783 USHORT signscale;784 } DUMMYUNIONNAME;785 ULONG Hi32;786 union {787 struct {788 #ifdef WORDS_BIGENDIAN789 ULONG Mid32;790 ULONG Lo32;791 #else792 ULONG Lo32;793 ULONG Mid32;794 #endif795 } DUMMYSTRUCTNAME1;796 ULONGLONG Lo64;797 } DUMMYUNIONNAME1;798 } DECIMAL;799 #endif800 #define DECIMAL_NEG ((BYTE)0x80)801 #define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)802 803 typedef DECIMAL *LPDECIMAL;804 805 #if 0806 /*807 765 * 8.9.99 DJR DECIMAL support 808 766 */ … … 831 789 } DECIMAL; 832 790 typedef DECIMAL *LPDECIMAL; 833 #endif834 791 835 792 #include <winbase.h> -
trunk/include/win/winuser.h
r21299 r21301 2537 2537 2538 2538 #define WM_SHOWWINDOW 0x0018 2539 2540 /* AnimateWindow() flags */ 2541 #define AW_SLIDE 0x00040000 2542 #define AW_ACTIVATE 0x00020000 2543 #define AW_BLEND 0x00080000 2544 #define AW_HIDE 0x00010000 2545 #define AW_CENTER 0x00000010 2546 #define AW_HOR_POSITIVE 0x00000001 2547 #define AW_HOR_NEGATIVE 0x00000002 2548 #define AW_VER_POSITIVE 0x00000004 2549 #define AW_VER_NEGATIVE 0x00000008 2550 2551 /* FlashWindowEx() flags */ 2552 #define FLASHW_STOP 0x00000000 2553 #define FLASHW_CAPTION 0x00000001 2554 #define FLASHW_TRAY 0x00000002 2555 #define FLASHW_ALL (FLASHW_CAPTION|FLASHW_TRAY) 2556 #define FLASHW_TIMER 0x00000004 2557 #define FLASHW_TIMERNOFG 0x0000000C 2558 2559 typedef struct { 2560 UINT cbSize; 2561 HWND hwnd; 2562 DWORD dwFlags; 2563 UINT uCount; 2564 DWORD dwTimeout; 2565 } FLASHWINFO, *PFLASHWINFO; 2539 2566 2540 2567 /* WM_SHOWWINDOW wParam codes */ … … 3652 3679 INT WINAPI GetClassNameW(HWND,LPWSTR,INT); 3653 3680 #define GetClassName WINELIB_NAME_AW(GetClassName) 3681 INT WINAPI RealGetWindowClassA(HWND,LPSTR,INT); 3682 INT WINAPI RealGetWindowClassW(HWND,LPWSTR,INT); 3683 #define RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass) 3654 3684 WORD WINAPI GetClassWord(HWND,INT); 3655 3685 BOOL WINAPI GetClientRect(HWND,LPRECT); … … 3731 3761 LONG WINAPI GetWindowLongW(HWND,INT); 3732 3762 #define GetWindowLong WINELIB_NAME_AW(GetWindowLong) 3733 3734 #ifndef GetWindowLongPtr3735 #define GetWindowLongPtrA GetWindowLongA3736 #define GetWindowLongPtrW GetWindowLongW3737 #ifdef UNICODE3738 #define GetWindowLongPtr GetWindowLongPtrW3739 #else3740 #define GetWindowLongPtr GetWindowLongPtrA3741 #endif // !UNICODE3742 #endif // !GetWindowLongPtr3743 3744 #ifndef SetWindowLongPtr3745 #define SetWindowLongPtrA SetWindowLongA3746 #define SetWindowLongPtrW SetWindowLongW3747 #ifdef UNICODE3748 #define SetWindowLongPtr SetWindowLongPtrW3749 #else3750 #define SetWindowLongPtr SetWindowLongPtrA3751 #endif // !UNICODE3752 #endif // !SetWindowLongPtr3753 3754 3763 BOOL WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT); 3755 3764 BOOL WINAPI GetWindowRect(HWND,LPRECT);
Note:
See TracChangeset
for help on using the changeset viewer.