Changeset 4124 for trunk/include/win


Ignore:
Timestamp:
Aug 30, 2000, 3:56:39 PM (25 years ago)
Author:
sandervl
Message:

header updates

Location:
trunk/include/win
Files:
9 edited

Legend:

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

    r639 r4124  
    1 /* $Id: debugstr.h,v 1.2 1999-08-22 22:47:17 sandervl Exp $ */
     1/* $Id: debugstr.h,v 1.3 2000-08-30 13:56:37 sandervl Exp $ */
    22#ifndef __WINE_DEBUGSTR_H
    33#define __WINE_DEBUGSTR_H
     
    1212#define debugstr_w(a) a
    1313
    14 extern LPSTR debugstr_an (LPCSTR s, int n);
    1514//extern LPSTR debugstr_a (LPCSTR s);
    16 extern LPSTR debugstr_wn (LPCWSTR s, int n);
    1715//extern LPSTR debugstr_w (LPCWSTR s);
    1816extern LPSTR debugres_a (LPCSTR res);
  • trunk/include/win/debugtools.h

    r3095 r4124  
    127127    extern const int dbch_##ch;
    128128#define DEFAULT_DEBUG_CHANNEL(ch) \
    129     extern const int dbch_##ch; static const int *const DBCH_DEFAULT = &dbch_##ch;
     129    static const int *const DBCH_DEFAULT = &dbch_##ch;
    130130
    131131#define DPRINTF dbg_printf
     
    138138#  define DECLARE_DEBUG_CHANNEL ODINDEBUGCHANNEL
    139139#  undef DEFAULT_DEBUG_CHANNEL
    140 #  define DEFAULT_DEBUG_CHANNEL ODINDEBUGCHANNEL
     140#  define DEFAULT_DEBUG_CHANNEL ODINDEBUGCHANNEL1
    141141#  undef TRACE
    142142#  undef TRACE_
     
    186186#endif
    187187
     188#ifdef DEBUG
     189#ifdef __cplusplus
     190extern "C" {
     191#endif
     192LPCSTR debugstr_guid1( void *id );
     193#define debugstr_guid(a) debugstr_guid1((void *)a)
     194
     195#ifdef __cplusplus
     196}
     197#endif
     198
     199static LPCSTR debugstr_an (LPCSTR src, int n)
     200{
     201  LPSTR dst;
     202  static char res[128];
     203
     204  if (!src) return "(null)";
     205  if (n > sizeof(res)) return "(null)";
     206
     207  if (n < 0) n = 0;
     208  dst = res;
     209  *dst++ = '"';
     210  while (n-- > 0 && *src)
     211    {
     212      BYTE c = *src++;
     213      switch (c)
     214        {
     215        case '\n': *dst++ = '\\'; *dst++ = 'n'; break;
     216        case '\r': *dst++ = '\\'; *dst++ = 'r'; break;
     217        case '\t': *dst++ = '\\'; *dst++ = 't'; break;
     218        case '"': *dst++ = '\\'; *dst++ = '"'; break;
     219        case '\\': *dst++ = '\\'; *dst++ = '\\'; break;
     220        default:
     221          if (c >= ' ' && c <= 126)
     222            *dst++ = c;
     223          else
     224            {
     225              *dst++ = '\\';
     226              *dst++ = '0' + ((c >> 6) & 7);
     227              *dst++ = '0' + ((c >> 3) & 7);
     228              *dst++ = '0' + ((c >> 0) & 7);
     229            }
     230        }
     231    }
     232  *dst++ = '"';
     233  if (*src)
     234    {
     235      *dst++ = '.';
     236      *dst++ = '.';
     237      *dst++ = '.';
     238    }
     239  *dst++ = '\0';
     240  return res;
     241}
     242
     243/* ---------------------------------------------------------------------- */
     244
     245static LPCSTR debugstr_wn (LPCWSTR src, int n)
     246{
     247  LPSTR dst;
     248  static char res[128];
     249
     250  if (!src) return "(null)";
     251  if (n > sizeof(res)) return "(null)";
     252  if (n < 0) n = 0;
     253
     254  dst = res;
     255  *dst++ = 'L';
     256  *dst++ = '"';
     257  while (n-- > 0 && *src)
     258    {
     259      WORD c = *src++;
     260      switch (c)
     261        {
     262        case '\n': *dst++ = '\\'; *dst++ = 'n'; break;
     263        case '\r': *dst++ = '\\'; *dst++ = 'r'; break;
     264        case '\t': *dst++ = '\\'; *dst++ = 't'; break;
     265        case '"': *dst++ = '\\'; *dst++ = '"'; break;
     266        case '\\': *dst++ = '\\'; *dst++ = '\\'; break;
     267        default:
     268          if (c >= ' ' && c <= 126)
     269            *dst++ = c;
     270          else
     271            {
     272              *dst++ = '\\';
     273              sprintf(dst,"%04x",c);
     274              dst+=4;
     275            }
     276        }
     277    }
     278  *dst++ = '"';
     279  if (*src)
     280    {
     281      *dst++ = '.';
     282      *dst++ = '.';
     283      *dst++ = '.';
     284    }
     285  *dst++ = '\0';
     286  return res;
     287}
     288
     289#endif
    188290
    189291#endif  /* __WINE_DEBUGTOOLS_H */
  • trunk/include/win/neexe.h

    r4 r4124  
    1 /* $Id: neexe.h,v 1.1 1999-05-24 20:19:15 ktk Exp $ */
     1/* $Id: neexe.h,v 1.2 2000-08-30 13:56:38 sandervl Exp $ */
    22
    33/*
     
    5757{
    5858    WORD  ne_magic;             /* 00 NE signature 'NE' */
    59     BYTE  linker_version;       /* 02 Linker version number */
    60     BYTE  linker_revision;      /* 03 Linker revision number */
    61     WORD  entry_tab_offset;     /* 04 Offset to entry table relative to NE */
    62     WORD  entry_tab_length;     /* 06 Length of entry table in bytes */
    63     DWORD reserved1;            /* 08 Reserved by Microsoft */
    64     WORD  format_flags;         /* 0c Flags about segments in this file */
    65     WORD  auto_data_seg;        /* 0e Automatic data segment number */
    66     WORD  local_heap_length;    /* 10 Initial size of local heap */
    67     WORD  stack_length;         /* 12 Initial size of stack */
    68     WORD  ip;                   /* 14 Initial IP */
    69     WORD  cs;                   /* 16 Initial CS */
    70     WORD  sp;                   /* 18 Initial SP */
    71     WORD  ss;                   /* 1a Initial SS */
    72     WORD  n_segment_tab;        /* 1c # of entries in segment table */
    73     WORD  n_mod_ref_tab;        /* 1e # of entries in module reference tab. */
    74     WORD  nrname_tab_length;    /* 20 Length of nonresident-name table     */
    75     WORD  segment_tab_offset;   /* 22 Offset to segment table */
    76     WORD  resource_tab_offset;  /* 24 Offset to resource table */
    77     WORD  rname_tab_offset;     /* 26 Offset to resident-name table */
    78     WORD  moduleref_tab_offset; /* 28 Offset to module reference table */
    79     WORD  iname_tab_offset;     /* 2a Offset to imported name table */
    80     DWORD nrname_tab_offset;    /* 2c Offset to nonresident-name table */
    81     WORD  n_mov_entry_points;   /* 30 # of movable entry points */
    82     WORD  align_shift_count;    /* 32 Logical sector alignment shift count */
    83     WORD  n_resource_seg;       /* 34 # of resource segments */
    84     BYTE  operating_system;     /* 36 Flags indicating target OS */
    85     BYTE  additional_flags;     /* 37 Additional information flags */
    86     WORD  fastload_offset;      /* 38 Offset to fast load area */
    87     WORD  fastload_length;      /* 3a Length of fast load area */
    88     WORD  reserved2;            /* 3c Reserved by Microsoft */
    89     WORD  expect_version;       /* 3e Expected Windows version number */
     59    BYTE  ne_ver;               /* 02 Linker version number */
     60    BYTE  ne_rev;               /* 03 Linker revision number */
     61    WORD  ne_enttab;            /* 04 Offset to entry table relative to NE */
     62    WORD  ne_cbenttab;          /* 06 Length of entry table in bytes */
     63    LONG  ne_crc;               /* 08 Checksum */
     64    WORD  ne_flags;             /* 0c Flags about segments in this file */
     65    WORD  ne_autodata;          /* 0e Automatic data segment number */
     66    WORD  ne_heap;              /* 10 Initial size of local heap */
     67    WORD  ne_stack;             /* 12 Initial size of stack */
     68    DWORD ne_csip;              /* 14 Initial CS:IP */
     69    DWORD ne_sssp;              /* 18 Initial SS:SP */
     70    WORD  ne_cseg;              /* 1c # of entries in segment table */
     71    WORD  ne_cmod;              /* 1e # of entries in module reference tab. */
     72    WORD  ne_cbnrestab;         /* 20 Length of nonresident-name table     */
     73    WORD  ne_segtab;            /* 22 Offset to segment table */
     74    WORD  ne_rsrctab;           /* 24 Offset to resource table */
     75    WORD  ne_restab;            /* 26 Offset to resident-name table */
     76    WORD  ne_modtab;            /* 28 Offset to module reference table */
     77    WORD  ne_imptab;            /* 2a Offset to imported name table */
     78    DWORD ne_nrestab;           /* 2c Offset to nonresident-name table */
     79    WORD  ne_cmovent;           /* 30 # of movable entry points */
     80    WORD  ne_align;             /* 32 Logical sector alignment shift count */
     81    WORD  ne_cres;              /* 34 # of resource segments */
     82    BYTE  ne_exetyp;            /* 36 Flags indicating target OS */
     83    BYTE  ne_flagsothers;       /* 37 Additional information flags */
     84    WORD  fastload_offset;      /* 38 Offset to fast load area (should be ne_pretthunks)*/
     85    WORD  fastload_length;      /* 3a Length of fast load area (should be ne_psegrefbytes) */
     86    WORD  ne_swaparea;          /* 3c Reserved by Microsoft */
     87    WORD  ne_expver;            /* 3e Expected Windows version number */
    9088} IMAGE_OS2_HEADER,*PIMAGE_OS2_HEADER;
    9189
  • trunk/include/win/pe_image.h

    r4 r4124  
    1 /* $Id: pe_image.h,v 1.1 1999-05-24 20:19:17 ktk Exp $ */
     1/* $Id: pe_image.h,v 1.2 2000-08-30 13:56:38 sandervl Exp $ */
    22
    33#ifndef __WINE_PE_IMAGE_H
     
    4545extern PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY,LPCWSTR,DWORD,BOOL);
    4646
    47 typedef DWORD (CALLBACK*DLLENTRYPROC)(HMODULE,DWORD,LPVOID);
     47typedef DWORD (* CALLBACK DLLENTRYPROC)(HMODULE,DWORD,LPVOID);
    4848
    4949typedef struct {
  • trunk/include/win/shellapi.h

    r2524 r4124  
    1 /* $Id: shellapi.h,v 1.8 2000-01-26 23:17:49 sandervl Exp $ */
     1/* $Id: shellapi.h,v 1.9 2000-08-30 13:56:38 sandervl Exp $ */
    22
    33#ifndef _WINE_SHELLAPI_H
     
    320320HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
    321321
    322 INT WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
    323 INT WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
     322BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
     323BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
    324324
    325325#pragma pack(4)
  • trunk/include/win/wine/obj_oleview.h

    r801 r4124  
    1 /* $Id: obj_oleview.h,v 1.6 1999-09-02 19:07:18 phaller Exp $ */
     1/* $Id: obj_oleview.h,v 1.7 2000-08-30 13:56:39 sandervl Exp $ */
    22/*
    33 * Defines the COM interfaces and APIs related to ViewObject
     
    3636 * IViewObject interface
    3737 */
    38 typedef BOOL    (CALLBACK* IVO_ContCallback)(DWORD);
     38typedef BOOL    (* CALLBACK IVO_ContCallback)(DWORD);
    3939
    4040#define ICOM_INTERFACE IViewObject
  • trunk/include/win/wine/wingdi16.h

    r641 r4124  
    1 /* $Id: wingdi16.h,v 1.2 1999-08-22 22:52:12 sandervl Exp $ */
     1/* $Id: wingdi16.h,v 1.3 2000-08-30 13:56:39 sandervl Exp $ */
    22#ifndef __WINE_WINE_WINGDI16_H
    33#define __WINE_WINE_WINGDI16_H
     
    213213} NEWTEXTMETRICEX16,*LPNEWTEXTMETRICEX16;
    214214
    215 typedef INT16 (CALLBACK *FONTENUMPROC16)(SEGPTR,SEGPTR,UINT16,LPARAM);
    216 typedef INT16 (CALLBACK *FONTENUMPROCEX16)(SEGPTR,SEGPTR,UINT16,LPARAM);
    217 typedef VOID  (CALLBACK *LINEDDAPROC16)(INT16,INT16,LPARAM);
    218 typedef INT16 (CALLBACK *GOBJENUMPROC16)(SEGPTR,LPARAM);
     215typedef INT16 (* CALLBACK FONTENUMPROC16)(SEGPTR,SEGPTR,UINT16,LPARAM);
     216typedef INT16 (* CALLBACK FONTENUMPROCEX16)(SEGPTR,SEGPTR,UINT16,LPARAM);
     217#ifndef __WINE_WINDEF_H
     218typedef VOID  (* CALLBACK LINEDDAPROC16)(INT16,INT16,LPARAM);
     219typedef INT16 (* CALLBACK GOBJENUMPROC16)(SEGPTR,LPARAM);
     220#endif
    219221
    220222typedef struct
     
    254256} METAFILEPICT16, *LPMETAFILEPICT16;
    255257
    256 typedef INT16 (CALLBACK *MFENUMPROC16)(HDC16,HANDLETABLE16*,METARECORD*,
     258typedef INT16 (* CALLBACK MFENUMPROC16)(HDC16,HANDLETABLE16*,METARECORD*,
    257259                                       INT16,LPARAM);
    258260typedef struct
     
    263265} DOCINFO16, *LPDOCINFO16;
    264266
    265 typedef BOOL16 (CALLBACK* ABORTPROC16)(HDC16, INT16);
     267typedef BOOL16 (* CALLBACK ABORTPROC16)(HDC16, INT16);
    266268
    267269#define INT_PD_DEFAULT_DEVMODE  1
  • trunk/include/win/wine/winuser16.h

    r641 r4124  
    1 /* $Id: winuser16.h,v 1.5 1999-08-22 22:52:12 sandervl Exp $ */
     1/* $Id: winuser16.h,v 1.6 2000-08-30 13:56:39 sandervl Exp $ */
    22#ifndef __WINE_WINE_WINUSER16_H
    33#define __WINE_WINE_WINUSER16_H
    44
    5 #include "winuser.h" /* winuser.h needed for MSGBOXCALLBACK */
     5#include "winuser.h" /* winuser.h needed for MSGBOX* CALLBACK /
    66                     /* wingdi.h needed for COLORREF */
    77#include "wine/wingdi16.h"
     
    158158
    159159/* DrawState defines ... */
    160 typedef BOOL16 (CALLBACK *DRAWSTATEPROC16)(HDC16,LPARAM,WPARAM16,INT16,INT16);
     160typedef BOOL16 (* CALLBACK DRAWSTATEPROC16)(HDC16,LPARAM,WPARAM16,INT16,INT16);
    161161
    162162/* Listbox messages */
  • trunk/include/win/winerror.h

    r3447 r4124  
    1 /* $Id: winerror.h,v 1.8 2000-04-25 22:27:11 davidr Exp $ */
     1/* $Id: winerror.h,v 1.9 2000-08-30 13:56:38 sandervl Exp $ */
    22#ifndef __WINE_WINERROR_H
    33#define __WINE_WINERROR_H
     
    665665
    666666#define CO_S_NOTALLINTERFACES           0x00080012
    667 #define CO_E_NOTINITIALIZED             0x800401F0
    668 #define CO_E_ERRORINDLL                 0x800401F9
    669 #define CO_E_OBJISREG                   0x800401FB
     667#define CO_E_NOTINITIALIZED              0x800401F0L
     668#define CO_E_ALREADYINITIALIZED          0x800401F1L
     669#define CO_E_CANTDETERMINECLASS          0x800401F2L
     670#define CO_E_CLASSSTRING                 0x800401F3L
     671#define CO_E_IIDSTRING                   0x800401F4L
     672#define CO_E_APPNOTFOUND                 0x800401F5L
     673#define CO_E_APPSINGLEUSE                0x800401F6L
     674#define CO_E_ERRORINAPP                  0x800401F7L
     675#define CO_E_DLLNOTFOUND                 0x800401F8L
     676#define CO_E_ERRORINDLL                  0x800401F9L
     677#define CO_E_WRONGOSFORAPP               0x800401FAL
     678#define CO_E_OBJNOTREG                   0x800401FBL
     679#define CO_E_OBJISREG                    0x800401FCL
     680#define CO_E_OBJNOTCONNECTED             0x800401FDL
     681#define CO_E_APPDIDNTREG                 0x800401FEL
     682#define CO_E_RELEASED                    0x800401FFL
     683#define CO_E_FAILEDTOIMPERSONATE         0x80040200L
     684#define CO_E_FAILEDTOGETSECCTX           0x80040201L
     685#define CO_E_FAILEDTOOPENTHREADTOKEN     0x80040202L
     686#define CO_E_FAILEDTOGETTOKENINFO        0x80040203L
     687#define CO_E_TRUSTEEDOESNTMATCHCLIENT    0x80040204L
     688#define CO_E_FAILEDTOQUERYCLIENTBLANKET  0x80040205L
     689#define CO_E_FAILEDTOSETDACL             0x80040206L
     690#define CO_E_ACCESSCHECKFAILED           0x80040207L
     691#define CO_E_NETACCESSAPIFAILED          0x80040208L
     692#define CO_E_WRONGTRUSTEENAMESYNTAX      0x80040209L
     693#define CO_E_INVALIDSID                  0x8004020AL
     694#define CO_E_CONVERSIONFAILED            0x8004020BL
     695#define CO_E_NOMATCHINGSIDFOUND          0x8004020CL
     696#define CO_E_LOOKUPACCSIDFAILED          0x8004020DL
     697#define CO_E_NOMATCHINGNAMEFOUND         0x8004020EL
     698#define CO_E_LOOKUPACCNAMEFAILED         0x8004020FL
     699#define CO_E_SETSERLHNDLFAILED           0x80040210L
     700#define CO_E_FAILEDTOGETWINDIR           0x80040211L
     701#define CO_E_PATHTOOLONG                 0x80040212L
     702#define CO_E_FAILEDTOGENUUID             0x80040213L
     703#define CO_E_FAILEDTOCREATEFILE          0x80040214L
     704#define CO_E_FAILEDTOCLOSEHANDLE         0x80040215L
     705#define CO_E_EXCEEDSYSACLLIMIT           0x80040216L
     706#define CO_E_ACESINWRONGORDER            0x80040217L
     707#define CO_E_INCOMPATIBLESTREAMVERSION   0x80040218L
     708#define CO_E_FAILEDTOOPENPROCESSTOKEN    0x80040219L
     709#define CO_E_DECODEFAILED                0x8004021AL
     710#define CO_E_ACNOTINITIALIZED            0x8004021BL
    670711
    671712#define OLE_E_FIRST 0x80040000L
Note: See TracChangeset for help on using the changeset viewer.