Changeset 3268


Ignore:
Timestamp:
Mar 29, 2000, 5:16:10 PM (26 years ago)
Author:
cbratschi
Message:

fileio

Location:
trunk/include
Files:
4 edited

Legend:

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

    r2524 r3268  
    1 /* $Id: winbase.h,v 1.10 2000-01-26 23:17:49 sandervl Exp $ */
     1/* $Id: winbase.h,v 1.11 2000-03-29 15:16:10 cbratschi Exp $ */
    22
    33#ifndef __WINE_WINBASE_H
     
    2020
    2121  /* Windows Exit Procedure flag values */
    22 #define WEP_FREE_DLL        0
    23 #define WEP_SYSTEM_EXIT     1
     22#define WEP_FREE_DLL        0
     23#define WEP_SYSTEM_EXIT     1
    2424
    2525typedef DWORD (* CALLBACK LPTHREAD_START_ROUTINE)(LPVOID);
     
    158158
    159159/* GetTempFileName() Flags */
    160 #define TF_FORCEDRIVE           0x80
     160#define TF_FORCEDRIVE           0x80
    161161
    162162
     
    254254/* comm */
    255255
    256 #define CBR_110 0xFF10
    257 #define CBR_300 0xFF11
    258 #define CBR_600 0xFF12
    259 #define CBR_1200        0xFF13
    260 #define CBR_2400        0xFF14
    261 #define CBR_4800        0xFF15
    262 #define CBR_9600        0xFF16
    263 #define CBR_14400       0xFF17
    264 #define CBR_19200       0xFF18
    265 #define CBR_38400       0xFF1B
    266 #define CBR_56000       0xFF1F
    267 #define CBR_128000      0xFF23
    268 #define CBR_256000      0xFF27
    269 
    270 #define NOPARITY        0
    271 #define ODDPARITY       1
    272 #define EVENPARITY      2
    273 #define MARKPARITY      3
    274 #define SPACEPARITY     4
    275 #define ONESTOPBIT      0
    276 #define ONE5STOPBITS    1
    277 #define TWOSTOPBITS     2
    278 
    279 #define IGNORE          0
     256#define CBR_110 0xFF10
     257#define CBR_300 0xFF11
     258#define CBR_600 0xFF12
     259#define CBR_1200        0xFF13
     260#define CBR_2400        0xFF14
     261#define CBR_4800        0xFF15
     262#define CBR_9600        0xFF16
     263#define CBR_14400       0xFF17
     264#define CBR_19200       0xFF18
     265#define CBR_38400       0xFF1B
     266#define CBR_56000       0xFF1F
     267#define CBR_128000      0xFF23
     268#define CBR_256000      0xFF27
     269
     270#define NOPARITY        0
     271#define ODDPARITY       1
     272#define EVENPARITY      2
     273#define MARKPARITY      3
     274#define SPACEPARITY     4
     275#define ONESTOPBIT      0
     276#define ONE5STOPBITS    1
     277#define TWOSTOPBITS     2
     278
     279#define IGNORE          0
    280280#define INFINITE16      0xFFFF
    281281#define INFINITE      0xFFFFFFFF
    282282
    283 #define CE_RXOVER       0x0001
    284 #define CE_OVERRUN      0x0002
    285 #define CE_RXPARITY     0x0004
    286 #define CE_FRAME        0x0008
    287 #define CE_BREAK        0x0010
    288 #define CE_CTSTO        0x0020
    289 #define CE_DSRTO        0x0040
    290 #define CE_RLSDTO       0x0080
    291 #define CE_TXFULL       0x0100
    292 #define CE_PTO          0x0200
    293 #define CE_IOE          0x0400
    294 #define CE_DNS          0x0800
    295 #define CE_OOP          0x1000
    296 #define CE_MODE 0x8000
    297 
    298 #define IE_BADID        -1
    299 #define IE_OPEN -2
    300 #define IE_NOPEN        -3
    301 #define IE_MEMORY       -4
    302 #define IE_DEFAULT      -5
    303 #define IE_HARDWARE     -10
    304 #define IE_BYTESIZE     -11
    305 #define IE_BAUDRATE     -12
    306 
    307 #define EV_RXCHAR       0x0001
    308 #define EV_RXFLAG       0x0002
    309 #define EV_TXEMPTY      0x0004
    310 #define EV_CTS          0x0008
    311 #define EV_DSR          0x0010
    312 #define EV_RLSD 0x0020
    313 #define EV_BREAK        0x0040
    314 #define EV_ERR          0x0080
    315 #define EV_RING 0x0100
    316 #define EV_PERR 0x0200
    317 #define EV_CTSS 0x0400
    318 #define EV_DSRS 0x0800
    319 #define EV_RLSDS        0x1000
    320 #define EV_RINGTE       0x2000
    321 #define EV_RingTe       EV_RINGTE
    322 
    323 #define SETXOFF 1
    324 #define SETXON          2
    325 #define SETRTS          3
    326 #define CLRRTS          4
    327 #define SETDTR          5
    328 #define CLRDTR          6
    329 #define RESETDEV        7
    330 #define SETBREAK        8
    331 #define CLRBREAK        9
    332 
    333 #define GETBASEIRQ      10
     283#define CE_RXOVER       0x0001
     284#define CE_OVERRUN      0x0002
     285#define CE_RXPARITY     0x0004
     286#define CE_FRAME        0x0008
     287#define CE_BREAK        0x0010
     288#define CE_CTSTO        0x0020
     289#define CE_DSRTO        0x0040
     290#define CE_RLSDTO       0x0080
     291#define CE_TXFULL       0x0100
     292#define CE_PTO          0x0200
     293#define CE_IOE          0x0400
     294#define CE_DNS          0x0800
     295#define CE_OOP          0x1000
     296#define CE_MODE 0x8000
     297
     298#define IE_BADID        -1
     299#define IE_OPEN -2
     300#define IE_NOPEN        -3
     301#define IE_MEMORY       -4
     302#define IE_DEFAULT      -5
     303#define IE_HARDWARE     -10
     304#define IE_BYTESIZE     -11
     305#define IE_BAUDRATE     -12
     306
     307#define EV_RXCHAR       0x0001
     308#define EV_RXFLAG       0x0002
     309#define EV_TXEMPTY      0x0004
     310#define EV_CTS          0x0008
     311#define EV_DSR          0x0010
     312#define EV_RLSD 0x0020
     313#define EV_BREAK        0x0040
     314#define EV_ERR          0x0080
     315#define EV_RING 0x0100
     316#define EV_PERR 0x0200
     317#define EV_CTSS 0x0400
     318#define EV_DSRS 0x0800
     319#define EV_RLSDS        0x1000
     320#define EV_RINGTE       0x2000
     321#define EV_RingTe       EV_RINGTE
     322
     323#define SETXOFF 1
     324#define SETXON          2
     325#define SETRTS          3
     326#define CLRRTS          4
     327#define SETDTR          5
     328#define CLRDTR          6
     329#define RESETDEV        7
     330#define SETBREAK        8
     331#define CLRBREAK        9
     332
     333#define GETBASEIRQ      10
    334334
    335335/* Purge functions for Comm Port */
    336336#define PURGE_TXABORT       0x0001  /* Kill the pending/current writes to the
    337                                        comm port */
     337                                       comm port */
    338338#define PURGE_RXABORT       0x0002  /*Kill the pending/current reads to
    339                                      the comm port */
     339                                     the comm port */
    340340#define PURGE_TXCLEAR       0x0004  /* Kill the transmit queue if there*/
    341341#define PURGE_RXCLEAR       0x0008  /* Kill the typeahead buffer if there*/
     
    348348#define MS_RLSD_ON          ((DWORD)0x0080)
    349349
    350 #define RTS_CONTROL_DISABLE     0
    351 #define RTS_CONTROL_ENABLE      1
    352 #define RTS_CONTROL_HANDSHAKE   2
    353 #define RTS_CONTROL_TOGGLE      3
    354 
    355 #define DTR_CONTROL_DISABLE     0
    356 #define DTR_CONTROL_ENABLE      1
    357 #define DTR_CONTROL_HANDSHAKE   2
    358 
    359 #define CSTF_CTSHOLD    0x01
    360 #define CSTF_DSRHOLD    0x02
    361 #define CSTF_RLSDHOLD   0x04
    362 #define CSTF_XOFFHOLD   0x08
    363 #define CSTF_XOFFSENT   0x10
    364 #define CSTF_EOF        0x20
    365 #define CSTF_TXIM       0x40
     350#define RTS_CONTROL_DISABLE     0
     351#define RTS_CONTROL_ENABLE      1
     352#define RTS_CONTROL_HANDSHAKE   2
     353#define RTS_CONTROL_TOGGLE      3
     354
     355#define DTR_CONTROL_DISABLE     0
     356#define DTR_CONTROL_ENABLE      1
     357#define DTR_CONTROL_HANDSHAKE   2
     358
     359#define CSTF_CTSHOLD    0x01
     360#define CSTF_DSRHOLD    0x02
     361#define CSTF_RLSDHOLD   0x04
     362#define CSTF_XOFFHOLD   0x08
     363#define CSTF_XOFFSENT   0x10
     364#define CSTF_EOF        0x20
     365#define CSTF_TXIM       0x40
    366366
    367367#define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
     
    418418#define LMEM_MODIFY         0x0080
    419419#define LMEM_DISCARDABLE    0x0F00
    420 #define LMEM_DISCARDED      0x4000
    421 #define LMEM_LOCKCOUNT      0x00FF
     420#define LMEM_DISCARDED      0x4000
     421#define LMEM_LOCKCOUNT      0x00FF
    422422
    423423#define LHND                (LMEM_MOVEABLE | LMEM_ZEROINIT)
     
    640640
    641641/* STARTUPINFO.dwFlags */
    642 #define STARTF_USESHOWWINDOW    0x00000001
    643 #define STARTF_USESIZE          0x00000002
    644 #define STARTF_USEPOSITION      0x00000004
    645 #define STARTF_USECOUNTCHARS    0x00000008
    646 #define STARTF_USEFILLATTRIBUTE 0x00000010
    647 #define STARTF_RUNFULLSCREEN    0x00000020
    648 #define STARTF_FORCEONFEEDBACK  0x00000040
    649 #define STARTF_FORCEOFFFEEDBACK 0x00000080
    650 #define STARTF_USESTDHANDLES    0x00000100
    651 #define STARTF_USEHOTKEY        0x00000200
     642#define STARTF_USESHOWWINDOW    0x00000001
     643#define STARTF_USESIZE          0x00000002
     644#define STARTF_USEPOSITION      0x00000004
     645#define STARTF_USECOUNTCHARS    0x00000008
     646#define STARTF_USEFILLATTRIBUTE 0x00000010
     647#define STARTF_RUNFULLSCREEN    0x00000020
     648#define STARTF_FORCEONFEEDBACK  0x00000040
     649#define STARTF_FORCEOFFFEEDBACK 0x00000080
     650#define STARTF_USESTDHANDLES    0x00000100
     651#define STARTF_USEHOTKEY        0x00000200
    652652
    653653typedef struct {
    654         DWORD cb;               /* 00: size of struct */
    655         LPSTR lpReserved;       /* 04: */
    656         LPSTR lpDesktop;        /* 08: */
    657         LPSTR lpTitle;          /* 0c: */
    658         DWORD dwX;              /* 10: */
    659         DWORD dwY;              /* 14: */
    660         DWORD dwXSize;          /* 18: */
    661         DWORD dwYSize;          /* 1c: */
    662         DWORD dwXCountChars;    /* 20: */
    663         DWORD dwYCountChars;    /* 24: */
    664         DWORD dwFillAttribute;  /* 28: */
    665         DWORD dwFlags;          /* 2c: */
    666         WORD wShowWindow;       /* 30: */
    667         WORD cbReserved2;       /* 32: */
    668         BYTE *lpReserved2;      /* 34: */
    669         HANDLE hStdInput;       /* 38: */
    670         HANDLE hStdOutput;      /* 3c: */
    671         HANDLE hStdError;       /* 40: */
     654        DWORD cb;               /* 00: size of struct */
     655        LPSTR lpReserved;       /* 04: */
     656        LPSTR lpDesktop;        /* 08: */
     657        LPSTR lpTitle;          /* 0c: */
     658        DWORD dwX;              /* 10: */
     659        DWORD dwY;              /* 14: */
     660        DWORD dwXSize;          /* 18: */
     661        DWORD dwYSize;          /* 1c: */
     662        DWORD dwXCountChars;    /* 20: */
     663        DWORD dwYCountChars;    /* 24: */
     664        DWORD dwFillAttribute;  /* 28: */
     665        DWORD dwFlags;          /* 2c: */
     666        WORD wShowWindow;       /* 30: */
     667        WORD cbReserved2;       /* 32: */
     668        BYTE *lpReserved2;      /* 34: */
     669        HANDLE hStdInput;       /* 38: */
     670        HANDLE hStdOutput;      /* 3c: */
     671        HANDLE hStdError;       /* 40: */
    672672} STARTUPINFOA, *LPSTARTUPINFOA;
    673673
     
    697697
    698698typedef struct {
    699         HANDLE  hProcess;
    700         HANDLE  hThread;
    701         DWORD           dwProcessId;
    702         DWORD           dwThreadId;
     699        HANDLE  hProcess;
     700        HANDLE  hThread;
     701        DWORD           dwProcessId;
     702        DWORD           dwThreadId;
    703703} PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
    704704
     
    750750 */
    751751#define FILE_FLAG_WRITE_THROUGH    0x80000000UL
    752 #define FILE_FLAG_OVERLAPPED       0x40000000L
     752#define FILE_FLAG_OVERLAPPED       0x40000000L
    753753#define FILE_FLAG_NO_BUFFERING     0x20000000L
    754754#define FILE_FLAG_RANDOM_ACCESS    0x10000000L
     
    816816{
    817817    union {
    818         DWORD   dwOemId;
    819         struct {
    820                 WORD wProcessorArchitecture;
    821                 WORD wReserved;
    822         } x;
     818        DWORD   dwOemId;
     819        struct {
     820                WORD wProcessorArchitecture;
     821                WORD wReserved;
     822        } x;
    823823    } u;
    824     DWORD       dwPageSize;
    825     LPVOID      lpMinimumApplicationAddress;
    826     LPVOID      lpMaximumApplicationAddress;
    827     DWORD       dwActiveProcessorMask;
    828     DWORD       dwNumberOfProcessors;
    829     DWORD       dwProcessorType;
    830     DWORD       dwAllocationGranularity;
    831     WORD        wProcessorLevel;
    832     WORD        wProcessorRevision;
     824    DWORD       dwPageSize;
     825    LPVOID      lpMinimumApplicationAddress;
     826    LPVOID      lpMaximumApplicationAddress;
     827    DWORD       dwActiveProcessorMask;
     828    DWORD       dwNumberOfProcessors;
     829    DWORD       dwProcessorType;
     830    DWORD       dwAllocationGranularity;
     831    WORD        wProcessorLevel;
     832    WORD        wProcessorRevision;
    833833} SYSTEM_INFO, *LPSYSTEM_INFO;
    834834
    835835/* {G,S}etPriorityClass */
    836 #define NORMAL_PRIORITY_CLASS   0x00000020
    837 #define IDLE_PRIORITY_CLASS     0x00000040
    838 #define HIGH_PRIORITY_CLASS     0x00000080
    839 #define REALTIME_PRIORITY_CLASS 0x00000100
     836#define NORMAL_PRIORITY_CLASS   0x00000020
     837#define IDLE_PRIORITY_CLASS     0x00000040
     838#define HIGH_PRIORITY_CLASS     0x00000080
     839#define REALTIME_PRIORITY_CLASS 0x00000100
    840840
    841841typedef BOOL (* CALLBACK ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
     
    851851
    852852/* flags that can be passed to LoadLibraryEx */
    853 #define DONT_RESOLVE_DLL_REFERENCES     0x00000001
    854 #define LOAD_LIBRARY_AS_DATAFILE        0x00000002
    855 #define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008
     853#define DONT_RESOLVE_DLL_REFERENCES     0x00000001
     854#define LOAD_LIBRARY_AS_DATAFILE        0x00000002
     855#define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008
    856856
    857857/* ifdef _x86_ ... */
    858858typedef struct _LDT_ENTRY {
    859     WORD        LimitLow;
    860     WORD        BaseLow;
     859    WORD        LimitLow;
     860    WORD        BaseLow;
    861861    union {
    862         struct {
    863             BYTE        BaseMid;
    864             BYTE        Flags1;/*Declare as bytes to avoid alignment problems */
    865             BYTE        Flags2;
    866             BYTE        BaseHi;
    867         } Bytes;
    868         struct {       
    869             unsigned    BaseMid         : 8;
    870             unsigned    Type            : 5;
    871             unsigned    Dpl             : 2;
    872             unsigned    Pres            : 1;
    873             unsigned    LimitHi         : 4;
    874             unsigned    Sys             : 1;
    875             unsigned    Reserved_0      : 1;
    876             unsigned    Default_Big     : 1;
    877             unsigned    Granularity     : 1;
    878             unsigned    BaseHi          : 8;
    879         } Bits;
     862        struct {
     863            BYTE        BaseMid;
     864            BYTE        Flags1;/*Declare as bytes to avoid alignment problems */
     865            BYTE        Flags2;
     866            BYTE        BaseHi;
     867        } Bytes;
     868        struct {
     869            unsigned    BaseMid         : 8;
     870            unsigned    Type            : 5;
     871            unsigned    Dpl             : 2;
     872            unsigned    Pres            : 1;
     873            unsigned    LimitHi         : 4;
     874            unsigned    Sys             : 1;
     875            unsigned    Reserved_0      : 1;
     876            unsigned    Default_Big     : 1;
     877            unsigned    Granularity     : 1;
     878            unsigned    BaseHi          : 8;
     879        } Bits;
    880880    } HighWord;
    881881} LDT_ENTRY, *LPLDT_ENTRY;
     
    901901
    902902/* WOWCallback16Ex defines */
    903 #define WCB16_MAX_CBARGS        16
     903#define WCB16_MAX_CBARGS        16
    904904/* ... dwFlags */
    905 #define WCB16_PASCAL            0x0
    906 #define WCB16_CDECL             0x1
     905#define WCB16_PASCAL            0x0
     906#define WCB16_CDECL             0x1
    907907
    908908typedef enum _GET_FILEEX_INFO_LEVELS {
     
    936936
    937937
    938 #define WAIT_FAILED             0xffffffff
    939 #define WAIT_OBJECT_0           0
    940 #define WAIT_ABANDONED          STATUS_ABANDONED_WAIT_0
    941 #define WAIT_ABANDONED_0        STATUS_ABANDONED_WAIT_0
    942 #define WAIT_IO_COMPLETION      STATUS_USER_APC
    943 #define WAIT_TIMEOUT            STATUS_TIMEOUT
    944 
    945 #define PAGE_NOACCESS           0x01
    946 #define PAGE_READONLY           0x02
    947 #define PAGE_READWRITE          0x04
    948 #define PAGE_WRITECOPY          0x08
    949 #define PAGE_EXECUTE            0x10
    950 #define PAGE_EXECUTE_READ       0x20
    951 #define PAGE_EXECUTE_READWRITE  0x40
    952 #define PAGE_EXECUTE_WRITECOPY  0x80
    953 #define PAGE_GUARD              0x100
    954 #define PAGE_NOCACHE            0x200
     938#define WAIT_FAILED             0xffffffff
     939#define WAIT_OBJECT_0           0
     940#define WAIT_ABANDONED          STATUS_ABANDONED_WAIT_0
     941#define WAIT_ABANDONED_0        STATUS_ABANDONED_WAIT_0
     942#define WAIT_IO_COMPLETION      STATUS_USER_APC
     943#define WAIT_TIMEOUT            STATUS_TIMEOUT
     944
     945#define PAGE_NOACCESS           0x01
     946#define PAGE_READONLY           0x02
     947#define PAGE_READWRITE          0x04
     948#define PAGE_WRITECOPY          0x08
     949#define PAGE_EXECUTE            0x10
     950#define PAGE_EXECUTE_READ       0x20
     951#define PAGE_EXECUTE_READWRITE  0x40
     952#define PAGE_EXECUTE_WRITECOPY  0x80
     953#define PAGE_GUARD              0x100
     954#define PAGE_NOCACHE            0x200
    955955
    956956#define MEM_COMMIT              0x00001000
     
    10021002#define STATUS_BREAKPOINT                0x80000003
    10031003#define STATUS_SINGLE_STEP               0x80000004
    1004 #define STATUS_BUFFER_OVERFLOW           0x80000005
     1004#define STATUS_BUFFER_OVERFLOW           0x80000005
    10051005#define STATUS_ACCESS_VIOLATION          0xC0000005
    10061006#define STATUS_IN_PAGE_ERROR             0xC0000006
     
    10081008#define STATUS_NO_MEMORY                 0xC0000017
    10091009#define STATUS_ILLEGAL_INSTRUCTION       0xC000001D
    1010 #define STATUS_BUFFER_TOO_SMALL          0xC0000023
     1010#define STATUS_BUFFER_TOO_SMALL          0xC0000023
    10111011#define STATUS_NONCONTINUABLE_EXCEPTION  0xC0000025
    10121012#define STATUS_INVALID_DISPOSITION       0xC0000026
    1013 #define STATUS_UNKNOWN_REVISION          0xC0000058
    1014 #define STATUS_INVALID_SECURITY_DESCR    0xC0000079
     1013#define STATUS_UNKNOWN_REVISION          0xC0000058
     1014#define STATUS_INVALID_SECURITY_DESCR    0xC0000079
    10151015#define STATUS_ARRAY_BOUNDS_EXCEEDED     0xC000008C
    10161016#define STATUS_FLOAT_DENORMAL_OPERAND    0xC000008D
     
    10241024#define STATUS_INTEGER_OVERFLOW          0xC0000095
    10251025#define STATUS_PRIVILEGED_INSTRUCTION    0xC0000096
    1026 #define STATUS_INVALID_PARAMETER_2       0xC00000F0
     1026#define STATUS_INVALID_PARAMETER_2       0xC00000F0
    10271027#define STATUS_STACK_OVERFLOW            0xC00000FD
    10281028#define STATUS_CONTROL_C_EXIT            0xC000013A
    10291029
    1030 #define DUPLICATE_CLOSE_SOURCE          0x00000001
    1031 #define DUPLICATE_SAME_ACCESS           0x00000002
     1030#define DUPLICATE_CLOSE_SOURCE          0x00000001
     1031#define DUPLICATE_SAME_ACCESS           0x00000002
    10321032
    10331033#define HANDLE_FLAG_INHERIT             0x00000001
     
    10701070/* Could this type be considered opaque? */
    10711071typedef struct {
    1072         LPVOID  DebugInfo;
    1073         LONG LockCount;
    1074         LONG RecursionCount;
    1075         HANDLE OwningThread;
    1076         HANDLE LockSemaphore;
    1077         DWORD Reserved;
     1072        LPVOID  DebugInfo;
     1073        LONG LockCount;
     1074        LONG RecursionCount;
     1075        HANDLE OwningThread;
     1076        HANDLE LockSemaphore;
     1077        DWORD Reserved;
    10781078}CRITICAL_SECTION;
    10791079
    10801080typedef struct {
    1081         DWORD dwOSVersionInfoSize;
    1082         DWORD dwMajorVersion;
    1083         DWORD dwMinorVersion;
    1084         DWORD dwBuildNumber;
    1085         DWORD dwPlatformId;
    1086         CHAR szCSDVersion[128];
     1081        DWORD dwOSVersionInfoSize;
     1082        DWORD dwMajorVersion;
     1083        DWORD dwMinorVersion;
     1084        DWORD dwBuildNumber;
     1085        DWORD dwPlatformId;
     1086        CHAR szCSDVersion[128];
    10871087} OSVERSIONINFOA;
    10881088
    10891089typedef struct {
    1090         DWORD dwOSVersionInfoSize;
    1091         DWORD dwMajorVersion;
    1092         DWORD dwMinorVersion;
    1093         DWORD dwBuildNumber;
    1094         DWORD dwPlatformId;
    1095         WCHAR szCSDVersion[128];
     1090        DWORD dwOSVersionInfoSize;
     1091        DWORD dwMajorVersion;
     1092        DWORD dwMinorVersion;
     1093        DWORD dwBuildNumber;
     1094        DWORD dwPlatformId;
     1095        WCHAR szCSDVersion[128];
    10961096} OSVERSIONINFOW;
    10971097
     
    11641164
    11651165typedef struct tagCOMMTIMEOUTS {
    1166         DWORD   ReadIntervalTimeout;
    1167         DWORD   ReadTotalTimeoutMultiplier;
    1168         DWORD   ReadTotalTimeoutConstant;
    1169         DWORD   WriteTotalTimeoutMultiplier;
    1170         DWORD   WriteTotalTimeoutConstant;
     1166        DWORD   ReadIntervalTimeout;
     1167        DWORD   ReadTotalTimeoutMultiplier;
     1168        DWORD   ReadTotalTimeoutConstant;
     1169        DWORD   WriteTotalTimeoutMultiplier;
     1170        DWORD   WriteTotalTimeoutConstant;
    11711171} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
    11721172
     
    13461346BOOL      WINAPI FlushViewOfFile(LPCVOID, DWORD);
    13471347DWORD       WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
    1348                                     DWORD,LPDWORD);
     1348                                    DWORD,LPDWORD);
    13491349DWORD       WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
    1350                                     DWORD,LPDWORD);
     1350                                    DWORD,LPDWORD);
    13511351#define     FormatMessage WINELIB_NAME_AW(FormatMessage)
    13521352BOOL      WINAPI FreeConsole(void);
     
    15191519#define     ReadConsole WINELIB_NAME_AW(ReadConsole)
    15201520BOOL      WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
    1521                                                 COORD,LPDWORD);
     1521                                                COORD,LPDWORD);
    15221522#define     ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
    15231523BOOL        WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
     
    16461646#define     FindAtom WINELIB_NAME_AW(FindAtom)
    16471647BOOL      WINAPI FindClose(HANDLE);
    1648 HANDLE16    WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
    16491648HANDLE    WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
    16501649HANDLE    WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
    16511650#define     FindFirstFile WINELIB_NAME_AW(FindFirstFile)
    1652 BOOL16      WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
     1651HANDLE    WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
    16531652BOOL      WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
    16541653BOOL      WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
    16551654#define     FindNextFile WINELIB_NAME_AW(FindNextFile)
     1655BOOL      WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
    16561656HRSRC     WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
    16571657HRSRC     WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
     
    18291829BOOL      WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
    18301830#define     WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
    1831 BOOL         WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
    1832 BOOL         WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
     1831BOOL         WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
     1832BOOL         WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
    18331833#define     WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
    18341834BOOL      WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
  • trunk/include/win32api.h

    r3196 r3268  
    1 /* $Id: win32api.h,v 1.6 2000-03-22 18:47:01 sandervl Exp $ */
     1/* $Id: win32api.h,v 1.7 2000-03-29 15:16:09 cbratschi Exp $ */
    22
    33/*
     
    7979BOOL   WIN32API HeapValidate(HANDLE,DWORD,LPCVOID);
    8080
     81BOOL   WIN32API DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
     82
    8183#endif
  • trunk/include/win32type.h

    r3124 r3268  
    1 /* $Id: win32type.h,v 1.36 2000-03-16 19:16:35 sandervl Exp $ */
     1/* $Id: win32type.h,v 1.37 2000-03-29 15:16:09 cbratschi Exp $ */
    22
    33/*
     
    421421typedef struct
    422422{
     423    DWORD     dwFileAttributes;
     424    FILETIME  ftCreationTime;
     425    FILETIME  ftLastAccessTime;
     426    FILETIME  ftLastWriteTime;
     427    DWORD     nFileSizeHigh;
     428    DWORD     nFileSizeLow;
     429    DWORD     dwReserved0;
     430    DWORD     dwReserved1;
     431    CHAR      cFileName[260];
     432    CHAR      cAlternateFileName[14];
     433} WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
     434
     435typedef struct
     436{
     437    DWORD     dwFileAttributes;
     438    FILETIME  ftCreationTime;
     439    FILETIME  ftLastAccessTime;
     440    FILETIME  ftLastWriteTime;
     441    DWORD     nFileSizeHigh;
     442    DWORD     nFileSizeLow;
     443    DWORD     dwReserved0;
     444    DWORD     dwReserved1;
     445    WCHAR     cFileName[260];
     446    WCHAR     cAlternateFileName[14];
     447} WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
     448
     449typedef struct
     450{
    423451  int dwFileAttributes;
    424452  FILETIME ftCreationTime;
     
    623651
    624652typedef struct {
    625         LPVOID  DebugInfo;
    626         LONG LockCount;
    627         LONG RecursionCount;
    628         HANDLE OwningThread;
    629         HANDLE LockSemaphore;
    630         DWORD Reserved;
     653        LPVOID  DebugInfo;
     654        LONG LockCount;
     655        LONG RecursionCount;
     656        HANDLE OwningThread;
     657        HANDLE LockSemaphore;
     658        DWORD Reserved;
    631659}CRITICAL_SECTION;
    632660
     
    791819#endif /* !defined(SID_DEFINED) */
    792820
    793 /* 
    794  * ACL 
     821/*
     822 * ACL
    795823 */
    796824
     
    803831} ACL, *PACL;
    804832
    805 /* 
     833/*
    806834 * SID_AND_ATTRIBUTES
    807835 */
    808836
    809837typedef struct _SID_AND_ATTRIBUTES {
    810   PSID  Sid; 
    811   DWORD Attributes; 
    812 } SID_AND_ATTRIBUTES ; 
    813  
     838  PSID  Sid;
     839  DWORD Attributes;
     840} SID_AND_ATTRIBUTES ;
     841
    814842/*
    815843 * TOKEN_USER
     
    817845
    818846typedef struct _TOKEN_USER {
    819   SID_AND_ATTRIBUTES User; 
    820 } TOKEN_USER; 
     847  SID_AND_ATTRIBUTES User;
     848} TOKEN_USER;
    821849
    822850/*
     
    825853
    826854typedef struct _TOKEN_GROUPS  {
    827   DWORD GroupCount; 
    828   SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY]; 
    829 } TOKEN_GROUPS; 
     855  DWORD GroupCount;
     856  SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY];
     857} TOKEN_GROUPS;
    830858
    831859typedef LARGE_INTEGER LUID,*PLUID;
    832860
    833861typedef struct _LUID_AND_ATTRIBUTES {
    834   LUID   Luid; 
    835   DWORD  Attributes; 
    836 } LUID_AND_ATTRIBUTES; 
     862  LUID   Luid;
     863  DWORD  Attributes;
     864} LUID_AND_ATTRIBUTES;
    837865
    838866/*
     
    851879
    852880typedef struct _TOKEN_PRIVILEGES {
    853   DWORD PrivilegeCount; 
    854   LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY]; 
    855 } TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; 
     881  DWORD PrivilegeCount;
     882  LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
     883} TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES;
    856884
    857885/*
     
    860888
    861889typedef struct _TOKEN_OWNER {
    862   PSID Owner; 
    863 } TOKEN_OWNER; 
     890  PSID Owner;
     891} TOKEN_OWNER;
    864892
    865893/*
     
    868896
    869897typedef struct _TOKEN_PRIMARY_GROUP {
    870   PSID PrimaryGroup; 
    871 } TOKEN_PRIMARY_GROUP; 
     898  PSID PrimaryGroup;
     899} TOKEN_PRIMARY_GROUP;
    872900
    873901
     
    876904 */
    877905
    878 typedef struct _TOKEN_DEFAULT_DACL { 
    879   PACL DefaultDacl; 
    880 } TOKEN_DEFAULT_DACL; 
     906typedef struct _TOKEN_DEFAULT_DACL {
     907  PACL DefaultDacl;
     908} TOKEN_DEFAULT_DACL;
    881909
    882910/*
     
    885913
    886914typedef struct _TOKEN_SOURCE {
    887   char Sourcename[8]; 
    888   LUID SourceIdentifier; 
    889 } TOKEN_SOURCE; 
     915  char Sourcename[8];
     916  LUID SourceIdentifier;
     917} TOKEN_SOURCE;
    890918
    891919/*
     
    894922
    895923typedef enum tagTOKEN_TYPE {
    896   TokenPrimary = 1, 
    897   TokenImpersonation 
    898 } TOKEN_TYPE; 
     924  TokenPrimary = 1,
     925  TokenImpersonation
     926} TOKEN_TYPE;
    899927
    900928/*
     
    903931
    904932typedef enum _SECURITY_IMPERSONATION_LEVEL {
    905   SecurityAnonymous, 
    906   SecurityIdentification, 
    907   SecurityImpersonation, 
    908   SecurityDelegation 
    909 } SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL; 
     933  SecurityAnonymous,
     934  SecurityIdentification,
     935  SecurityImpersonation,
     936  SecurityDelegation
     937} SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL;
    910938
    911939#define SIZE_OF_80387_REGISTERS      80
     
    915943    DWORD   ControlWord;
    916944    DWORD   StatusWord;
    917     DWORD   TagWord;   
     945    DWORD   TagWord;
    918946    DWORD   ErrorOffset;
    919947    DWORD   ErrorSelector;
    920948    DWORD   DataOffset;
    921     DWORD   DataSelector;   
     949    DWORD   DataSelector;
    922950    BYTE    RegisterArea[SIZE_OF_80387_REGISTERS];
    923951    DWORD   Cr0NpxState;
     
    943971    DWORD   SegFs;
    944972    DWORD   SegEs;
    945     DWORD   SegDs;   
     973    DWORD   SegDs;
    946974
    947975    /* These are selected by CONTEXT_INTEGER */
     
    949977    DWORD   Esi;
    950978    DWORD   Ebx;
    951     DWORD   Edx;   
     979    DWORD   Edx;
    952980    DWORD   Ecx;
    953981    DWORD   Eax;
    954982
    955983    /* These are selected by CONTEXT_CONTROL */
    956     DWORD   Ebp;   
     984    DWORD   Ebp;
    957985    DWORD   Eip;
    958986    DWORD   SegCs;
  • trunk/include/winconst.h

    r3196 r3268  
    1 /* $Id: winconst.h,v 1.30 2000-03-22 18:47:01 sandervl Exp $ */
     1/* $Id: winconst.h,v 1.31 2000-03-29 15:16:09 cbratschi Exp $ */
    22
    33/*
     
    762762#define ERROR_ALREADY_REGISTERED_W              1242L
    763763#define ERROR_SERVICE_NOT_FOUND_W               1243L
    764 #define ERROR_NOT_AUTHENTICATED_W             1244L
     764#define ERROR_NOT_AUTHENTICATED_W             1244L
    765765#define ERROR_NOT_LOGGED_ON_W                   1245L
    766766#define ERROR_CONTINUE_W                        1246L
     
    10371037
    10381038
    1039 #define PAGE_NOACCESS_W                 0x01
    1040 #define PAGE_READONLY_W                 0x02
    1041 #define PAGE_READWRITE_W                0x04
    1042 #define PAGE_WRITECOPY_W                0x08
    1043 #define PAGE_EXECUTE_W                  0x10
    1044 #define PAGE_EXECUTE_READ_W             0x20
    1045 #define PAGE_EXECUTE_READWRITE_W        0x40
    1046 #define PAGE_EXECUTE_WRITECOPY_W        0x80
    1047 #define PAGE_GUARD_W                    0x100
    1048 #define PAGE_NOCACHE_W                  0x200
    1049 
    1050 #define MEM_COMMIT_W                    0x00001000
    1051 #define MEM_RESERVE_W                   0x00002000
    1052 #define MEM_DECOMMIT_W                  0x00004000
    1053 #define MEM_RELEASE_W                   0x00008000
    1054 #define MEM_FREE_W                      0x00010000
    1055 #define MEM_PRIVATE_W                   0x00020000
    1056 #define MEM_MAPPED_W                    0x00040000
    1057 #define MEM_TOP_DOWN_W                  0x00100000
    1058 
    1059 #define SEC_FILE_W                      0x00800000
    1060 #define SEC_IMAGE_W                     0x01000000
    1061 #define SEC_RESERVE_W                   0x04000000
    1062 #define SEC_COMMIT_W                    0x08000000
    1063 #define SEC_NOCACHE_W                   0x10000000
     1039#define PAGE_NOACCESS_W                 0x01
     1040#define PAGE_READONLY_W                 0x02
     1041#define PAGE_READWRITE_W                0x04
     1042#define PAGE_WRITECOPY_W                0x08
     1043#define PAGE_EXECUTE_W                  0x10
     1044#define PAGE_EXECUTE_READ_W             0x20
     1045#define PAGE_EXECUTE_READWRITE_W        0x40
     1046#define PAGE_EXECUTE_WRITECOPY_W        0x80
     1047#define PAGE_GUARD_W                    0x100
     1048#define PAGE_NOCACHE_W                  0x200
     1049
     1050#define MEM_COMMIT_W                    0x00001000
     1051#define MEM_RESERVE_W                   0x00002000
     1052#define MEM_DECOMMIT_W                  0x00004000
     1053#define MEM_RELEASE_W                   0x00008000
     1054#define MEM_FREE_W                      0x00010000
     1055#define MEM_PRIVATE_W                   0x00020000
     1056#define MEM_MAPPED_W                    0x00040000
     1057#define MEM_TOP_DOWN_W                  0x00100000
     1058
     1059#define SEC_FILE_W                      0x00800000
     1060#define SEC_IMAGE_W                     0x01000000
     1061#define SEC_RESERVE_W                   0x04000000
     1062#define SEC_COMMIT_W                    0x08000000
     1063#define SEC_NOCACHE_W                   0x10000000
    10641064
    10651065#define FILE_MAP_COPY_W                 0x00000001
     
    10681068#define FILE_MAP_ALL_ACCESS_W           0x000f001f
    10691069
    1070 #define SND_SYNC_W              0x0000  /* play synchronously (default) */
    1071 #define SND_ASYNC_W             0x0001  /* play asynchronously */
    1072 #define SND_NODEFAULT_W         0x0002  /* don't use default sound */
    1073 #define SND_MEMORY_W            0x0004  /* lpszSoundName points to a memory file */
    1074 #define SND_LOOP_W              0x0008  /* loop the sound until next sndPlaySound */
    1075 #define SND_NOSTOP_W            0x0010  /* don't stop any currently playing sound */
    1076 
    1077 #define SND_NOWAIT_W            0x00002000L /* don't wait if the driver is busy */
    1078 #define SND_ALIAS_W             0x00010000L /* name is a registry alias */
    1079 #define SND_ALIAS_ID_W          0x00110000L /* alias is a predefined ID */
    1080 #define SND_FILENAME_W          0x00020000L /* name is file name */
    1081 #define SND_RESOURCE_W          0x00040004L /* name is resource name or atom */
    1082 #define SND_PURGE_W             0x00000040L /* purge all sounds */
    1083 #define SND_APPLICATION_W       0x00000080L /* look for application specific association */
     1070#define SND_SYNC_W              0x0000  /* play synchronously (default) */
     1071#define SND_ASYNC_W             0x0001  /* play asynchronously */
     1072#define SND_NODEFAULT_W         0x0002  /* don't use default sound */
     1073#define SND_MEMORY_W            0x0004  /* lpszSoundName points to a memory file */
     1074#define SND_LOOP_W              0x0008  /* loop the sound until next sndPlaySound */
     1075#define SND_NOSTOP_W            0x0010  /* don't stop any currently playing sound */
     1076
     1077#define SND_NOWAIT_W            0x00002000L /* don't wait if the driver is busy */
     1078#define SND_ALIAS_W             0x00010000L /* name is a registry alias */
     1079#define SND_ALIAS_ID_W          0x00110000L /* alias is a predefined ID */
     1080#define SND_FILENAME_W          0x00020000L /* name is file name */
     1081#define SND_RESOURCE_W          0x00040004L /* name is resource name or atom */
     1082#define SND_PURGE_W             0x00000040L /* purge all sounds */
     1083#define SND_APPLICATION_W       0x00000080L /* look for application specific association */
    10841084
    10851085
     
    11041104#define KEY_CREATE_LINK         0x00000020
    11051105
    1106 #define KEY_READ                (STANDARD_RIGHTS_READ|  \
    1107                                  KEY_QUERY_VALUE|       \
    1108                                 KEY_ENUMERATE_SUB_KEYS|\
    1109                                  KEY_NOTIFY             \
    1110                                 )
    1111 #define KEY_WRITE               (STANDARD_RIGHTS_WRITE| \
    1112                                  KEY_SET_VALUE|         \
    1113                                  KEY_CREATE_SUB_KEY     \
    1114                                 )
     1106#define KEY_READ                (STANDARD_RIGHTS_READ|  \
     1107                                 KEY_QUERY_VALUE|       \
     1108                                KEY_ENUMERATE_SUB_KEYS|\
     1109                                 KEY_NOTIFY             \
     1110                                )
     1111#define KEY_WRITE               (STANDARD_RIGHTS_WRITE| \
     1112                                 KEY_SET_VALUE|         \
     1113                                 KEY_CREATE_SUB_KEY     \
     1114                                )
    11151115#define KEY_EXECUTE             KEY_READ
    1116 #define KEY_ALL_ACCESS          (STANDARD_RIGHTS_ALL|   \
    1117                                  KEY_READ|KEY_WRITE|    \
    1118                                  KEY_CREATE_LINK        \
    1119                                 )
     1116#define KEY_ALL_ACCESS          (STANDARD_RIGHTS_ALL|   \
     1117                                 KEY_READ|KEY_WRITE|    \
     1118                                 KEY_CREATE_LINK        \
     1119                                )
    11201120
    11211121#define HKEY_CLASSES_ROOT       ((HKEY) 0x80000000)
     
    13191319#define HEAP_CREATE_ALIGN_16            0x00010000
    13201320#define HEAP_CREATE_ENABLE_TRACING      0x00020000
     1321
     1322/* FindFirstFile */
     1323
     1324#define INVALID_HANDLE_VALUE_W  ((HANDLE) -1)
Note: See TracChangeset for help on using the changeset viewer.