Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

winbase.h

00001 #ifndef __WINE_WINBASE_H
00002 #define __WINE_WINBASE_H
00003 
00004 #include "basetsd.h"
00005 #include "winnt.h"
00006 #include "winestring.h"
00007 #include "pshpack1.h"
00008 
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014 typedef struct tagCOORD {
00015     INT16 x;
00016     INT16 y;
00017 } COORD, *LPCOORD;
00018 
00019 
00020   /* Windows Exit Procedure flag values */
00021 #define WEP_FREE_DLL        0
00022 #define WEP_SYSTEM_EXIT     1
00023 
00024 typedef DWORD CALLBACK (*LPTHREAD_START_ROUTINE)(LPVOID);
00025 
00026 #define EXCEPTION_DEBUG_EVENT       1
00027 #define CREATE_THREAD_DEBUG_EVENT   2
00028 #define CREATE_PROCESS_DEBUG_EVENT  3
00029 #define EXIT_THREAD_DEBUG_EVENT     4
00030 #define EXIT_PROCESS_DEBUG_EVENT    5
00031 #define LOAD_DLL_DEBUG_EVENT        6
00032 #define UNLOAD_DLL_DEBUG_EVENT      7
00033 #define OUTPUT_DEBUG_STRING_EVENT   8
00034 #define RIP_EVENT                   9
00035 
00036 typedef struct _EXCEPTION_DEBUG_INFO {
00037     EXCEPTION_RECORD ExceptionRecord;
00038     DWORD dwFirstChance;
00039 } EXCEPTION_DEBUG_INFO;
00040 
00041 typedef struct _CREATE_THREAD_DEBUG_INFO {
00042     HANDLE hThread;
00043     LPVOID lpThreadLocalBase;
00044     LPTHREAD_START_ROUTINE lpStartAddress;
00045 } CREATE_THREAD_DEBUG_INFO;
00046 
00047 typedef struct _CREATE_PROCESS_DEBUG_INFO {
00048     HANDLE hFile;
00049     HANDLE hProcess;
00050     HANDLE hThread;
00051     LPVOID lpBaseOfImage;
00052     DWORD dwDebugInfoFileOffset;
00053     DWORD nDebugInfoSize;
00054     LPVOID lpThreadLocalBase;
00055     LPTHREAD_START_ROUTINE lpStartAddress;
00056     LPVOID lpImageName;
00057     WORD fUnicode;
00058 } CREATE_PROCESS_DEBUG_INFO;
00059 
00060 typedef struct _EXIT_THREAD_DEBUG_INFO {
00061     DWORD dwExitCode;
00062 } EXIT_THREAD_DEBUG_INFO;
00063 
00064 typedef struct _EXIT_PROCESS_DEBUG_INFO {
00065     DWORD dwExitCode;
00066 } EXIT_PROCESS_DEBUG_INFO;
00067 
00068 typedef struct _LOAD_DLL_DEBUG_INFO {
00069     HANDLE hFile;
00070     LPVOID   lpBaseOfDll;
00071     DWORD    dwDebugInfoFileOffset;
00072     DWORD    nDebugInfoSize;
00073     LPVOID   lpImageName;
00074     WORD     fUnicode;
00075 } LOAD_DLL_DEBUG_INFO;
00076 
00077 typedef struct _UNLOAD_DLL_DEBUG_INFO {
00078     LPVOID lpBaseOfDll;
00079 } UNLOAD_DLL_DEBUG_INFO;
00080 
00081 typedef struct _OUTPUT_DEBUG_STRING_INFO {
00082     LPSTR lpDebugStringData;
00083     WORD  fUnicode;
00084     WORD  nDebugStringLength;
00085 } OUTPUT_DEBUG_STRING_INFO;
00086 
00087 typedef struct _RIP_INFO {
00088     DWORD dwError;
00089     DWORD dwType;
00090 } RIP_INFO;
00091 
00092 typedef struct _DEBUG_EVENT {
00093     DWORD dwDebugEventCode;
00094     DWORD dwProcessId;
00095     DWORD dwThreadId;
00096     union {
00097         EXCEPTION_DEBUG_INFO      Exception;
00098         CREATE_THREAD_DEBUG_INFO  CreateThread;
00099         CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
00100         EXIT_THREAD_DEBUG_INFO    ExitThread;
00101         EXIT_PROCESS_DEBUG_INFO   ExitProcess;
00102         LOAD_DLL_DEBUG_INFO       LoadDll;
00103         UNLOAD_DLL_DEBUG_INFO     UnloadDll;
00104         OUTPUT_DEBUG_STRING_INFO  DebugString;
00105         RIP_INFO                  RipInfo;
00106     } u;
00107 } DEBUG_EVENT, *LPDEBUG_EVENT;
00108 
00109 #define OFS_MAXPATHNAME 128
00110 typedef struct
00111 {
00112     BYTE cBytes;
00113     BYTE fFixedDisk;
00114     WORD nErrCode;
00115     BYTE reserved[4];
00116     BYTE szPathName[OFS_MAXPATHNAME];
00117 } OFSTRUCT, *LPOFSTRUCT;
00118 
00119 #define OF_READ               0x0000
00120 #define OF_WRITE              0x0001
00121 #define OF_READWRITE          0x0002
00122 #define OF_SHARE_COMPAT       0x0000
00123 #define OF_SHARE_EXCLUSIVE    0x0010
00124 #define OF_SHARE_DENY_WRITE   0x0020
00125 #define OF_SHARE_DENY_READ    0x0030
00126 #define OF_SHARE_DENY_NONE    0x0040
00127 #define OF_PARSE              0x0100
00128 #define OF_DELETE             0x0200
00129 #define OF_VERIFY             0x0400   /* Used with OF_REOPEN */
00130 #define OF_SEARCH             0x0400   /* Used without OF_REOPEN */
00131 #define OF_CANCEL             0x0800
00132 #define OF_CREATE             0x1000
00133 #define OF_PROMPT             0x2000
00134 #define OF_EXIST              0x4000
00135 #define OF_REOPEN             0x8000
00136 
00137 /* SetErrorMode values */
00138 #define SEM_FAILCRITICALERRORS      0x0001
00139 #define SEM_NOGPFAULTERRORBOX       0x0002
00140 #define SEM_NOALIGNMENTFAULTEXCEPT  0x0004
00141 #define SEM_NOOPENFILEERRORBOX      0x8000
00142 
00143 /* CopyFileEx flags */
00144 #define COPY_FILE_FAIL_IF_EXISTS        0x00000001
00145 #define COPY_FILE_RESTARTABLE           0x00000002
00146 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
00147 
00148 /* GetTempFileName() Flags */
00149 #define TF_FORCEDRIVE           0x80
00150 
00151 #define DRIVE_CANNOTDETERMINE      0
00152 #define DRIVE_DOESNOTEXIST         1
00153 #define DRIVE_REMOVABLE            2
00154 #define DRIVE_FIXED                3
00155 #define DRIVE_REMOTE               4
00156 /* Win32 additions */
00157 #define DRIVE_CDROM                5
00158 #define DRIVE_RAMDISK              6
00159 
00160 /* The security attributes structure */
00161 typedef struct _SECURITY_ATTRIBUTES
00162 {
00163     DWORD   nLength;
00164     LPVOID  lpSecurityDescriptor;
00165     WIN_BOOL  bInheritHandle;
00166 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
00167 
00168 #ifndef _FILETIME_
00169 #define _FILETIME_
00170 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
00171 typedef struct
00172 {
00173   DWORD  dwLowDateTime;
00174   DWORD  dwHighDateTime;
00175 } FILETIME, *LPFILETIME;
00176 #endif /* _FILETIME_ */
00177 
00178 /* Find* structures */
00179 typedef struct
00180 {
00181     DWORD     dwFileAttributes;
00182     FILETIME  ftCreationTime;
00183     FILETIME  ftLastAccessTime;
00184     FILETIME  ftLastWriteTime;
00185     DWORD     nFileSizeHigh;
00186     DWORD     nFileSizeLow;
00187     DWORD     dwReserved0;
00188     DWORD     dwReserved1;
00189     CHAR      cFileName[260];
00190     CHAR      cAlternateFileName[14];
00191 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
00192 
00193 typedef struct
00194 {
00195     DWORD     dwFileAttributes;
00196     FILETIME  ftCreationTime;
00197     FILETIME  ftLastAccessTime;
00198     FILETIME  ftLastWriteTime;
00199     DWORD     nFileSizeHigh;
00200     DWORD     nFileSizeLow;
00201     DWORD     dwReserved0;
00202     DWORD     dwReserved1;
00203     WCHAR     cFileName[260];
00204     WCHAR     cAlternateFileName[14];
00205 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
00206 
00207 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
00208 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
00209 
00210 typedef struct
00211 {
00212     LPVOID lpData;
00213     DWORD cbData;
00214     BYTE cbOverhead;
00215     BYTE iRegionIndex;
00216     WORD wFlags;
00217     union {
00218         struct {
00219             HANDLE hMem;
00220             DWORD dwReserved[3];
00221         } Block;
00222         struct {
00223             DWORD dwCommittedSize;
00224             DWORD dwUnCommittedSize;
00225             LPVOID lpFirstBlock;
00226             LPVOID lpLastBlock;
00227         } Region;
00228     } Foo;
00229 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
00230 
00231 #define PROCESS_HEAP_REGION                   0x0001
00232 #define PROCESS_HEAP_UNCOMMITTED_RANGE        0x0002
00233 #define PROCESS_HEAP_ENTRY_BUSY               0x0004
00234 #define PROCESS_HEAP_ENTRY_MOVEABLE           0x0010
00235 #define PROCESS_HEAP_ENTRY_DDESHARE           0x0020
00236 
00237 #define INVALID_HANDLE_VALUE16  ((HANDLE16) -1)
00238 #define INVALID_HANDLE_VALUE  ((HANDLE) -1)
00239 
00240 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
00241 
00242 /* comm */
00243 
00244 #define CBR_110 0xFF10
00245 #define CBR_300 0xFF11
00246 #define CBR_600 0xFF12
00247 #define CBR_1200        0xFF13
00248 #define CBR_2400        0xFF14
00249 #define CBR_4800        0xFF15
00250 #define CBR_9600        0xFF16
00251 #define CBR_14400       0xFF17
00252 #define CBR_19200       0xFF18
00253 #define CBR_38400       0xFF1B
00254 #define CBR_56000       0xFF1F
00255 #define CBR_128000      0xFF23
00256 #define CBR_256000      0xFF27
00257 
00258 #define NOPARITY        0
00259 #define ODDPARITY       1
00260 #define EVENPARITY      2
00261 #define MARKPARITY      3
00262 #define SPACEPARITY     4
00263 #define ONESTOPBIT      0
00264 #define ONE5STOPBITS    1
00265 #define TWOSTOPBITS     2
00266 
00267 #define IGNORE          0
00268 #define INFINITE16      0xFFFF
00269 #define INFINITE      0xFFFFFFFF
00270 
00271 #define CE_RXOVER       0x0001
00272 #define CE_OVERRUN      0x0002
00273 #define CE_RXPARITY     0x0004
00274 #define CE_FRAME        0x0008
00275 #define CE_BREAK        0x0010
00276 #define CE_CTSTO        0x0020
00277 #define CE_DSRTO        0x0040
00278 #define CE_RLSDTO       0x0080
00279 #define CE_TXFULL       0x0100
00280 #define CE_PTO          0x0200
00281 #define CE_IOE          0x0400
00282 #define CE_DNS          0x0800
00283 #define CE_OOP          0x1000
00284 #define CE_MODE 0x8000
00285 
00286 #define IE_BADID        -1
00287 #define IE_OPEN -2
00288 #define IE_NOPEN        -3
00289 #define IE_MEMORY       -4
00290 #define IE_DEFAULT      -5
00291 #define IE_HARDWARE     -10
00292 #define IE_BYTESIZE     -11
00293 #define IE_BAUDRATE     -12
00294 
00295 #define EV_RXCHAR       0x0001
00296 #define EV_RXFLAG       0x0002
00297 #define EV_TXEMPTY      0x0004
00298 #define EV_CTS          0x0008
00299 #define EV_DSR          0x0010
00300 #define EV_RLSD 0x0020
00301 #define EV_BREAK        0x0040
00302 #define EV_ERR          0x0080
00303 #define EV_RING 0x0100
00304 #define EV_PERR 0x0200
00305 #define EV_CTSS 0x0400
00306 #define EV_DSRS 0x0800
00307 #define EV_RLSDS        0x1000
00308 #define EV_RINGTE       0x2000
00309 #define EV_RingTe       EV_RINGTE
00310 
00311 #define SETXOFF 1
00312 #define SETXON          2
00313 #define SETRTS          3
00314 #define CLRRTS          4
00315 #define SETDTR          5
00316 #define CLRDTR          6
00317 #define RESETDEV        7
00318 #define SETBREAK        8
00319 #define CLRBREAK        9
00320 
00321 #define GETBASEIRQ      10
00322 
00323 /* Purge functions for Comm Port */
00324 #define PURGE_TXABORT       0x0001  /* Kill the pending/current writes to the 
00325                                        comm port */
00326 #define PURGE_RXABORT       0x0002  /*Kill the pending/current reads to 
00327                                      the comm port */
00328 #define PURGE_TXCLEAR       0x0004  /* Kill the transmit queue if there*/
00329 #define PURGE_RXCLEAR       0x0008  /* Kill the typeahead buffer if there*/
00330 
00331 
00332 /* Modem Status Flags */
00333 #define MS_CTS_ON           ((DWORD)0x0010)
00334 #define MS_DSR_ON           ((DWORD)0x0020)
00335 #define MS_RING_ON          ((DWORD)0x0040)
00336 #define MS_RLSD_ON          ((DWORD)0x0080)
00337 
00338 #define RTS_CONTROL_DISABLE     0
00339 #define RTS_CONTROL_ENABLE      1
00340 #define RTS_CONTROL_HANDSHAKE   2
00341 #define RTS_CONTROL_TOGGLE      3
00342 
00343 #define DTR_CONTROL_DISABLE     0
00344 #define DTR_CONTROL_ENABLE      1
00345 #define DTR_CONTROL_HANDSHAKE   2
00346 
00347 #define CSTF_CTSHOLD    0x01
00348 #define CSTF_DSRHOLD    0x02
00349 #define CSTF_RLSDHOLD   0x04
00350 #define CSTF_XOFFHOLD   0x08
00351 #define CSTF_XOFFSENT   0x10
00352 #define CSTF_EOF        0x20
00353 #define CSTF_TXIM       0x40
00354 
00355 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
00356 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
00357 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
00358 
00359 /* Predefined resource types */
00360 #define RT_CURSORA         MAKEINTRESOURCEA(1)
00361 #define RT_CURSORW         MAKEINTRESOURCEW(1)
00362 #define RT_CURSOR            WINELIB_NAME_AW(RT_CURSOR)
00363 #define RT_BITMAPA         MAKEINTRESOURCEA(2)
00364 #define RT_BITMAPW         MAKEINTRESOURCEW(2)
00365 #define RT_BITMAP            WINELIB_NAME_AW(RT_BITMAP)
00366 #define RT_ICONA           MAKEINTRESOURCEA(3)
00367 #define RT_ICONW           MAKEINTRESOURCEW(3)
00368 #define RT_ICON              WINELIB_NAME_AW(RT_ICON)
00369 #define RT_MENUA           MAKEINTRESOURCEA(4)
00370 #define RT_MENUW           MAKEINTRESOURCEW(4)
00371 #define RT_MENU              WINELIB_NAME_AW(RT_MENU)
00372 #define RT_DIALOGA         MAKEINTRESOURCEA(5)
00373 #define RT_DIALOGW         MAKEINTRESOURCEW(5)
00374 #define RT_DIALOG            WINELIB_NAME_AW(RT_DIALOG)
00375 #define RT_STRINGA         MAKEINTRESOURCEA(6)
00376 #define RT_STRINGW         MAKEINTRESOURCEW(6)
00377 #define RT_STRING            WINELIB_NAME_AW(RT_STRING)
00378 #define RT_FONTDIRA        MAKEINTRESOURCEA(7)
00379 #define RT_FONTDIRW        MAKEINTRESOURCEW(7)
00380 #define RT_FONTDIR           WINELIB_NAME_AW(RT_FONTDIR)
00381 #define RT_FONTA           MAKEINTRESOURCEA(8)
00382 #define RT_FONTW           MAKEINTRESOURCEW(8)
00383 #define RT_FONT              WINELIB_NAME_AW(RT_FONT)
00384 #define RT_ACCELERATORA    MAKEINTRESOURCEA(9)
00385 #define RT_ACCELERATORW    MAKEINTRESOURCEW(9)
00386 #define RT_ACCELERATOR       WINELIB_NAME_AW(RT_ACCELERATOR)
00387 #define RT_RCDATAA         MAKEINTRESOURCEA(10)
00388 #define RT_RCDATAW         MAKEINTRESOURCEW(10)
00389 #define RT_RCDATA            WINELIB_NAME_AW(RT_RCDATA)
00390 #define RT_MESSAGELISTA    MAKEINTRESOURCEA(11)
00391 #define RT_MESSAGELISTW    MAKEINTRESOURCEW(11)
00392 #define RT_MESSAGELIST       WINELIB_NAME_AW(RT_MESSAGELIST)
00393 #define RT_GROUP_CURSORA   MAKEINTRESOURCEA(12)
00394 #define RT_GROUP_CURSORW   MAKEINTRESOURCEW(12)
00395 #define RT_GROUP_CURSOR      WINELIB_NAME_AW(RT_GROUP_CURSOR)
00396 #define RT_GROUP_ICONA     MAKEINTRESOURCEA(14)
00397 #define RT_GROUP_ICONW     MAKEINTRESOURCEW(14)
00398 #define RT_GROUP_ICON        WINELIB_NAME_AW(RT_GROUP_ICON)
00399 
00400 
00401 #define LMEM_FIXED          0   
00402 #define LMEM_MOVEABLE       0x0002
00403 #define LMEM_NOCOMPACT      0x0010
00404 #define LMEM_NODISCARD      0x0020
00405 #define LMEM_ZEROINIT       0x0040
00406 #define LMEM_MODIFY         0x0080
00407 #define LMEM_DISCARDABLE    0x0F00
00408 #define LMEM_DISCARDED      0x4000
00409 #define LMEM_LOCKCOUNT      0x00FF
00410 
00411 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
00412 
00413 #define GMEM_FIXED          0x0000
00414 #define GMEM_MOVEABLE       0x0002
00415 #define GMEM_NOCOMPACT      0x0010
00416 #define GMEM_NODISCARD      0x0020
00417 #define GMEM_ZEROINIT       0x0040
00418 #define GMEM_MODIFY         0x0080
00419 #define GMEM_DISCARDABLE    0x0100
00420 #define GMEM_NOT_BANKED     0x1000
00421 #define GMEM_SHARE          0x2000
00422 #define GMEM_DDESHARE       0x2000
00423 #define GMEM_NOTIFY         0x4000
00424 #define GMEM_LOWER          GMEM_NOT_BANKED
00425 #define GMEM_DISCARDED      0x4000
00426 #define GMEM_LOCKCOUNT      0x00ff
00427 #define GMEM_INVALID_HANDLE 0x8000
00428 
00429 #define GHND                (GMEM_MOVEABLE | GMEM_ZEROINIT)
00430 #define GPTR                (GMEM_FIXED | GMEM_ZEROINIT)
00431 
00432 
00433 typedef struct tagMEMORYSTATUS
00434 {
00435     DWORD    dwLength;
00436     DWORD    dwMemoryLoad;
00437     DWORD    dwTotalPhys;
00438     DWORD    dwAvailPhys;
00439     DWORD    dwTotalPageFile;
00440     DWORD    dwAvailPageFile;
00441     DWORD    dwTotalVirtual;
00442     DWORD    dwAvailVirtual;
00443 } MEMORYSTATUS, *LPMEMORYSTATUS;
00444 
00445 
00446 #ifndef NOLOGERROR
00447 
00448 /* LogParamError and LogError values */
00449 
00450 /* Error modifier bits */
00451 #define ERR_WARNING             0x8000
00452 #define ERR_PARAM               0x4000
00453 
00454 #define ERR_SIZE_MASK           0x3000
00455 #define ERR_BYTE                0x1000
00456 #define ERR_WORD                0x2000
00457 #define ERR_DWORD               0x3000
00458 
00459 /* LogParamError() values */
00460 
00461 /* Generic parameter values */
00462 #define ERR_BAD_VALUE           0x6001
00463 #define ERR_BAD_FLAGS           0x6002
00464 #define ERR_BAD_INDEX           0x6003
00465 #define ERR_BAD_DVALUE          0x7004
00466 #define ERR_BAD_DFLAGS          0x7005
00467 #define ERR_BAD_DINDEX          0x7006
00468 #define ERR_BAD_PTR             0x7007
00469 #define ERR_BAD_FUNC_PTR        0x7008
00470 #define ERR_BAD_SELECTOR        0x6009
00471 #define ERR_BAD_STRING_PTR      0x700a
00472 #define ERR_BAD_HANDLE          0x600b
00473 
00474 /* KERNEL parameter errors */
00475 #define ERR_BAD_HINSTANCE       0x6020
00476 #define ERR_BAD_HMODULE         0x6021
00477 #define ERR_BAD_GLOBAL_HANDLE   0x6022
00478 #define ERR_BAD_LOCAL_HANDLE    0x6023
00479 #define ERR_BAD_ATOM            0x6024
00480 #define ERR_BAD_HFILE           0x6025
00481 
00482 /* USER parameter errors */
00483 #define ERR_BAD_HWND            0x6040
00484 #define ERR_BAD_HMENU           0x6041
00485 #define ERR_BAD_HCURSOR         0x6042
00486 #define ERR_BAD_HICON           0x6043
00487 #define ERR_BAD_HDWP            0x6044
00488 #define ERR_BAD_CID             0x6045
00489 #define ERR_BAD_HDRVR           0x6046
00490 
00491 /* GDI parameter errors */
00492 #define ERR_BAD_COORDS          0x7060
00493 #define ERR_BAD_GDI_OBJECT      0x6061
00494 #define ERR_BAD_HDC             0x6062
00495 #define ERR_BAD_HPEN            0x6063
00496 #define ERR_BAD_HFONT           0x6064
00497 #define ERR_BAD_HBRUSH          0x6065
00498 #define ERR_BAD_HBITMAP         0x6066
00499 #define ERR_BAD_HRGN            0x6067
00500 #define ERR_BAD_HPALETTE        0x6068
00501 #define ERR_BAD_HMETAFILE       0x6069
00502 
00503 
00504 /* LogError() values */
00505 
00506 /* KERNEL errors */
00507 #define ERR_GALLOC              0x0001
00508 #define ERR_GREALLOC            0x0002
00509 #define ERR_GLOCK               0x0003
00510 #define ERR_LALLOC              0x0004
00511 #define ERR_LREALLOC            0x0005
00512 #define ERR_LLOCK               0x0006
00513 #define ERR_ALLOCRES            0x0007
00514 #define ERR_LOCKRES             0x0008
00515 #define ERR_LOADMODULE          0x0009
00516 
00517 /* USER errors */
00518 #define ERR_CREATEDLG           0x0040
00519 #define ERR_CREATEDLG2          0x0041
00520 #define ERR_REGISTERCLASS       0x0042
00521 #define ERR_DCBUSY              0x0043
00522 #define ERR_CREATEWND           0x0044
00523 #define ERR_STRUCEXTRA          0x0045
00524 #define ERR_LOADSTR             0x0046
00525 #define ERR_LOADMENU            0x0047
00526 #define ERR_NESTEDBEGINPAINT    0x0048
00527 #define ERR_BADINDEX            0x0049
00528 #define ERR_CREATEMENU          0x004a
00529 
00530 /* GDI errors */
00531 #define ERR_CREATEDC            0x0080
00532 #define ERR_CREATEMETA          0x0081
00533 #define ERR_DELOBJSELECTED      0x0082
00534 #define ERR_SELBITMAP           0x0083
00535 
00536 
00537 
00538 /* Debugging support (DEBUG SYSTEM ONLY) */
00539 typedef struct
00540 {
00541     UINT16  flags;
00542     DWORD   dwOptions WINE_PACKED;
00543     DWORD   dwFilter WINE_PACKED;
00544     CHAR    achAllocModule[8] WINE_PACKED;
00545     DWORD   dwAllocBreak WINE_PACKED;
00546     DWORD   dwAllocCount WINE_PACKED;
00547 } WINDEBUGINFO, *LPWINDEBUGINFO;
00548 
00549 /* WINDEBUGINFO flags values */
00550 #define WDI_OPTIONS         0x0001
00551 #define WDI_FILTER          0x0002
00552 #define WDI_ALLOCBREAK      0x0004
00553 
00554 /* dwOptions values */
00555 #define DBO_CHECKHEAP       0x0001
00556 #define DBO_BUFFERFILL      0x0004
00557 #define DBO_DISABLEGPTRAPPING 0x0010
00558 #define DBO_CHECKFREE       0x0020
00559 
00560 #define DBO_SILENT          0x8000
00561 
00562 #define DBO_TRACEBREAK      0x2000
00563 #define DBO_WARNINGBREAK    0x1000
00564 #define DBO_NOERRORBREAK    0x0800
00565 #define DBO_NOFATALBREAK    0x0400
00566 #define DBO_INT3BREAK       0x0100
00567 
00568 /* DebugOutput flags values */
00569 #define DBF_TRACE           0x0000
00570 #define DBF_WARNING         0x4000
00571 #define DBF_ERROR           0x8000
00572 #define DBF_FATAL           0xc000
00573 
00574 /* dwFilter values */
00575 #define DBF_KERNEL          0x1000
00576 #define DBF_KRN_MEMMAN      0x0001
00577 #define DBF_KRN_LOADMODULE  0x0002
00578 #define DBF_KRN_SEGMENTLOAD 0x0004
00579 #define DBF_USER            0x0800
00580 #define DBF_GDI             0x0400
00581 #define DBF_MMSYSTEM        0x0040
00582 #define DBF_PENWIN          0x0020
00583 #define DBF_APPLICATION     0x0008
00584 #define DBF_DRIVER          0x0010
00585 
00586 #endif /* NOLOGERROR */
00587 
00588 typedef struct {
00589         WORD wYear;
00590         WORD wMonth;
00591         WORD wDayOfWeek;
00592         WORD wDay;
00593         WORD wHour;
00594         WORD wMinute;
00595         WORD wSecond;
00596         WORD wMilliseconds;
00597 } SYSTEMTIME, *LPSYSTEMTIME;
00598 
00599 /* The 'overlapped' data structure used by async I/O functions.
00600  */
00601 typedef struct {
00602         DWORD Internal;
00603         DWORD InternalHigh;
00604         DWORD Offset;
00605         DWORD OffsetHigh;
00606         HANDLE hEvent;
00607 } OVERLAPPED, *LPOVERLAPPED;
00608 
00609 /* Process startup information.
00610  */
00611 
00612 /* STARTUPINFO.dwFlags */
00613 #define STARTF_USESHOWWINDOW    0x00000001
00614 #define STARTF_USESIZE          0x00000002
00615 #define STARTF_USEPOSITION      0x00000004
00616 #define STARTF_USECOUNTCHARS    0x00000008
00617 #define STARTF_USEFILLATTRIBUTE 0x00000010
00618 #define STARTF_RUNFULLSCREEN    0x00000020
00619 #define STARTF_FORCEONFEEDBACK  0x00000040
00620 #define STARTF_FORCEOFFFEEDBACK 0x00000080
00621 #define STARTF_USESTDHANDLES    0x00000100
00622 #define STARTF_USEHOTKEY        0x00000200
00623 
00624 typedef struct {
00625         DWORD cb;               /* 00: size of struct */
00626         LPSTR lpReserved;       /* 04: */
00627         LPSTR lpDesktop;        /* 08: */
00628         LPSTR lpTitle;          /* 0c: */
00629         DWORD dwX;              /* 10: */
00630         DWORD dwY;              /* 14: */
00631         DWORD dwXSize;          /* 18: */
00632         DWORD dwYSize;          /* 1c: */
00633         DWORD dwXCountChars;    /* 20: */
00634         DWORD dwYCountChars;    /* 24: */
00635         DWORD dwFillAttribute;  /* 28: */
00636         DWORD dwFlags;          /* 2c: */
00637         WORD wShowWindow;       /* 30: */
00638         WORD cbReserved2;       /* 32: */
00639         BYTE *lpReserved2;      /* 34: */
00640         HANDLE hStdInput;       /* 38: */
00641         HANDLE hStdOutput;      /* 3c: */
00642         HANDLE hStdError;       /* 40: */
00643 } STARTUPINFOA, *LPSTARTUPINFOA;
00644 
00645 typedef struct {
00646         DWORD cb;
00647         LPWSTR lpReserved;
00648         LPWSTR lpDesktop;
00649         LPWSTR lpTitle;
00650         DWORD dwX;
00651         DWORD dwY;
00652         DWORD dwXSize;
00653         DWORD dwYSize;
00654         DWORD dwXCountChars;
00655         DWORD dwYCountChars;
00656         DWORD dwFillAttribute;
00657         DWORD dwFlags;
00658         WORD wShowWindow;
00659         WORD cbReserved2;
00660         BYTE *lpReserved2;
00661         HANDLE hStdInput;
00662         HANDLE hStdOutput;
00663         HANDLE hStdError;
00664 } STARTUPINFOW, *LPSTARTUPINFOW;
00665 
00666 DECL_WINELIB_TYPE_AW(STARTUPINFO)
00667 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
00668 
00669 typedef struct {
00670         HANDLE  hProcess;
00671         HANDLE  hThread;
00672         DWORD           dwProcessId;
00673         DWORD           dwThreadId;
00674 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
00675 
00676 typedef struct {
00677         LONG Bias;
00678         WCHAR StandardName[32];
00679         SYSTEMTIME StandardDate;
00680         LONG StandardBias;
00681         WCHAR DaylightName[32];
00682         SYSTEMTIME DaylightDate;
00683         LONG DaylightBias;
00684 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
00685 
00686 #define TIME_ZONE_ID_UNKNOWN    0
00687 #define TIME_ZONE_ID_STANDARD   1
00688 #define TIME_ZONE_ID_DAYLIGHT   2
00689 
00690 /* CreateProcess: dwCreationFlag values
00691  */
00692 #define DEBUG_PROCESS               0x00000001
00693 #define DEBUG_ONLY_THIS_PROCESS     0x00000002
00694 #define CREATE_SUSPENDED            0x00000004
00695 #define DETACHED_PROCESS            0x00000008
00696 #define CREATE_NEW_CONSOLE          0x00000010
00697 #define NORMAL_PRIORITY_CLASS       0x00000020
00698 #define IDLE_PRIORITY_CLASS         0x00000040
00699 #define HIGH_PRIORITY_CLASS         0x00000080
00700 #define REALTIME_PRIORITY_CLASS     0x00000100
00701 #define CREATE_NEW_PROCESS_GROUP    0x00000200
00702 #define CREATE_UNICODE_ENVIRONMENT  0x00000400
00703 #define CREATE_SEPARATE_WOW_VDM     0x00000800
00704 #define CREATE_SHARED_WOW_VDM       0x00001000
00705 #define CREATE_DEFAULT_ERROR_MODE   0x04000000
00706 #define CREATE_NO_WINDOW            0x08000000
00707 #define PROFILE_USER                0x10000000
00708 #define PROFILE_KERNEL              0x20000000
00709 #define PROFILE_SERVER              0x40000000
00710 
00711 
00712 /* File object type definitions
00713  */
00714 #define FILE_TYPE_UNKNOWN       0
00715 #define FILE_TYPE_DISK          1
00716 #define FILE_TYPE_CHAR          2
00717 #define FILE_TYPE_PIPE          3
00718 #define FILE_TYPE_REMOTE        32768
00719 
00720 /* File creation flags
00721  */
00722 #define FILE_FLAG_WRITE_THROUGH    0x80000000UL
00723 #define FILE_FLAG_OVERLAPPED       0x40000000L
00724 #define FILE_FLAG_NO_BUFFERING     0x20000000L
00725 #define FILE_FLAG_RANDOM_ACCESS    0x10000000L
00726 #define FILE_FLAG_SEQUENTIAL_SCAN  0x08000000L
00727 #define FILE_FLAG_DELETE_ON_CLOSE  0x04000000L
00728 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
00729 #define FILE_FLAG_POSIX_SEMANTICS  0x01000000L
00730 #define CREATE_NEW              1
00731 #define CREATE_ALWAYS           2
00732 #define OPEN_EXISTING           3
00733 #define OPEN_ALWAYS             4
00734 #define TRUNCATE_EXISTING       5
00735 
00736 /* Standard handle identifiers
00737  */
00738 #define STD_INPUT_HANDLE        ((DWORD) -10)
00739 #define STD_OUTPUT_HANDLE       ((DWORD) -11)
00740 #define STD_ERROR_HANDLE        ((DWORD) -12)
00741 
00742 typedef struct
00743 {
00744   int dwFileAttributes;
00745   FILETIME ftCreationTime;
00746   FILETIME ftLastAccessTime;
00747   FILETIME ftLastWriteTime;
00748   int dwVolumeSerialNumber;
00749   int nFileSizeHigh;
00750   int nFileSizeLow;
00751   int nNumberOfLinks;
00752   int nFileIndexHigh;
00753   int nFileIndexLow;
00754 } BY_HANDLE_FILE_INFORMATION ;
00755 
00756 
00757 typedef struct _SYSTEM_POWER_STATUS
00758 {
00759   WIN_BOOL16  ACLineStatus;
00760   BYTE    BatteryFlag;
00761   BYTE    BatteryLifePercent;
00762   BYTE    reserved;
00763   DWORD   BatteryLifeTime;
00764   DWORD   BatteryFullLifeTime;
00765 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
00766 
00767 typedef struct _MEMORY_BASIC_INFORMATION
00768 {
00769     LPVOID   BaseAddress;
00770     LPVOID   AllocationBase;
00771     DWORD    AllocationProtect;
00772     DWORD    RegionSize;
00773     DWORD    State;
00774     DWORD    Protect;
00775     DWORD    Type;
00776 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
00777 
00778 
00779 typedef WIN_BOOL CALLBACK (*CODEPAGE_ENUMPROCA)(LPSTR);
00780 typedef WIN_BOOL CALLBACK (*CODEPAGE_ENUMPROCW)(LPWSTR);
00781 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
00782 typedef WIN_BOOL CALLBACK (*LOCALE_ENUMPROCA)(LPSTR);
00783 typedef WIN_BOOL CALLBACK (*LOCALE_ENUMPROCW)(LPWSTR);
00784 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
00785 
00786 typedef struct tagSYSTEM_INFO
00787 {
00788     union {
00789         DWORD   dwOemId; /* Obsolete field - do not use */
00790         struct {
00791                 WORD wProcessorArchitecture;
00792                 WORD wReserved;
00793         } DUMMYSTRUCTNAME;
00794     } DUMMYUNIONNAME;
00795     DWORD       dwPageSize;
00796     LPVOID      lpMinimumApplicationAddress;
00797     LPVOID      lpMaximumApplicationAddress;
00798     DWORD       dwActiveProcessorMask;
00799     DWORD       dwNumberOfProcessors;
00800     DWORD       dwProcessorType;
00801     DWORD       dwAllocationGranularity;
00802     WORD        wProcessorLevel;
00803     WORD        wProcessorRevision;
00804 } SYSTEM_INFO, *LPSYSTEM_INFO;
00805 
00806 /* {G,S}etPriorityClass */
00807 #define NORMAL_PRIORITY_CLASS   0x00000020
00808 #define IDLE_PRIORITY_CLASS     0x00000040
00809 #define HIGH_PRIORITY_CLASS     0x00000080
00810 #define REALTIME_PRIORITY_CLASS 0x00000100
00811 
00812 typedef WIN_BOOL CALLBACK (*ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
00813 typedef WIN_BOOL CALLBACK (*ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
00814 typedef WIN_BOOL CALLBACK (*ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
00815 typedef WIN_BOOL CALLBACK (*ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
00816 typedef WIN_BOOL CALLBACK (*ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
00817 typedef WIN_BOOL CALLBACK (*ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
00818 
00819 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
00820 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
00821 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
00822 
00823 /* flags that can be passed to LoadLibraryEx */
00824 #define DONT_RESOLVE_DLL_REFERENCES     0x00000001
00825 #define LOAD_LIBRARY_AS_DATAFILE        0x00000002
00826 #define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008
00827 
00828 /* ifdef _x86_ ... */
00829 typedef struct _LDT_ENTRY {
00830     WORD        LimitLow;
00831     WORD        BaseLow;
00832     union {
00833         struct {
00834             BYTE        BaseMid;
00835             BYTE        Flags1;/*Declare as bytes to avoid alignment problems */
00836             BYTE        Flags2; 
00837             BYTE        BaseHi;
00838         } Bytes;
00839         struct {            
00840             unsigned    BaseMid         : 8;
00841             unsigned    Type            : 5;
00842             unsigned    Dpl             : 2;
00843             unsigned    Pres            : 1;
00844             unsigned    LimitHi         : 4;
00845             unsigned    Sys             : 1;
00846             unsigned    Reserved_0      : 1;
00847             unsigned    Default_Big     : 1;
00848             unsigned    Granularity     : 1;
00849             unsigned    BaseHi          : 8;
00850         } Bits;
00851     } HighWord;
00852 } LDT_ENTRY, *LPLDT_ENTRY;
00853 
00854 
00855 typedef enum _GET_FILEEX_INFO_LEVELS {
00856     GetFileExInfoStandard
00857 } GET_FILEEX_INFO_LEVELS;
00858 
00859 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
00860     DWORD    dwFileAttributes;
00861     FILETIME ftCreationTime;
00862     FILETIME ftLastAccessTime;
00863     FILETIME ftLastWriteTime;
00864     DWORD    nFileSizeHigh;
00865     DWORD    nFileSizeLow;
00866 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
00867 
00868 typedef struct _DllVersionInfo {
00869     DWORD cbSize;
00870     DWORD dwMajorVersion;
00871     DWORD dwMinorVersion;
00872     DWORD dwBuildNumber;
00873     DWORD dwPlatformID;
00874 } DLLVERSIONINFO;
00875 
00876 /*
00877  * This one seems to be a Win32 only definition. It also is defined with
00878  * WINAPI instead of CALLBACK in the windows headers.
00879  */
00880 typedef DWORD WINAPI (*LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER, 
00881                                            LARGE_INTEGER, DWORD, DWORD, HANDLE,
00882                                            HANDLE, LPVOID);
00883 
00884 
00885 #define WAIT_FAILED             0xffffffff
00886 #define WAIT_OBJECT_0           0
00887 #define WAIT_ABANDONED          STATUS_ABANDONED_WAIT_0
00888 #define WAIT_ABANDONED_0        STATUS_ABANDONED_WAIT_0
00889 #define WAIT_IO_COMPLETION      STATUS_USER_APC
00890 #define WAIT_TIMEOUT            STATUS_TIMEOUT
00891 #define STILL_ACTIVE            STATUS_PENDING
00892 
00893 #define PAGE_NOACCESS           0x01
00894 #define PAGE_READONLY           0x02
00895 #define PAGE_READWRITE          0x04
00896 #define PAGE_WRITECOPY          0x08
00897 #define PAGE_EXECUTE            0x10
00898 #define PAGE_EXECUTE_READ       0x20
00899 #define PAGE_EXECUTE_READWRITE  0x40
00900 #define PAGE_EXECUTE_WRITECOPY  0x80
00901 #define PAGE_GUARD              0x100
00902 #define PAGE_NOCACHE            0x200
00903 
00904 #define MEM_COMMIT              0x00001000
00905 #define MEM_RESERVE             0x00002000
00906 #define MEM_DECOMMIT            0x00004000
00907 #define MEM_RELEASE             0x00008000
00908 #define MEM_FREE                0x00010000
00909 #define MEM_PRIVATE             0x00020000
00910 #define MEM_MAPPED              0x00040000
00911 #define MEM_TOP_DOWN            0x00100000
00912 #ifdef __WINE__
00913 #define MEM_SYSTEM              0x80000000
00914 #endif
00915 
00916 #define SEC_FILE                0x00800000
00917 #define SEC_IMAGE               0x01000000
00918 #define SEC_RESERVE             0x04000000
00919 #define SEC_COMMIT              0x08000000
00920 #define SEC_NOCACHE             0x10000000
00921 
00922 #define FILE_BEGIN              0
00923 #define FILE_CURRENT            1
00924 #define FILE_END                2
00925 
00926 #define FILE_CASE_SENSITIVE_SEARCH      0x00000001
00927 #define FILE_CASE_PRESERVED_NAMES       0x00000002
00928 #define FILE_UNICODE_ON_DISK            0x00000004
00929 #define FILE_PERSISTENT_ACLS            0x00000008
00930 
00931 #define FILE_MAP_COPY                   0x00000001
00932 #define FILE_MAP_WRITE                  0x00000002
00933 #define FILE_MAP_READ                   0x00000004
00934 #define FILE_MAP_ALL_ACCESS             0x000f001f
00935 
00936 #define MOVEFILE_REPLACE_EXISTING       0x00000001
00937 #define MOVEFILE_COPY_ALLOWED           0x00000002
00938 #define MOVEFILE_DELAY_UNTIL_REBOOT     0x00000004
00939 
00940 #define FS_CASE_SENSITIVE               FILE_CASE_SENSITIVE_SEARCH
00941 #define FS_CASE_IS_PRESERVED            FILE_CASE_PRESERVED_NAMES
00942 #define FS_UNICODE_STORED_ON_DISK       FILE_UNICODE_ON_DISK
00943 
00944 #define EXCEPTION_ACCESS_VIOLATION          STATUS_ACCESS_VIOLATION
00945 #define EXCEPTION_DATATYPE_MISALIGNMENT     STATUS_DATATYPE_MISALIGNMENT
00946 #define EXCEPTION_BREAKPOINT                STATUS_BREAKPOINT
00947 #define EXCEPTION_SINGLE_STEP               STATUS_SINGLE_STEP
00948 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED     STATUS_ARRAY_BOUNDS_EXCEEDED
00949 #define EXCEPTION_FLT_DENORMAL_OPERAND      STATUS_FLOAT_DENORMAL_OPERAND
00950 #define EXCEPTION_FLT_DIVIDE_BY_ZERO        STATUS_FLOAT_DIVIDE_BY_ZERO
00951 #define EXCEPTION_FLT_INEXACT_RESULT        STATUS_FLOAT_INEXACT_RESULT
00952 #define EXCEPTION_FLT_INVALID_OPERATION     STATUS_FLOAT_INVALID_OPERATION
00953 #define EXCEPTION_FLT_OVERFLOW              STATUS_FLOAT_OVERFLOW
00954 #define EXCEPTION_FLT_STACK_CHECK           STATUS_FLOAT_STACK_CHECK
00955 #define EXCEPTION_FLT_UNDERFLOW             STATUS_FLOAT_UNDERFLOW
00956 #define EXCEPTION_INT_DIVIDE_BY_ZERO        STATUS_INTEGER_DIVIDE_BY_ZERO
00957 #define EXCEPTION_INT_OVERFLOW              STATUS_INTEGER_OVERFLOW
00958 #define EXCEPTION_PRIV_INSTRUCTION          STATUS_PRIVILEGED_INSTRUCTION
00959 #define EXCEPTION_IN_PAGE_ERROR             STATUS_IN_PAGE_ERROR
00960 #define EXCEPTION_ILLEGAL_INSTRUCTION       STATUS_ILLEGAL_INSTRUCTION
00961 #define EXCEPTION_NONCONTINUABLE_EXCEPTION  STATUS_NONCONTINUABLE_EXCEPTION
00962 #define EXCEPTION_STACK_OVERFLOW            STATUS_STACK_OVERFLOW
00963 #define EXCEPTION_INVALID_DISPOSITION       STATUS_INVALID_DISPOSITION
00964 #define EXCEPTION_GUARD_PAGE                STATUS_GUARD_PAGE_VIOLATION
00965 #define EXCEPTION_INVALID_HANDLE            STATUS_INVALID_HANDLE
00966 #define CONTROL_C_EXIT                      STATUS_CONTROL_C_EXIT
00967 
00968 /* Wine extension; Windows doesn't have a name for this code */
00969 #define EXCEPTION_CRITICAL_SECTION_WAIT     0xc0000194
00970 
00971 #define DUPLICATE_CLOSE_SOURCE          0x00000001
00972 #define DUPLICATE_SAME_ACCESS           0x00000002
00973 
00974 #define HANDLE_FLAG_INHERIT             0x00000001
00975 #define HANDLE_FLAG_PROTECT_FROM_CLOSE  0x00000002
00976 
00977 #define HINSTANCE_ERROR 32
00978 
00979 #define THREAD_PRIORITY_LOWEST          THREAD_BASE_PRIORITY_MIN
00980 #define THREAD_PRIORITY_BELOW_NORMAL    (THREAD_PRIORITY_LOWEST+1)
00981 #define THREAD_PRIORITY_NORMAL          0
00982 #define THREAD_PRIORITY_HIGHEST         THREAD_BASE_PRIORITY_MAX
00983 #define THREAD_PRIORITY_ABOVE_NORMAL    (THREAD_PRIORITY_HIGHEST-1)
00984 #define THREAD_PRIORITY_ERROR_RETURN    (0x7fffffff)
00985 #define THREAD_PRIORITY_TIME_CRITICAL   THREAD_BASE_PRIORITY_LOWRT
00986 #define THREAD_PRIORITY_IDLE            THREAD_BASE_PRIORITY_IDLE
00987 
00988 /* Could this type be considered opaque? */
00989 typedef struct {
00990         LPVOID  DebugInfo;
00991         LONG LockCount;
00992         LONG RecursionCount;
00993         HANDLE OwningThread;
00994         HANDLE LockSemaphore;
00995         DWORD Reserved;
00996 }CRITICAL_SECTION;
00997 
00998 #ifdef __WINE__
00999 #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
01000 #endif
01001 
01002 typedef struct {
01003         DWORD dwOSVersionInfoSize;
01004         DWORD dwMajorVersion;
01005         DWORD dwMinorVersion;
01006         DWORD dwBuildNumber;
01007         DWORD dwPlatformId;
01008         CHAR szCSDVersion[128];
01009 } OSVERSIONINFO16;
01010 
01011 typedef struct {
01012         DWORD dwOSVersionInfoSize;
01013         DWORD dwMajorVersion;
01014         DWORD dwMinorVersion;
01015         DWORD dwBuildNumber;
01016         DWORD dwPlatformId;
01017         CHAR szCSDVersion[128];
01018 } OSVERSIONINFOA;
01019 
01020 typedef struct {
01021         DWORD dwOSVersionInfoSize;
01022         DWORD dwMajorVersion;
01023         DWORD dwMinorVersion;
01024         DWORD dwBuildNumber;
01025         DWORD dwPlatformId;
01026         WCHAR szCSDVersion[128];
01027 } OSVERSIONINFOW;
01028 
01029 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
01030 
01031 #define VER_PLATFORM_WIN32s             0
01032 #define VER_PLATFORM_WIN32_WINDOWS      1
01033 #define VER_PLATFORM_WIN32_NT           2
01034 
01035 typedef struct tagCOMSTAT
01036 {
01037     DWORD status;
01038     DWORD cbInQue;
01039     DWORD cbOutQue;
01040 } COMSTAT,*LPCOMSTAT;
01041 
01042 typedef struct tagDCB
01043 {
01044     DWORD DCBlength;
01045     DWORD BaudRate;
01046     unsigned fBinary               :1;
01047     unsigned fParity               :1;
01048     unsigned fOutxCtsFlow          :1;
01049     unsigned fOutxDsrFlow          :1;
01050     unsigned fDtrControl           :2;
01051     unsigned fDsrSensitivity       :1;
01052     unsigned fTXContinueOnXoff     :1;
01053     unsigned fOutX                 :1;
01054     unsigned fInX                  :1;
01055     unsigned fErrorChar            :1;
01056     unsigned fNull                 :1;
01057     unsigned fRtsControl           :2;
01058     unsigned fAbortOnError         :1;
01059     unsigned fDummy2               :17;
01060     WORD wReserved;
01061     WORD XonLim;
01062     WORD XoffLim;
01063     BYTE ByteSize;
01064     BYTE Parity;
01065     BYTE StopBits;
01066     char XonChar;
01067     char XoffChar;
01068     char ErrorChar;
01069     char EofChar;
01070     char EvtChar;
01071 } DCB, *LPDCB;
01072 
01073 
01074 
01075 typedef struct tagCOMMTIMEOUTS {
01076         DWORD   ReadIntervalTimeout;
01077         DWORD   ReadTotalTimeoutMultiplier;
01078         DWORD   ReadTotalTimeoutConstant;
01079         DWORD   WriteTotalTimeoutMultiplier;
01080         DWORD   WriteTotalTimeoutConstant;
01081 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
01082   
01083 #include "poppack.h"
01084 
01085 typedef void CALLBACK (*PAPCFUNC)(ULONG_PTR);
01086 typedef void CALLBACK (*PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
01087 
01088 WIN_BOOL      WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
01089 WIN_BOOL      WINAPI BuildCommDCBA(LPCSTR,LPDCB);
01090 WIN_BOOL      WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
01091 #define     BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
01092 WIN_BOOL      WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
01093 WIN_BOOL      WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
01094 #define     BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
01095 WIN_BOOL      WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
01096 WIN_BOOL      WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
01097 WIN_BOOL      WINAPI GetCommState(INT,LPDCB);
01098 WIN_BOOL      WINAPI SetCommState(INT,LPDCB);
01099 WIN_BOOL      WINAPI TransmitCommChar(INT,CHAR);
01100 WIN_BOOL      WINAPI SetupComm(HANDLE, DWORD, DWORD);
01101 WIN_BOOL      WINAPI GetCommProperties(HANDLE, LPDCB *);
01102   
01103 /*DWORD WINAPI GetVersion( void );*/
01104 WIN_BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
01105 WIN_BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
01106 WIN_BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
01107 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
01108 
01109 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
01110 
01111 void      WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
01112 void      WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
01113 WIN_BOOL      WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
01114 void      WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
01115 void      WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
01116 void      WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
01117 WIN_BOOL    WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
01118 DWORD     WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
01119 void      WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
01120 WIN_BOOL    WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
01121 WIN_BOOL    WINAPI TerminateProcess(HANDLE,DWORD);
01122 WIN_BOOL    WINAPI TerminateThread(HANDLE,DWORD);
01123 WIN_BOOL    WINAPI GetExitCodeThread(HANDLE,LPDWORD); 
01124 
01125 /* GetBinaryType return values.
01126  */
01127 
01128 #define SCS_32BIT_BINARY    0
01129 #define SCS_DOS_BINARY      1
01130 #define SCS_WOW_BINARY      2
01131 #define SCS_PIF_BINARY      3
01132 #define SCS_POSIX_BINARY    4
01133 #define SCS_OS216_BINARY    5
01134 
01135 WIN_BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
01136 WIN_BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
01137 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
01138 
01139 WIN_BOOL16      WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
01140 WIN_BOOL16      WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
01141 /* Declarations for functions that exist only in Win32 */
01142 
01143 
01144 WIN_BOOL        WINAPI AttachThreadInput(DWORD,DWORD,WIN_BOOL);
01145 WIN_BOOL        WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPWIN_BOOL);
01146 WIN_BOOL        WINAPI AdjustTokenPrivileges(HANDLE,WIN_BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
01147 WIN_BOOL        WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
01148 WIN_BOOL        WINAPI AllocateLocallyUniqueId(PLUID);
01149 WIN_BOOL      WINAPI AllocConsole(void);
01150 WIN_BOOL      WINAPI AreFileApisANSI(void);
01151 WIN_BOOL        WINAPI BackupEventLogA(HANDLE,LPCSTR);
01152 WIN_BOOL        WINAPI BackupEventLogW(HANDLE,LPCWSTR);
01153 #define     BackupEventLog WINELIB_NAME_AW(BackupEventLog)
01154 WIN_BOOL        WINAPI Beep(DWORD,DWORD);
01155 WIN_BOOL        WINAPI CancelWaitableTimer(HANDLE);
01156 WIN_BOOL        WINAPI ClearEventLogA(HANDLE,LPCSTR);
01157 WIN_BOOL        WINAPI ClearEventLogW(HANDLE,LPCWSTR);
01158 #define     ClearEventLog WINELIB_NAME_AW(ClearEventLog)
01159 WIN_BOOL        WINAPI CloseEventLog(HANDLE);
01160 WIN_BOOL      WINAPI CloseHandle(HANDLE);
01161 WIN_BOOL      WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
01162 HANDLE    WINAPI ConvertToGlobalHandle(HANDLE hSrc);
01163 WIN_BOOL      WINAPI CopyFileA(LPCSTR,LPCSTR,WIN_BOOL);
01164 WIN_BOOL      WINAPI CopyFileW(LPCWSTR,LPCWSTR,WIN_BOOL);
01165 #define     CopyFile WINELIB_NAME_AW(CopyFile)
01166 WIN_BOOL      WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD);
01167 WIN_BOOL      WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD);
01168 #define     CopyFileEx WINELIB_NAME_AW(CopyFileEx)
01169 WIN_BOOL        WINAPI CopySid(DWORD,PSID,PSID);
01170 INT       WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
01171 HANDLE    WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCSTR);
01172 HANDLE    WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCWSTR);
01173 #define     CreateEvent WINELIB_NAME_AW(CreateEvent)
01174 HANDLE     WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
01175                                  DWORD,DWORD,HANDLE);
01176 HANDLE     WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
01177                                  DWORD,DWORD,HANDLE);
01178 #define     CreateFile WINELIB_NAME_AW(CreateFile)
01179 HANDLE    WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
01180                                         DWORD,DWORD,LPCSTR);
01181 HANDLE    WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
01182                                         DWORD,DWORD,LPCWSTR);
01183 #define     CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
01184 HANDLE    WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR);
01185 HANDLE    WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR);
01186 #define     CreateMutex WINELIB_NAME_AW(CreateMutex)
01187 WIN_BOOL      WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
01188 WIN_BOOL      WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
01189                                     LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCSTR,
01190                                     LPSTARTUPINFOA,LPPROCESS_INFORMATION);
01191 WIN_BOOL      WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
01192                                     LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCWSTR,
01193                                     LPSTARTUPINFOW,LPPROCESS_INFORMATION);
01194 #define     CreateProcess WINELIB_NAME_AW(CreateProcess)
01195 HANDLE    WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
01196 HANDLE    WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
01197 #define     CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
01198 HANDLE      WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
01199 HANDLE      WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR);
01200 HANDLE      WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR);
01201 #define     CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
01202 WIN_BOOL        WINAPI DebugActiveProcess(DWORD);
01203 void        WINAPI DebugBreak(void);
01204 WIN_BOOL        WINAPI DeregisterEventSource(HANDLE);
01205 WIN_BOOL        WINAPI DisableThreadLibraryCalls(HMODULE);
01206 WIN_BOOL        WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
01207 WIN_BOOL        WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,WIN_BOOL,DWORD);
01208 WIN_BOOL        WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
01209 WIN_BOOL        WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
01210 #define     EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
01211 WIN_BOOL      WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
01212                                             ENUMRESLANGPROCA,LONG);
01213 WIN_BOOL      WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
01214                                             ENUMRESLANGPROCW,LONG);
01215 #define     EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
01216 WIN_BOOL      WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
01217                                         LONG);
01218 WIN_BOOL      WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
01219                                         LONG);
01220 #define     EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
01221 WIN_BOOL      WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
01222 WIN_BOOL      WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
01223 #define     EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
01224 WIN_BOOL      WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
01225 WIN_BOOL      WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
01226 #define     EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
01227 WIN_BOOL      WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
01228 WIN_BOOL      WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
01229 #define     EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
01230 WIN_BOOL      WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
01231 WIN_BOOL      WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
01232 #define     EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
01233 WIN_BOOL        WINAPI EqualSid(PSID, PSID);
01234 WIN_BOOL        WINAPI EqualPrefixSid(PSID,PSID);
01235 VOID        WINAPI ExitProcess(DWORD) WINE_NORETURN;
01236 VOID        WINAPI ExitThread(DWORD) WINE_NORETURN;
01237 DWORD       WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
01238 DWORD       WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
01239 #define     ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
01240 WIN_BOOL      WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
01241 WIN_BOOL      WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
01242 WIN_BOOL      WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
01243 HANDLE    WINAPI FindFirstChangeNotificationA(LPCSTR,WIN_BOOL,DWORD);
01244 HANDLE    WINAPI FindFirstChangeNotificationW(LPCWSTR,WIN_BOOL,DWORD);
01245 #define     FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
01246 WIN_BOOL      WINAPI FindNextChangeNotification(HANDLE);
01247 WIN_BOOL      WINAPI FindCloseChangeNotification(HANDLE);
01248 HRSRC     WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
01249 HRSRC     WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
01250 #define     FindResourceEx WINELIB_NAME_AW(FindResourceEx)
01251 WIN_BOOL      WINAPI FlushConsoleInputBuffer(HANDLE);
01252 WIN_BOOL      WINAPI FlushFileBuffers(HANDLE);
01253 WIN_BOOL      WINAPI FlushViewOfFile(LPCVOID, DWORD);
01254 DWORD       WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
01255                                     DWORD,LPDWORD);
01256 DWORD       WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
01257                                     DWORD,LPDWORD);
01258 #define     FormatMessage WINELIB_NAME_AW(FormatMessage)
01259 WIN_BOOL      WINAPI FreeConsole(void);
01260 WIN_BOOL      WINAPI FreeEnvironmentStringsA(LPSTR);
01261 WIN_BOOL      WINAPI FreeEnvironmentStringsW(LPWSTR);
01262 #define     FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
01263 PVOID       WINAPI FreeSid(PSID);
01264 UINT      WINAPI GetACP(void);
01265 LPCSTR      WINAPI GetCommandLineA(void);
01266 LPCWSTR     WINAPI GetCommandLineW(void);
01267 #define     GetCommandLine WINELIB_NAME_AW(GetCommandLine)
01268 WIN_BOOL      WINAPI GetComputerNameA(LPSTR,LPDWORD);
01269 WIN_BOOL      WINAPI GetComputerNameW(LPWSTR,LPDWORD);
01270 #define     GetComputerName WINELIB_NAME_AW(GetComputerName)
01271 UINT      WINAPI GetConsoleCP(void);
01272 WIN_BOOL      WINAPI GetConsoleMode(HANDLE,LPDWORD);
01273 UINT      WINAPI GetConsoleOutputCP(void);
01274 DWORD       WINAPI GetConsoleTitleA(LPSTR,DWORD);
01275 DWORD       WINAPI GetConsoleTitleW(LPWSTR,DWORD);
01276 #define     GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
01277 WIN_BOOL        WINAPI GetCommMask(HANDLE, LPDWORD);
01278 WIN_BOOL        WINAPI GetCommModemStatus(HANDLE, LPDWORD);
01279 HANDLE      WINAPI GetCurrentProcess(void);
01280 HANDLE      WINAPI GetCurrentThread(void);
01281 INT         WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
01282 INT         WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
01283 #define     GetDateFormat WINELIB_NAME_AW(GetDateFormat)
01284 LPSTR       WINAPI GetEnvironmentStringsA(void);
01285 LPWSTR      WINAPI GetEnvironmentStringsW(void);
01286 #define     GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
01287 DWORD       WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
01288 DWORD       WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
01289 #define     GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
01290 WIN_BOOL      WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
01291 WIN_BOOL      WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
01292 #define     GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
01293 DWORD       WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
01294 WIN_BOOL        WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
01295 WIN_BOOL        WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
01296 #define     GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
01297 DWORD       WINAPI GetFileSize(HANDLE,LPDWORD);
01298 WIN_BOOL        WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
01299 DWORD       WINAPI GetFileType(HANDLE);
01300 DWORD       WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
01301 DWORD       WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
01302 #define     GetFullPathName WINELIB_NAME_AW(GetFullPathName)
01303 WIN_BOOL      WINAPI GetHandleInformation(HANDLE,LPDWORD);
01304 COORD       WINAPI GetLargestConsoleWindowSize(HANDLE);
01305 DWORD       WINAPI GetLengthSid(PSID);
01306 VOID        WINAPI GetLocalTime(LPSYSTEMTIME);
01307 DWORD       WINAPI GetLogicalDrives(void);
01308 DWORD       WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
01309 DWORD       WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
01310 #define     GetLongPathName WINELIB_NAME_AW(GetLongPathName)
01311 WIN_BOOL      WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
01312 WIN_BOOL      WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
01313 WIN_BOOL        WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
01314 UINT      WINAPI GetOEMCP(void);
01315 WIN_BOOL        WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
01316 DWORD       WINAPI GetPriorityClass(HANDLE);
01317 DWORD       WINAPI GetProcessVersion(DWORD);
01318 WIN_BOOL        WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
01319 WIN_BOOL        WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL);
01320 WIN_BOOL        WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL);
01321 DWORD       WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
01322 WIN_BOOL        WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL);
01323 WIN_BOOL        WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL);
01324 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
01325 DWORD       WINAPI GetSidLengthRequired(BYTE);
01326 PDWORD      WINAPI GetSidSubAuthority(PSID,DWORD);
01327 PUCHAR      WINAPI GetSidSubAuthorityCount(PSID);
01328 DWORD       WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
01329 DWORD       WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
01330 #define     GetShortPathName WINELIB_NAME_AW(GetShortPathName)
01331 HFILE     WINAPI GetStdHandle(DWORD);
01332 WIN_BOOL      WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
01333 WIN_BOOL      WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
01334 #define     GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
01335 VOID        WINAPI GetSystemInfo(LPSYSTEM_INFO);
01336 WIN_BOOL        WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
01337 VOID        WINAPI GetSystemTime(LPSYSTEMTIME);
01338 VOID        WINAPI GetSystemTimeAsFileTime(LPFILETIME);
01339 INT         WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
01340 INT         WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
01341 #define     GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
01342 WIN_BOOL        WINAPI GetThreadContext(HANDLE,CONTEXT *);
01343 LCID        WINAPI GetThreadLocale(void);
01344 INT       WINAPI GetThreadPriority(HANDLE);
01345 WIN_BOOL      WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
01346 WIN_BOOL        WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
01347 WIN_BOOL        WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
01348 WIN_BOOL        WINAPI GetUserNameA(LPSTR,LPDWORD);
01349 WIN_BOOL        WINAPI GetUserNameW(LPWSTR,LPDWORD);
01350 #define     GetUserName WINELIB_NAME_AW(GetUserName)
01351 VOID        WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
01352 LPVOID      WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
01353 DWORD       WINAPI HeapCompact(HANDLE,DWORD);
01354 HANDLE    WINAPI HeapCreate(DWORD,DWORD,DWORD);
01355 WIN_BOOL      WINAPI HeapDestroy(HANDLE);
01356 WIN_BOOL      WINAPI HeapFree(HANDLE,DWORD,LPVOID);
01357 WIN_BOOL      WINAPI HeapLock(HANDLE);
01358 LPVOID      WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
01359 DWORD       WINAPI HeapSize(HANDLE,DWORD,LPVOID);
01360 WIN_BOOL      WINAPI HeapUnlock(HANDLE);
01361 WIN_BOOL      WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
01362 WIN_BOOL        WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
01363 WIN_BOOL        WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
01364 WIN_BOOL        WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
01365 WIN_BOOL        WINAPI IsValidSid(PSID);
01366 WIN_BOOL        WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
01367 WIN_BOOL        WINAPI IsDBCSLeadByteEx(UINT,BYTE);
01368 WIN_BOOL        WINAPI IsProcessorFeaturePresent(DWORD);
01369 WIN_BOOL        WINAPI IsValidLocale(DWORD,DWORD);
01370 WIN_BOOL        WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
01371 WIN_BOOL        WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
01372 #define     LookupAccountSid WINELIB_NAME_AW(LookupAccountSidW)
01373 WIN_BOOL        WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
01374 WIN_BOOL        WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
01375 WIN_BOOL        WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);    
01376 WIN_BOOL        WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
01377 WIN_BOOL        WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
01378 #define     LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
01379 WIN_BOOL        WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
01380 HMODULE   WINAPI MapHModuleSL(HMODULE16);
01381 HMODULE16   WINAPI MapHModuleLS(HMODULE);
01382 SEGPTR      WINAPI MapLS(LPVOID);
01383 LPVOID      WINAPI MapSL(SEGPTR);
01384 LPVOID      WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
01385 LPVOID      WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
01386 WIN_BOOL      WINAPI MoveFileA(LPCSTR,LPCSTR);
01387 WIN_BOOL      WINAPI MoveFileW(LPCWSTR,LPCWSTR);
01388 #define     MoveFile WINELIB_NAME_AW(MoveFile)
01389 WIN_BOOL      WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
01390 WIN_BOOL      WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
01391 #define     MoveFileEx WINELIB_NAME_AW(MoveFileEx)
01392 INT       WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
01393 WIN_BOOL        WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
01394 INT       WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,WIN_BOOL*);
01395 HANDLE      WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
01396 HANDLE      WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
01397 #define     OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
01398 HANDLE    WINAPI OpenEventA(DWORD,WIN_BOOL,LPCSTR);
01399 HANDLE    WINAPI OpenEventW(DWORD,WIN_BOOL,LPCWSTR);
01400 #define     OpenEvent WINELIB_NAME_AW(OpenEvent)
01401 HANDLE      WINAPI OpenEventLogA(LPCSTR,LPCSTR);
01402 HANDLE      WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
01403 #define     OpenEventLog WINELIB_NAME_AW(OpenEventLog)
01404 HANDLE    WINAPI OpenFileMappingA(DWORD,WIN_BOOL,LPCSTR);
01405 HANDLE    WINAPI OpenFileMappingW(DWORD,WIN_BOOL,LPCWSTR);
01406 #define     OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
01407 HANDLE    WINAPI OpenMutexA(DWORD,WIN_BOOL,LPCSTR);
01408 HANDLE    WINAPI OpenMutexW(DWORD,WIN_BOOL,LPCWSTR);
01409 #define     OpenMutex WINELIB_NAME_AW(OpenMutex)
01410 HANDLE    WINAPI OpenProcess(DWORD,WIN_BOOL,DWORD);
01411 WIN_BOOL        WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
01412 HANDLE    WINAPI OpenSemaphoreA(DWORD,WIN_BOOL,LPCSTR);
01413 HANDLE    WINAPI OpenSemaphoreW(DWORD,WIN_BOOL,LPCWSTR);
01414 #define     OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
01415 WIN_BOOL        WINAPI OpenThreadToken(HANDLE,DWORD,WIN_BOOL,PHANDLE);
01416 HANDLE      WINAPI OpenWaitableTimerA(DWORD,WIN_BOOL,LPCSTR);
01417 HANDLE      WINAPI OpenWaitableTimerW(DWORD,WIN_BOOL,LPCWSTR);
01418 #define     OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
01419 WIN_BOOL        WINAPI PulseEvent(HANDLE);
01420 WIN_BOOL        WINAPI PurgeComm(HANDLE,DWORD);
01421 DWORD       WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
01422 DWORD       WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
01423 #define     QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
01424 WIN_BOOL      WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
01425 WIN_BOOL      WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
01426 WIN_BOOL      WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
01427 #define     ReadConsole WINELIB_NAME_AW(ReadConsole)
01428 WIN_BOOL      WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
01429                                                  COORD,LPDWORD);
01430 #define     ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
01431 WIN_BOOL        WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
01432 WIN_BOOL        WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
01433 #define     ReadEventLog WINELIB_NAME_AW(ReadEventLog)
01434 WIN_BOOL      WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
01435 HANDLE      WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
01436 HANDLE      WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
01437 #define     RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
01438 WIN_BOOL      WINAPI ReleaseMutex(HANDLE);
01439 WIN_BOOL      WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
01440 WIN_BOOL        WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
01441 WIN_BOOL        WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
01442 #define     ReportEvent WINELIB_NAME_AW(ReportEvent)
01443 WIN_BOOL      WINAPI ResetEvent(HANDLE);
01444 DWORD       WINAPI ResumeThread(HANDLE);
01445 WIN_BOOL        WINAPI RevertToSelf(void);
01446 DWORD       WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
01447 DWORD       WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
01448 #define     SearchPath WINELIB_NAME_AW(SearchPath)
01449 WIN_BOOL      WINAPI SetCommMask(INT,DWORD);
01450 WIN_BOOL      WINAPI SetComputerNameA(LPCSTR);
01451 WIN_BOOL      WINAPI SetComputerNameW(LPCWSTR);
01452 #define     SetComputerName WINELIB_NAME_AW(SetComputerName)
01453 WIN_BOOL      WINAPI SetConsoleCursorPosition(HANDLE,COORD);
01454 WIN_BOOL      WINAPI SetConsoleMode(HANDLE,DWORD);
01455 WIN_BOOL      WINAPI SetConsoleTitleA(LPCSTR);
01456 WIN_BOOL      WINAPI SetConsoleTitleW(LPCWSTR);
01457 #define     SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
01458 WIN_BOOL      WINAPI SetEndOfFile(HANDLE);
01459 WIN_BOOL      WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
01460 WIN_BOOL      WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
01461 #define     SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
01462 WIN_BOOL      WINAPI SetEvent(HANDLE);
01463 VOID        WINAPI SetFileApisToANSI(void);
01464 VOID        WINAPI SetFileApisToOEM(void);
01465 DWORD       WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
01466 WIN_BOOL        WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
01467 WIN_BOOL        WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
01468 #define     SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
01469 WIN_BOOL        WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
01470 WIN_BOOL        WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
01471 WIN_BOOL        WINAPI SetPriorityClass(HANDLE,DWORD);
01472 WIN_BOOL        WINAPI SetLocalTime(const SYSTEMTIME*);
01473 WIN_BOOL        WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL);
01474 WIN_BOOL        WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL);
01475 WIN_BOOL        WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL);
01476 WIN_BOOL        WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL);
01477 WIN_BOOL      WINAPI SetStdHandle(DWORD,HANDLE);
01478 WIN_BOOL      WINAPI SetSystemPowerState(WIN_BOOL,WIN_BOOL);
01479 WIN_BOOL      WINAPI SetSystemTime(const SYSTEMTIME*);
01480 DWORD       WINAPI SetThreadAffinityMask(HANDLE,DWORD);
01481 WIN_BOOL        WINAPI SetThreadContext(HANDLE,const CONTEXT *);
01482 WIN_BOOL        WINAPI SetThreadLocale(LCID);
01483 WIN_BOOL        WINAPI SetThreadPriority(HANDLE,INT);
01484 WIN_BOOL        WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
01485 WIN_BOOL        WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,WIN_BOOL);
01486 VOID        WINAPI Sleep(DWORD);
01487 DWORD       WINAPI SleepEx(DWORD,WIN_BOOL);
01488 DWORD       WINAPI SuspendThread(HANDLE);
01489 WIN_BOOL      WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
01490 DWORD       WINAPI TlsAlloc(void);
01491 WIN_BOOL      WINAPI TlsFree(DWORD);
01492 LPVOID      WINAPI TlsGetValue(DWORD);
01493 WIN_BOOL      WINAPI TlsSetValue(DWORD,LPVOID);
01494 VOID        WINAPI UnMapLS(SEGPTR);
01495 WIN_BOOL      WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
01496 WIN_BOOL      WINAPI UnmapViewOfFile(LPVOID);
01497 LPVOID      WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
01498 WIN_BOOL      WINAPI VirtualFree(LPVOID,SIZE_T,DWORD);
01499 WIN_BOOL      WINAPI VirtualLock(LPVOID,DWORD);
01500 WIN_BOOL      WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
01501 WIN_BOOL      WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
01502 DWORD       WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
01503 DWORD       WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
01504 WIN_BOOL      WINAPI VirtualUnlock(LPVOID,DWORD);
01505 WIN_BOOL      WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
01506 WIN_BOOL      WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
01507 DWORD       WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,WIN_BOOL,DWORD);
01508 DWORD       WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,WIN_BOOL,DWORD,WIN_BOOL);
01509 DWORD       WINAPI WaitForSingleObject(HANDLE,DWORD);
01510 DWORD       WINAPI WaitForSingleObjectEx(HANDLE,DWORD,WIN_BOOL);
01511 WIN_BOOL      WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
01512 WIN_BOOL      WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
01513 #define     WriteConsole WINELIB_NAME_AW(WriteConsole)
01514 WIN_BOOL      WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
01515 LANGID      WINAPI GetSystemDefaultLangID(void);
01516 LCID        WINAPI GetSystemDefaultLCID(void);
01517 LANGID      WINAPI GetUserDefaultLangID(void);
01518 LCID        WINAPI GetUserDefaultLCID(void);
01519 ATOM        WINAPI AddAtomA(LPCSTR);
01520 ATOM        WINAPI AddAtomW(LPCWSTR);
01521 #define     AddAtom WINELIB_NAME_AW(AddAtom)
01522 UINT      WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
01523 UINT      WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
01524 #define     CompareString WINELIB_NAME_AW(CompareString)
01525 WIN_BOOL      WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
01526 WIN_BOOL      WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
01527 #define     CreateDirectory WINELIB_NAME_AW(CreateDirectory)
01528 WIN_BOOL      WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
01529 WIN_BOOL      WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
01530 #define     CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
01531 WIN_BOOL        WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
01532 #define     DefineHandleTable(w) ((w),TRUE)
01533 ATOM        WINAPI DeleteAtom(ATOM);
01534 WIN_BOOL      WINAPI DeleteFileA(LPCSTR);
01535 WIN_BOOL      WINAPI DeleteFileW(LPCWSTR);
01536 #define     DeleteFile WINELIB_NAME_AW(DeleteFile)
01537 void        WINAPI FatalAppExitA(UINT,LPCSTR);
01538 void        WINAPI FatalAppExitW(UINT,LPCWSTR);
01539 #define     FatalAppExit WINELIB_NAME_AW(FatalAppExit)
01540 ATOM        WINAPI FindAtomA(LPCSTR);
01541 ATOM        WINAPI FindAtomW(LPCWSTR);
01542 #define     FindAtom WINELIB_NAME_AW(FindAtom)
01543 WIN_BOOL      WINAPI FindClose(HANDLE);
01544 HANDLE16    WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
01545 HANDLE    WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
01546 HANDLE    WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
01547 #define     FindFirstFile WINELIB_NAME_AW(FindFirstFile)
01548 WIN_BOOL16      WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
01549 WIN_BOOL      WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
01550 WIN_BOOL      WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
01551 #define     FindNextFile WINELIB_NAME_AW(FindNextFile)
01552 HRSRC     WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
01553 HRSRC     WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
01554 #define     FindResource WINELIB_NAME_AW(FindResource)
01555 VOID        WINAPI FreeLibrary16(HINSTANCE16);
01556 WIN_BOOL      WINAPI FreeLibrary(HMODULE);
01557 #define     FreeModule(handle) FreeLibrary(handle)
01558 #define     FreeProcInstance(proc) /*nothing*/
01559 WIN_BOOL      WINAPI FreeResource(HGLOBAL);
01560 UINT      WINAPI GetAtomNameA(ATOM,LPSTR,INT);
01561 UINT      WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
01562 #define     GetAtomName WINELIB_NAME_AW(GetAtomName)
01563 UINT      WINAPI GetCurrentDirectoryA(UINT,LPSTR);
01564 UINT      WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
01565 #define     GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
01566 WIN_BOOL      WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
01567 WIN_BOOL      WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
01568 #define     GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
01569 WIN_BOOL      WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
01570 WIN_BOOL      WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
01571 #define     GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
01572 UINT      WINAPI GetDriveTypeA(LPCSTR);
01573 UINT      WINAPI GetDriveTypeW(LPCWSTR);
01574 #define     GetDriveType WINELIB_NAME_AW(GetDriveType)
01575 DWORD       WINAPI GetFileAttributesA(LPCSTR);
01576 DWORD       WINAPI GetFileAttributesW(LPCWSTR);
01577 #define     GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
01578 #define     GetFreeSpace(w) (0x100000L)
01579 UINT      WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
01580 UINT      WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
01581 #define     GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
01582 INT       WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
01583 INT       WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
01584 #define     GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
01585 DWORD       WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
01586 DWORD       WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
01587 #define     GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
01588 HMODULE     WINAPI GetModuleHandleA(LPCSTR);
01589 HMODULE     WINAPI GetModuleHandleW(LPCWSTR);
01590 #define     GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
01591 WIN_BOOL        WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,WIN_BOOL);
01592 UINT        WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
01593 UINT        WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
01594 #define     GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
01595 INT         WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
01596 INT         WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
01597 #define     GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
01598 DWORD       WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
01599 DWORD       WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
01600 #define     GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
01601 INT       WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
01602 INT       WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
01603 #define     GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
01604 WIN_BOOL      WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
01605 WIN_BOOL      WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
01606 #define     GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
01607 FARPROC   WINAPI GetProcAddress(HMODULE,LPCSTR);
01608 UINT      WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
01609 UINT      WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
01610 #define     GetProfileInt WINELIB_NAME_AW(GetProfileInt)
01611 INT       WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
01612 INT       WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
01613 #define     GetProfileSection WINELIB_NAME_AW(GetProfileSection)
01614 INT       WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
01615 INT       WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
01616 #define     GetProfileString WINELIB_NAME_AW(GetProfileString)
01617 VOID        WINAPI GetStartupInfoA(LPSTARTUPINFOA);
01618 VOID        WINAPI GetStartupInfoW(LPSTARTUPINFOW);
01619 #define     GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
01620 WIN_BOOL      WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
01621 WIN_BOOL      WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
01622 #define     GetStringType WINELIB_NAME_AW(GetStringType)
01623 UINT      WINAPI GetSystemDirectoryA(LPSTR,UINT);
01624 UINT      WINAPI GetSystemDirectoryW(LPWSTR,UINT);
01625 #define     GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
01626 UINT      WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
01627 UINT      WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
01628 #define     GetTempFileName WINELIB_NAME_AW(GetTempFileName)
01629 UINT      WINAPI GetTempPathA(UINT,LPSTR);
01630 UINT      WINAPI GetTempPathW(UINT,LPWSTR);
01631 #define     GetTempPath WINELIB_NAME_AW(GetTempPath)
01632 LONG        WINAPI GetVersion(void);
01633 WIN_BOOL      WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
01634 WIN_BOOL      WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
01635 WIN_BOOL      WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
01636 #define     GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
01637 UINT      WINAPI GetWindowsDirectoryA(LPSTR,UINT);
01638 UINT      WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
01639 #define     GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
01640 HGLOBAL16   WINAPI GlobalAlloc16(UINT16,DWORD);
01641 HGLOBAL   WINAPI GlobalAlloc(UINT,DWORD);
01642 DWORD       WINAPI GlobalCompact(DWORD);
01643 UINT      WINAPI GlobalFlags(HGLOBAL);
01644 HGLOBAL16   WINAPI GlobalFree16(HGLOBAL16);
01645 HGLOBAL   WINAPI GlobalFree(HGLOBAL);
01646 HGLOBAL   WINAPI GlobalHandle(LPCVOID);
01647 WORD        WINAPI GlobalFix16(HGLOBAL16);
01648 VOID        WINAPI GlobalFix(HGLOBAL);
01649 LPVOID      WINAPI GlobalLock16(HGLOBAL16);
01650 LPVOID      WINAPI GlobalLock(HGLOBAL);
01651 HGLOBAL   WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
01652 DWORD       WINAPI GlobalSize16(HGLOBAL16);
01653 DWORD       WINAPI GlobalSize(HGLOBAL);
01654 VOID        WINAPI GlobalUnfix16(HGLOBAL16);
01655 VOID        WINAPI GlobalUnfix(HGLOBAL);
01656 WIN_BOOL16      WINAPI GlobalUnlock16(HGLOBAL16);
01657 WIN_BOOL      WINAPI GlobalUnlock(HGLOBAL);
01658 WIN_BOOL16      WINAPI GlobalUnWire16(HGLOBAL16);
01659 WIN_BOOL      WINAPI GlobalUnWire(HGLOBAL);
01660 SEGPTR      WINAPI GlobalWire16(HGLOBAL16);
01661 LPVOID      WINAPI GlobalWire(HGLOBAL);
01662 WIN_BOOL      WINAPI InitAtomTable(DWORD);
01663 WIN_BOOL      WINAPI IsBadCodePtr(FARPROC);
01664 WIN_BOOL      WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
01665 WIN_BOOL      WINAPI IsBadHugeWritePtr(LPVOID,UINT);
01666 WIN_BOOL      WINAPI IsBadReadPtr(LPCVOID,UINT);
01667 WIN_BOOL      WINAPI IsBadStringPtrA(LPCSTR,UINT);
01668 WIN_BOOL      WINAPI IsBadStringPtrW(LPCWSTR,UINT);
01669 #define     IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
01670 WIN_BOOL        WINAPI IsBadWritePtr(LPVOID,UINT);
01671 WIN_BOOL        WINAPI IsDBCSLeadByte(BYTE);
01672 WIN_BOOL        WINAPI IsDebuggerPresent(void);
01673 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
01674 HMODULE   WINAPI LoadLibraryA(LPCSTR);
01675 HMODULE   WINAPI LoadLibraryW(LPCWSTR);
01676 #define     LoadLibrary WINELIB_NAME_AW(LoadLibrary)
01677 HMODULE   WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
01678 HMODULE   WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
01679 #define     LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
01680 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
01681 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
01682 HGLOBAL   WINAPI LoadResource(HMODULE,HRSRC);
01683 HLOCAL    WINAPI LocalAlloc(UINT,DWORD);
01684 UINT      WINAPI LocalCompact(UINT);
01685 UINT      WINAPI LocalFlags(HLOCAL);
01686 HLOCAL    WINAPI LocalFree(HLOCAL);
01687 HLOCAL    WINAPI LocalHandle(LPCVOID);
01688 LPVOID      WINAPI LocalLock(HLOCAL);
01689 HLOCAL    WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
01690 UINT      WINAPI LocalShrink(HGLOBAL,UINT);
01691 UINT      WINAPI LocalSize(HLOCAL);
01692 WIN_BOOL      WINAPI LocalUnlock(HLOCAL);
01693 LPVOID      WINAPI LockResource(HGLOBAL);
01694 #define     LockSegment(handle) GlobalFix((HANDLE)(handle))
01695 #define     MakeProcInstance(proc,inst) (proc)
01696 HFILE16     WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
01697 HFILE     WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
01698 VOID        WINAPI OutputDebugStringA(LPCSTR);
01699 VOID        WINAPI OutputDebugStringW(LPCWSTR);
01700 #define     OutputDebugString WINELIB_NAME_AW(OutputDebugString)
01701 WIN_BOOL        WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD);
01702 WIN_BOOL        WINAPI RemoveDirectoryA(LPCSTR);
01703 WIN_BOOL        WINAPI RemoveDirectoryW(LPCWSTR);
01704 #define     RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
01705 WIN_BOOL      WINAPI SetCurrentDirectoryA(LPCSTR);
01706 WIN_BOOL      WINAPI SetCurrentDirectoryW(LPCWSTR);
01707 #define     SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
01708 UINT      WINAPI SetErrorMode(UINT);
01709 WIN_BOOL      WINAPI SetFileAttributesA(LPCSTR,DWORD);
01710 WIN_BOOL      WINAPI SetFileAttributesW(LPCWSTR,DWORD);
01711 #define     SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
01712 UINT      WINAPI SetHandleCount(UINT);
01713 #define     SetSwapAreaSize(w) (w)
01714 WIN_BOOL        WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
01715 WIN_BOOL        WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
01716 #define     SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
01717 DWORD       WINAPI SizeofResource(HMODULE,HRSRC);
01718 #define     UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
01719 WIN_BOOL      WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
01720 WIN_BOOL      WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
01721 #define     WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
01722 WIN_BOOL      WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
01723 WIN_BOOL      WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
01724 #define     WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
01725 WIN_BOOL             WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
01726 WIN_BOOL             WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
01727 #define     WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
01728 WIN_BOOL      WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
01729 WIN_BOOL      WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
01730 #define     WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
01731 WIN_BOOL        WINAPI WriteProcessMemory(HANDLE, LPVOID, LPVOID, DWORD, LPDWORD);
01732 WIN_BOOL        WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
01733 WIN_BOOL        WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
01734 #define     WriteProfileString WINELIB_NAME_AW(WriteProfileString)
01735 #define     Yield32()
01736 LPSTR       WINAPI lstrcatA(LPSTR,LPCSTR);
01737 LPWSTR      WINAPI lstrcatW(LPWSTR,LPCWSTR);
01738 #define     lstrcat WINELIB_NAME_AW(lstrcat)
01739 LPSTR       WINAPI lstrcpyA(LPSTR,LPCSTR);
01740 LPWSTR      WINAPI lstrcpyW(LPWSTR,LPCWSTR);
01741 #define     lstrcpy WINELIB_NAME_AW(lstrcpy)
01742 LPSTR       WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
01743 LPWSTR      WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
01744 #define     lstrcpyn WINELIB_NAME_AW(lstrcpyn)
01745 INT       WINAPI lstrlenA(LPCSTR);
01746 INT       WINAPI lstrlenW(LPCWSTR);
01747 #define     lstrlen WINELIB_NAME_AW(lstrlen)
01748 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
01749 LONG        WINAPI _hread(HFILE,LPVOID,LONG);
01750 LONG        WINAPI _hwrite(HFILE,LPCSTR,LONG);
01751 HFILE     WINAPI _lcreat(LPCSTR,INT);
01752 HFILE     WINAPI _lclose(HFILE);
01753 LONG        WINAPI _llseek(HFILE,LONG,INT);
01754 HFILE     WINAPI _lopen(LPCSTR,INT);
01755 UINT      WINAPI _lread(HFILE,LPVOID,UINT);
01756 UINT      WINAPI _lwrite(HFILE,LPCSTR,UINT);
01757 SEGPTR      WINAPI WIN16_GlobalLock16(HGLOBAL16);
01758 INT       WINAPI lstrcmpA(LPCSTR,LPCSTR);
01759 INT       WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
01760 #define     lstrcmp WINELIB_NAME_AW(lstrcmp)
01761 INT       WINAPI lstrcmpiA(LPCSTR,LPCSTR);
01762 INT       WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
01763 #define     lstrcmpi WINELIB_NAME_AW(lstrcmpi)
01764 
01765 /* compatibility macros */
01766 #define     FillMemory RtlFillMemory
01767 #define     MoveMemory RtlMoveMemory
01768 #define     ZeroMemory RtlZeroMemory
01769 #define     CopyMemory RtlCopyMemory
01770 
01771 DWORD       WINAPI GetCurrentProcessId(void);
01772 DWORD       WINAPI GetCurrentThreadId(void);
01773 DWORD       WINAPI GetLastError(void);
01774 HANDLE      WINAPI GetProcessHeap(void);
01775 PVOID       WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID);
01776 LONG        WINAPI InterlockedDecrement(PLONG);
01777 LONG        WINAPI InterlockedExchange(PLONG,LONG);
01778 LONG        WINAPI InterlockedExchangeAdd(PLONG,LONG);
01779 LONG        WINAPI InterlockedIncrement(PLONG);
01780 VOID        WINAPI SetLastError(DWORD);
01781 
01782 #ifdef __WINE__
01783 #define GetCurrentProcess() ((HANDLE)0xffffffff)
01784 #define GetCurrentThread()  ((HANDLE)0xfffffffe)
01785 #endif
01786 
01787 #ifdef __cplusplus
01788 }
01789 #endif
01790 
01791 #endif  /* __WINE_WINBASE_H */

Generated on Tue Dec 20 10:14:23 2005 for vlc-0.8.4a by  doxygen 1.4.2