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
3e09a0ee 10#define WINAPI
11#define CDECL
12#define __fastcall
13
14#define CONST const
895681eb 15#define VOID void
3e09a0ee 16
895681eb 17//typedef void VOID;
3e09a0ee 18typedef void *LPVOID;
19typedef CONST void *LPCVOID;
20typedef const char *LPCSTR;
895681eb 21typedef uint8_t BYTE;
3e09a0ee 22typedef BYTE *LPBYTE;
895681eb 23typedef uint16_t WORD;
3e09a0ee 24typedef WORD *LPWORD;
895681eb 25typedef int16_t SHORT;
26typedef uint32_t DWORD;
3e09a0ee 27typedef DWORD *LPDWORD;
895681eb 28typedef int32_t LONG;
3e09a0ee 29typedef LONG *LPLONG;
30
31typedef int BOOL;
32typedef int (WINAPI *FARPROC)();
33
34#define FALSE 0
35#define TRUE 1
36
37#define ERROR_NOT_ENOUGH_MEMORY 8L
38#define ERROR_INVALID_PARAMETER 87L
39
40#endif
41