forked from Tordek/cheat
-
Notifications
You must be signed in to change notification settings - Fork 8
/
windowed.h
128 lines (115 loc) · 2.55 KB
/
windowed.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*
These are informational simplified prototypes.
*/
WINBASEAPI
UINT
WINAPI
SetErrorMode(
__in UINT uMode
);
WINBASEAPI
VOID
WINAPI
ZeroMemory(
_In_ PVOID Destination,
_In_ SIZE_T Length
);
WINBASEAPI
BOOL
WINAPI
CreatePipe(
__out_ecount_full(1) PHANDLE hReadPipe,
__out_ecount_full(1) PHANDLE hWritePipe,
__in_opt LPSECURITY_ATTRIBUTES lpPipeAttributes,
__in DWORD nSize
);
WINBASEAPI
__checkReturn
DWORD
WINAPI
GetLastError(
VOID
);
WINBASEAPI
__out
LPSTR
WINAPI
GetCommandLineA(
VOID
);
WINBASEAPI
__out
LPWSTR
WINAPI
GetCommandLineW(
VOID
);
WINBASEAPI
BOOL
WINAPI
CreateProcessA(
__in_opt LPCSTR lpApplicationName,
__inout_opt LPSTR lpCommandLine,
__in_opt LPSECURITY_ATTRIBUTES lpProcessAttributes,
__in_opt LPSECURITY_ATTRIBUTES lpThreadAttributes,
__in BOOL bInheritHandles,
__in DWORD dwCreationFlags,
__in_opt LPVOID lpEnvironment,
__in_opt LPCSTR lpCurrentDirectory,
__in LPSTARTUPINFOA lpStartupInfo,
__out LPPROCESS_INFORMATION lpProcessInformation
);
WINBASEAPI
BOOL
WINAPI
CreateProcessW(
__in_opt LPCWSTR lpApplicationName,
__inout_opt LPWSTR lpCommandLine,
__in_opt LPSECURITY_ATTRIBUTES lpProcessAttributes,
__in_opt LPSECURITY_ATTRIBUTES lpThreadAttributes,
__in BOOL bInheritHandles,
__in DWORD dwCreationFlags,
__in_opt LPVOID lpEnvironment,
__in_opt LPCWSTR lpCurrentDirectory,
__in LPSTARTUPINFOW lpStartupInfo,
__out LPPROCESS_INFORMATION lpProcessInformation
);
WINBASEAPI
BOOL
WINAPI
CloseHandle(
__in HANDLE hObject
);
WINBASEAPI
BOOL
WINAPI
ReadFile(
__in HANDLE hFile,
__out_bcount_part_opt(
nNumberOfBytesToRead,
*lpNumberOfBytesRead
) __out_data_source(FILE) LPVOID lpBuffer,
__in DWORD nNumberOfBytesToRead,
__out_opt LPDWORD lpNumberOfBytesRead,
__inout_opt LPOVERLAPPED lpOverlapped
);
WINBASEAPI
DWORD
WINAPI
WaitForSingleObject(
__in HANDLE hHandle,
__in DWORD dwMilliseconds
);
WINBASEAPI
BOOL
WINAPI
GetExitCodeProcess(
__in HANDLE hProcess,
__out LPDWORD lpExitCode
);
WINBASEAPI
VOID
WINAPI
Sleep(
__in DWORD dwMilliseconds
);