Changeset 21301 for trunk/include/win


Ignore:
Timestamp:
Jun 16, 2009, 3:47:05 PM (16 years ago)
Author:
ydario
Message:

Header updates.

Location:
trunk/include/win
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/debugtools.h

    r10606 r21301  
    249249        return res;
    250250  }
    251 
    252 #ifndef __WIN32OS2__
    253251  if (n > sizeof(res)) return "(null)";
    254 #endif
     252
    255253  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 
    299254  dst = res;
    300255  *dst++ = '"';
     
    350305  }
    351306
    352 #ifndef __WIN32OS2__
    353307  if (n > sizeof(res)) return "(null)";
    354 #endif
    355308  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
    397309
    398310  dst = res;
  • trunk/include/win/oleauto.h

    r10633 r21301  
    163163#define V_ARRAYREF(A)    V_UNION(A, pparray)
    164164#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)
    170166#define V_DECIMALREF(A)  V_UNION(A, pdecVal)
    171 
    172 #ifndef LOCALE_USE_NLS
    173 /* This is missing from native winnls.h, but may be added at some point */
    174 #define LOCALE_USE_NLS          0x10000000
    175 #endif
    176 
    177167
    178168/*
  • trunk/include/win/windef.h

    r21299 r21301  
    763763
    764764/*
    765  * Cinc: added 29/09/2004
    766  */
    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_BIGENDIAN
    789       ULONG Mid32;
    790       ULONG Lo32;
    791 #else
    792       ULONG Lo32;
    793       ULONG Mid32;
    794 #endif
    795     } DUMMYSTRUCTNAME1;
    796     ULONGLONG Lo64;
    797   } DUMMYUNIONNAME1;
    798 } DECIMAL;
    799 #endif
    800 #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 0
    806 /*
    807765 * 8.9.99 DJR DECIMAL support
    808766 */
     
    831789} DECIMAL;
    832790typedef DECIMAL *LPDECIMAL;
    833 #endif
    834791
    835792#include <winbase.h>
  • trunk/include/win/winuser.h

    r21299 r21301  
    25372537
    25382538#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
     2559typedef struct {
     2560    UINT cbSize;
     2561    HWND hwnd;
     2562    DWORD dwFlags;
     2563    UINT uCount;
     2564    DWORD dwTimeout;
     2565} FLASHWINFO, *PFLASHWINFO;
    25392566
    25402567/* WM_SHOWWINDOW wParam codes */
     
    36523679INT       WINAPI GetClassNameW(HWND,LPWSTR,INT);
    36533680#define     GetClassName WINELIB_NAME_AW(GetClassName)
     3681INT       WINAPI RealGetWindowClassA(HWND,LPSTR,INT);
     3682INT       WINAPI RealGetWindowClassW(HWND,LPWSTR,INT);
     3683#define     RealGetWindowClass WINELIB_NAME_AW(RealGetWindowClass)
    36543684WORD        WINAPI GetClassWord(HWND,INT);
    36553685BOOL      WINAPI GetClientRect(HWND,LPRECT);
     
    37313761LONG        WINAPI GetWindowLongW(HWND,INT);
    37323762#define     GetWindowLong WINELIB_NAME_AW(GetWindowLong)
    3733 
    3734 #ifndef GetWindowLongPtr
    3735   #define GetWindowLongPtrA   GetWindowLongA
    3736   #define GetWindowLongPtrW   GetWindowLongW
    3737   #ifdef UNICODE
    3738     #define GetWindowLongPtr  GetWindowLongPtrW
    3739   #else
    3740     #define GetWindowLongPtr  GetWindowLongPtrA
    3741   #endif // !UNICODE
    3742 #endif // !GetWindowLongPtr
    3743 
    3744 #ifndef SetWindowLongPtr
    3745   #define SetWindowLongPtrA   SetWindowLongA
    3746   #define SetWindowLongPtrW   SetWindowLongW
    3747   #ifdef UNICODE
    3748     #define SetWindowLongPtr  SetWindowLongPtrW
    3749   #else
    3750     #define SetWindowLongPtr  SetWindowLongPtrA
    3751   #endif // !UNICODE
    3752 #endif // !SetWindowLongPtr
    3753 
    37543763BOOL      WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
    37553764BOOL      WINAPI GetWindowRect(HWND,LPRECT);
Note: See TracChangeset for help on using the changeset viewer.