CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/headers/windows/stddef.h
Views: 11623
1
//
2
// License:
3
// https://github.com/rapid7/metasploit-framework/blob/master/LICENSE
4
//
5
6
#define NULL ((void *)0)
7
#define TRUE 1
8
#define FALSE 0
9
#define true 1
10
#define false 0
11
#define VOID void
12
#define _tWinMain WinMain
13
#define CALLBACK __stdcall
14
#define WINAPI __stdcall
15
#define APIENTRY WINAPI
16
#define BUFSIZ 512
17
#define _INTERNAL_BUFSIZ 4096
18
#define _SMALL_BUFSIZ 512
19
#define _NSTREAM_ 512
20
#define _IOB_ENTRIES 20
21
#define RAND_MAX 0x7fff
22
#define EOF (-1)
23
#define SEEK_CUR 1
24
#define SEEK_END 2
25
#define SEEK_SET 0
26
#define FILENAME_MAX 260
27
#define FOPEN_MAX 20
28
#define _SYS_OPEN 20
29
#define _TMP_MAX_S 2147483647
30
#define stdin (&__iob_func()[0])
31
#define stdout (&__iob_func()[1])
32
#define stderr (&__iob_func()[2])
33
#define _IOREAD 0x0001
34
#define _IOWRT 0x0002
35
#define _IOFBF 0x0000
36
#define _IOLBF 0x0040
37
#define _IONBF 0x0004
38
#define _IOMYBUF 0x0008
39
#define _IOEOF 0x0010
40
#define _IOERR 0x0020
41
#define _IOSTRG 0x0040
42
#define _IORW 0x0080
43
#define _TWO_DIGIT_EXPONENT 0x1
44
#define DLL_PROCESS_ATTACH 1
45
#define DLL_PROCESS_DETACH 0
46
#define DLL_THREAD_ATTACH 2
47
#define DLL_THREAD_DETACH 3
48
49
typedef char CHAR;
50
typedef CHAR* PCHAR;
51
typedef const char* LPCTSTR;
52
typedef const char* LPCSTR;
53
typedef const CHAR* PCSTR;
54
typedef char* LPSTR;
55
typedef char* LPTSTR;
56
typedef CHAR* PSTR;
57
typedef unsigned char BYTE;
58
typedef unsigned short WORD;
59
typedef unsigned long DWORD;
60
typedef unsigned int DWORD32;
61
typedef WORD* LPWORD;
62
typedef long HRESULT;
63
typedef long LONG;
64
typedef float FLOAT;
65
typedef DWORD COLORREF;
66
typedef WORD ATOM;
67
typedef BYTE BOOLEAN;
68
typedef void* HANDLE;
69
typedef HANDLE SC_HANDLE;
70
typedef HANDLE HINSTANCE;
71
typedef HINSTANCE HMODULE;
72
typedef HANDLE HHOOK;
73
typedef HANDLE HCONV;
74
typedef HANDLE HCONFLIST;
75
typedef HANDLE HFONT;
76
typedef HANDLE HGLOBAL;
77
typedef HANDLE HICON;
78
typedef HANDLE HKEY;
79
typedef HANDLE HGLOBAL;
80
typedef HKEY* PHKEY;
81
typedef HANDLE HKL;
82
typedef unsigned char UCHAR;
83
typedef char TCHAR;
84
typedef char CCHAR;
85
typedef int INT;
86
typedef unsigned int UINT;
87
typedef unsigned int UINT_PTR;
88
typedef unsigned long ULONG;
89
typedef unsigned long ULONG_PTR;
90
typedef long* LPLONG;
91
typedef long LONG_PTR;
92
typedef unsigned short USHORT;
93
typedef unsigned short WORD;
94
typedef unsigned int size_t;
95
typedef size_t* PSIZE_T;
96
typedef DWORD* LPDWORD;
97
typedef DWORD* PDWORD;
98
typedef HANDLE* LPHANDLE;
99
typedef HANDLE* PHANDLE;
100
typedef unsigned short u_short;
101
typedef BYTE* LPBYTE;
102
typedef BYTE* PBYTE;
103
typedef void* PVOID;
104
typedef void* LPVOID;
105
typedef void* LPCVOID;
106
typedef ULONG_PTR DWORD_PTR;
107
typedef void* HWND;
108
typedef int BOOL;
109
typedef int bool;
110
typedef BOOL* PBOOL;
111
typedef LONG_PTR LRESULT;
112
typedef UINT_PTR WPARAM;
113
typedef LONG_PTR LPARAM;
114
typedef long NTSTATUS;
115
typedef ULONG* PULONG;
116
typedef ULONG REGSAM;
117
typedef LRESULT (CALLBACK* HOOKPROC)(int, WPARAM, LPARAM);
118
typedef __stdcall int (*FARPROC)();
119
typedef struct _iobuf FILE;
120
typedef long fpos_t;
121
typedef int* LPINT;
122
123
typedef struct {
124
unsigned int gp_offset;
125
unsigned int fp_offset;
126
void *overflow_arg_area;
127
void *reg_save_area;
128
} va_list[1];
129