Changeset 10606 for trunk/include


Ignore:
Timestamp:
May 24, 2004, 10:56:07 AM (21 years ago)
Author:
sandervl
Message:

KOM: Updates

Location:
trunk/include
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/initdll.h

    r10303 r10606  
    104104ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag);
    105105ULONG APIENTRY inittermMSVCRT(ULONG hModule, ULONG ulFlag);
     106ULONG APIENTRY inittermImm32(ULONG hModule, ULONG ulFlag);
    106107
    107108ULONG APIENTRY InitializeKernel32();
  • trunk/include/versionos2.h

    r10395 r10606  
    1 /* $Id: versionos2.h,v 1.27 2004-01-15 10:27:10 sandervl Exp $ */
     1/* $Id: versionos2.h,v 1.28 2004-05-24 08:52:51 sandervl Exp $ */
    22
    33#ifndef __VERSIONOS2__H__
     
    5858#define USER32_MAJORIMAGE_VERSION   ODINNT_MAJOR_VERSION
    5959#define USER32_MINORIMAGE_VERSION   ODINNT_MINOR_VERSION
     60#define IMM32_MAJORIMAGE_VERSION    ODINNT_MAJOR_VERSION
     61#define IMM32_MINORIMAGE_VERSION    ODINNT_MINOR_VERSION
    6062
    6163
  • trunk/include/win/debugtools.h

    r9985 r10606  
    2424  #define dprintf(a)      WriteLog a
    2525#endif
    26   #define eprintf(a)      WriteLog a 
     26  #define eprintf(a)      WriteLog a
    2727  #define dassert(a, b)   if(!(a)) dprintf b
    2828  #define dbgCheckObj(a)   a->checkObject()
     
    249249        return res;
    250250  }
     251
     252#ifndef __WIN32OS2__
    251253  if (n > sizeof(res)) return "(null)";
    252 
     254#endif
    253255  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
    254299  dst = res;
    255300  *dst++ = '"';
     
    304349        return res;
    305350  }
     351
     352#ifndef __WIN32OS2__
    306353  if (n > sizeof(res)) return "(null)";
     354#endif
    307355  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
    308397
    309398  dst = res;
  • trunk/include/win32type.h

    r10567 r10606  
    233233// strings
    234234/* Some systems might have wchar_t, but we really need 16 bit characters */
    235 typedef unsigned short  WCHAR;
    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 *
     235typedef         unsigned short   WCHAR;
     236typedef         char            *LPTSTR;
     237typedef         char            *LPSTR;
     238typedef const   char            *LPCSTR;
     239typedef const   char            *LPCTSTR;
     240typedef         WCHAR           *LPWSTR;
     241typedef         WCHAR           *PWSTR;
     242typedef const   WCHAR           *LPCWSTR;
    243243
    244244// handles
    245245#define HANDLE  ULONG
    246 #define PHANDLE HANDLE *
     246typedef HANDLE *PHANDLE;
    247247#define HINSTANCE ULONG
    248248#define HGLOBAL DWORD
     
    268268#define HWND16  WORD
    269269#define HWND32  DWORD
    270 #define LPUINT16 WORD *
     270typedef WORD *LPUINT16;
    271271#define HTASK16  WORD
    272272#define HMMIO16  WORD
     
    12641264
    12651265typedef struct _UNICODE_STRING {
    1266         USHORT  Length;         /* bytes */
    1267         USHORT  MaximumLength;  /* bytes */
    1268         PWSTR   Buffer;
     1266    USHORT  Length;     /* bytes */
     1267    USHORT  MaximumLength;  /* bytes */
     1268    PWSTR   Buffer;
    12691269} UNICODE_STRING,*PUNICODE_STRING;
    12701270
     
    13461346typedef struct
    13471347{
    1348     UINT        gmBlackBoxX;
    1349     UINT        gmBlackBoxY;
    1350     POINT       gmptGlyphOrigin;
    1351     INT16       gmCellIncX;
    1352     INT16       gmCellIncY;
     1348    UINT    gmBlackBoxX;
     1349    UINT    gmBlackBoxY;
     1350    POINT   gmptGlyphOrigin;
     1351    INT16   gmCellIncX;
     1352    INT16   gmCellIncY;
    13531353} GLYPHMETRICS, *LPGLYPHMETRICS;
    13541354
Note: See TracChangeset for help on using the changeset viewer.