Current News
Archived News
Search News
Discussion Forum


Old Forum
Install Programs More Downloads...
Troubleshooting
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links




CommitLineData
3e09a0ee 1// wintypes.h - Windows data types
2// (when not compiling for Windows)
3// License information for this code is in license.txt
4
5#ifndef WIN_TYPES_INCLUDED
6#define WIN_TYPES_INCLUDED
7
895681eb 8#include <stdint.h>
9
f71c1a8a 10#ifndef WINAPI
3e09a0ee 11#define WINAPI
f71c1a8a 12#endif
3e09a0ee 13#define CDECL
14#define __fastcall
15
16#define CONST const
895681eb 17#define VOID void
3e09a0ee 18
895681eb 19//typedef void VOID;
3e09a0ee 20typedef void *LPVOID;
21typedef CONST void *LPCVOID;
22typedef const char *LPCSTR;
895681eb 23typedef uint8_t BYTE;
3e09a0ee 24typedef BYTE *LPBYTE;
895681eb 25typedef uint16_t WORD;
3e09a0ee 26typedef WORD *LPWORD;
895681eb 27typedef int16_t SHORT;
28typedef uint32_t DWORD;
3e09a0ee 29typedef DWORD *LPDWORD;
895681eb 30typedef int32_t LONG;
3e09a0ee 31typedef LONG *LPLONG;
32
33typedef int BOOL;
34typedef int (WINAPI *FARPROC)();
35
36#define FALSE 0
37#define TRUE 1
38
39#define ERROR_NOT_ENOUGH_MEMORY 8L
40#define ERROR_INVALID_PARAMETER 87L
41
42#endif
43