-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows.hpp
492 lines (477 loc) · 11.4 KB
/
Windows.hpp
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
//
// Windows Header that undoes the macro damage that including the normal windows.h header file will inflict.
//
#pragma once
// Set minimum SDK and Windows versions
#include <SdkDdkVer.h>
// Set Windows components to remove
#define STRICT
#define NOMINMAX
#include <Windows.h>
//
// Undefine Ansi/Wide character macros defined in windows.h
//
// datetimeapi.h
#undef GetDateFormat
#undef GetTimeFormat
// fileapi.h
#undef CreateDirectory
#undef CreateFile
#undef DefineDosDevice
#undef DeleteFile
#undef DeleteVolumeMountPoint
#undef FindFirstChangeNotification
#undef FindFirstFile
#undef FindFirstFileEx
#undef FindFirstVolume
#undef FindNextFile
#undef FindNextVolume
#undef GetCompressedFileSize
#undef GetDiskFreeSpace
#undef GetDiskFreeSpaceEx
#undef GetDiskSpaceInformation
#undef GetDriveType
#undef GetFileAttributes
#undef GetFileAttributesEx
#undef GetFinalPathNameByHandle
#undef GetFullPathName
#undef GetLogicalDriveStrings
#undef GetLongPathName
#undef GetShortPathName
#undef GetTempFileName
#undef GetTempPath
#undef GetVolumeInformation
#undef GetVolumeNameForVolumeMountPoint
#undef GetVolumePathName
#undef GetVolumePathNamesForVolumeName
#undef QueryDosDevice
#undef RemoveDirectory
#undef SetFileAttributes
// libloaderapi.h
#undef ENUMRESLANGPROC
#undef ENUMRESNAMEPROC
#undef EnumResourceLanguagesEx
#undef EnumResourceNames
#undef EnumResourceNamesEx
#undef EnumResourceTypesEx
#undef ENUMRESTYPEPROC
#undef FindResource
#undef FindResourceEx
#undef GetModuleFileName
#undef GetModuleHandle
#undef GetModuleHandleEx
#undef LoadLibrary
#undef LoadLibraryEx
#undef LoadString
#undef PGET_MODULE_HANDLE_EX
// processenv.h
#undef ExpandEnvironmentStrings
#undef FreeEnvironmentStrings
#undef GetCommandLine
#undef GetCurrentDirectory
#undef GetEnvironmentStrings
#undef GetEnvironmentVariable
#undef NeedCurrentDirectoryForExePath
#undef SearchPath
#undef SetCurrentDirectory
#undef SetEnvironmentStrings
#undef SetEnvironmentVariable
// processthreassapi.h
#undef CreateProcess
#undef CreateProcessAsUser
#undef GetStartupInfo
// psapi.h
#undef EnumPageFiles
#undef GetDeviceDriverBaseName
#undef GetDeviceDriverFileName
#undef GetMappedFileName
#undef GetModuleBaseName
#undef GetModuleFileNameEx
#undef GetProcessImageFileName
// shellapi.h
#undef DoEnvironmentSubst
#undef DragQueryFile
#undef ExtractAssociatedIcon
#undef ExtractAssociatedIconEx
#undef ExtractIcon
#undef ExtractIconEx
#undef FindExecutable
#undef IsLFNDrive
#undef Shell_NotifyIcon
#undef ShellAbout
#undef ShellExecute
#undef ShellExecuteEx
#undef ShellMessageBox
#undef SHEmptyRecycleBin
#undef SHEnumerateUnreadMailAccounts
#undef SHFileOperation
#undef SHGetDiskFreeSpaceEx
#undef SHGetFileInfo
#undef SHGetNewLinkInfo
#undef SHGetUnreadMailCount
#undef SHInvokePrinterCommand
#undef SHQueryRecycleBin
#undef SHSetUnreadMailCount
// winbase.h
#undef AccessCheckAndAuditAlarm
#undef AccessCheckByTypeAndAuditAlarm
#undef AccessCheckByTypeResultListAndAuditAlarm
#undef AccessCheckByTypeResultListAndAuditAlarmByHandle
#undef AddAtom
#undef BackupEventLog
#undef BeginUpdateResource
#undef BuildCommDCB
#undef BuildCommDCBAndTimeouts
#undef CallNamedPipe
#undef CheckNameLegalDOS8Dot3
#undef ClearEventLog
#undef CommConfigDialog
#undef CopyFile
#undef CopyFileEx
#undef CopyFileTransacted
#undef CreateActCtx
#undef CreateBoundaryDescriptor
#undef CreateDirectoryEx
#undef CreateDirectoryTransacted
#undef CreateFileMapping
#undef CreateFileMappingNuma
#undef CreateFileTransacted
#undef CreateHardLink
#undef CreateHardLinkTransacted
#undef CreateJobObject
#undef CreateMailslot
#undef CreateNamedPipe
#undef CreatePrivateNamespace
#undef CreateSemaphore
#undef CreateSemaphoreEx
#undef CreateSymbolicLink
#undef CreateSymbolicLinkTransacted
#undef CreateWaitableTimer
#undef CreateWaitableTimerEx
#undef DecryptFile
#undef DefineDosDevice
#undef DeleteFileTransacted
#undef DeleteVolumeMountPoint
#undef DnsHostnameToComputerName
#undef EncryptFile
#undef EndUpdateResource
#undef EnumResourceLanguages
#undef EnumResourceNames
#undef EnumResourceTypes
#undef FileEncryptionStatus
#undef FindActCtxSectionString
#undef FindAtom
#undef FindFirstFileTransacted
#undef FindFirstVolume
#undef FindFirstVolumeMountPoint
#undef FindNextVolume
#undef FindNextVolumeMountPoint
#undef FindResource
#undef FindResourceEx
#undef FormatMessage
#undef GetAtomName
#undef GetBinaryType
#undef GetCompressedFileSizeTransacted
#undef GetComputerName
#undef GetCurrentHwProfile
#undef GetDefaultCommConfig
#undef GetDllDirectory
#undef GetFileAttributesTransacted
#undef GetFileSecurity
#undef GetFirmwareEnvironmentVariable
#undef GetFirmwareEnvironmentVariableEx
#undef GetFullPathNameTransacted
#undef GetLogicalDriveStrings
#undef GetLongPathNameTransacted
#undef GetNamedPipeClientComputerName
#undef GetNamedPipeHandleState
#undef GetPrivateProfileInt
#undef GetPrivateProfileSection
#undef GetPrivateProfileSectionNames
#undef GetPrivateProfileString
#undef GetPrivateProfileStruct
#undef GetProfileInt
#undef GetProfileSection
#undef GetProfileString
#undef GetShortPathName
#undef GetStartupInfo
#undef GetUserName
#undef GetVolumeNameForVolumeMountPoint
#undef GetVolumePathName
#undef GetVolumePathNamesForVolumeName
#undef GlobalAddAtom
#undef GlobalAddAtomEx
#undef GlobalFindAtom
#undef GlobalGetAtomName
#undef IsBadStringPtr
#undef IsolationAwareLoadLibrary
#undef IsolationAwareLoadLibraryEx
#undef LogonUser
#undef LogonUserEx
#undef LookupAccountName
#undef LookupAccountNameLocal
#undef LookupAccountNameLocal
#undef LookupAccountSid
#undef LookupAccountSidLocal
#undef LookupAccountSidLocal
#undef LookupPrivilegeDisplayName
#undef LookupPrivilegeName
#undef LookupPrivilegeValue
#undef lstrcat
#undef lstrcmp
#undef lstrcmpi
#undef lstrcpy
#undef lstrcpyn
#undef lstrlen
#undef MoveFile
#undef MoveFileEx
#undef MoveFileTransacted
#undef MoveFileWithProgress
#undef ObjectCloseAuditAlarm
#undef ObjectDeleteAuditAlarm
#undef ObjectOpenAuditAlarm
#undef ObjectPrivilegeAuditAlarm
#undef OpenBackupEventLog
#undef OpenEncryptedFileRaw
#undef OpenEventLog
#undef OpenFileMapping
#undef OpenJobObject
#undef OpenMutex
#undef OpenPrivateNamespace
#undef OpenSemaphore
#undef OpenWaitableTimer
#undef PrivilegedServiceAuditAlarm
#undef QueryDosDevice
#undef QueryFullProcessImageName
#undef ReadEventLog
#undef RegisterEventSource
#undef RemoveDirectoryTransacted
#undef ReplaceFile
#undef ReportEvent
#undef SetDefaultCommConfig
#undef SetDllDirectory
#undef SetEnvironmentStrings
#undef SetFileAttributesTransacted
#undef SetFileSecurity
#undef SetFileShortName
#undef SetFirmwareEnvironmentVariable
#undef SetFirmwareEnvironmentVariableEx
#undef SetVolumeLabel
#undef SetVolumeMountPoint
#undef UpdateResource
#undef VerifyVersionInfo
#undef WaitNamedPipe
#undef WritePrivateProfileSection
#undef WritePrivateProfileString
#undef WritePrivateProfileStruct
#undef WriteProfileSection
#undef WriteProfileString
// wincon.h
#undef AddConsoleAlias
#undef FillConsoleOutputCharacter
#undef GetConsoleAlias
#undef GetConsoleAliases
#undef GetConsoleAliasesLength
#undef GetConsoleAliasExes
#undef GetConsoleAliasExesLength
#undef GetConsoleOriginalTitle
#undef GetConsoleTitle
#undef ReadConsoleOutput
#undef ReadConsoleOutputCharacter
#undef ScrollConsoleScreenBuffer
#undef SetConsoleTitle
#undef WriteConsoleInput
#undef WriteConsoleOutput
#undef WriteConsoleOutputCharacter
// wingdi.h
#undef AddFontResource
#undef AddFontResourceEx
#undef CopyEnhMetaFile
#undef CopyMetaFile
#undef CreateColorSpace
#undef CreateDC
#undef CreateEnhMetaFile
#undef CreateFont
#undef CreateFontIndirect
#undef CreateFontIndirectEx
#undef CreateIC
#undef CreateMetaFile
#undef CreateScalableFontResource
#undef DeviceCapabilities
#undef EnumFontFamilies
#undef EnumFontFamiliesEx
#undef EnumFonts
#undef EnumICMProfiles
#undef ExtTextOut
#undef GetCharABCWidths
#undef GetCharABCWidthsFloat
#undef GetCharacterPlacement
#undef GetCharWidth
#undef GetCharWidth32
#undef GetCharWidthFloat
#undef GetEnhMetaFile
#undef GetEnhMetaFileDescription
#undef GetGlyphIndices
#undef GetGlyphOutline
#undef GetICMProfile
#undef GetKerningPairs
#undef GetLogColorSpace
#undef GetMetaFile
#undef GetObject
#undef GetOutlineTextMetrics
#undef GetTextExtentExPoint
#undef GetTextExtentPoint
#undef GetTextExtentPoint32
#undef GetTextFace
#undef GetTextMetrics
#undef ICMENUMPROC
#undef PolyTextOut
#undef RemoveFontResource
#undef RemoveFontResourceEx
#undef ResetDC
#undef SetICMProfile
#undef StartDoc
#undef TextOut
#undef UpdateICMRegKey
// WinUser.h
#undef AppendMenu
#undef BroadcastSystemMessage
#undef BroadcastSystemMessageEx
#undef CallMsgFilter
#undef CallWindowProc
#undef ChangeDisplaySettings
#undef ChangeDisplaySettingsEx
#undef ChangeMenu
#undef CharLower
#undef CharLowerBuff
#undef CharNext
#undef CharPrev
#undef CharToOem
#undef CharToOemBuff
#undef CharUpper
#undef CharUpperBuff
#undef CopyAcceleratorTable
#undef CreateAcceleratorTable
#undef CreateDesktop
#undef CreateDesktopEx
#undef CreateDialog
#undef CreateDialogIndirect
#undef CreateDialogIndirectParam
#undef CreateDialogParam
#undef CreateMDIWindow
#undef CreateWindow
#undef CreateWindowEx
#undef CreateWindowStation
#undef DefDlgProc
#undef DefFrameProc
#undef DefMDIChildProc
#undef DefWindowProc
#undef DialogBox
#undef DialogBoxIndirect
#undef DialogBoxIndirectParam
#undef DialogBoxParam
#undef DispatchMessage
#undef DlgDirList
#undef DlgDirListComboBox
#undef DlgDirSelectComboBoxEx
#undef DlgDirSelectEx
#undef DrawState
#undef DrawText
#undef DrawTextEx
#undef EnumDesktops
#undef EnumDisplayDevices
#undef EnumDisplaySettings
#undef EnumDisplaySettingsEx
#undef EnumProps
#undef EnumPropsEx
#undef EnumWindowStations
#undef FindWindow
#undef FindWindowEx
#undef GetAltTabInfo
#undef GetClassInfo
#undef GetClassInfoEx
#undef GetClassLong
#undef GetClassLongPtr
#undef GetClassLongPtr
#undef GetClassName
#undef GetClipboardFormatName
#undef GetDlgItemText
#undef GetIconInfoEx
#undef GetKeyboardLayoutName
#undef GetKeyNameText
#undef GetMenuItemInfo
#undef GetMenuString
#undef GetMessage
#undef GetMonitorInfo
#undef GetProp
#undef GetRawInputDeviceInfo
#undef GetTabbedTextExtent
#undef GetUserObjectInformation
#undef GetWindowLong
#undef GetWindowLongPtr
#undef GetWindowModuleFileName
#undef GetWindowText
#undef GetWindowTextLength
#undef GrayString
#undef InsertMenu
#undef InsertMenuItem
#undef IsCharAlpha
#undef IsCharAlphaNumeric
#undef IsCharLower
#undef IsCharUpper
#undef IsDialogMessage
#undef LoadAccelerators
#undef LoadBitmap
#undef LoadCursor
#undef LoadCursorFromFile
#undef LoadIcon
#undef LoadImage
#undef LoadKeyboardLayout
#undef LoadMenu
#undef LoadMenuIndirect
#undef LoadString
#undef MapVirtualKey
#undef MapVirtualKeyEx
#undef MessageBox
#undef MessageBoxEx
#undef MessageBoxIndirect
#undef ModifyMenu
#undef OemToChar
#undef OemToCharBuff
#undef OpenDesktop
#undef OpenWindowStation
#undef PeekMessage
#undef PostAppMessage
#undef PostMessage
#undef PostThreadMessage
#undef PrivateExtractIcons
#undef RealGetWindowClass
#undef RegisterClass
#undef RegisterClassEx
#undef RegisterClipboardFormat
#undef RegisterDeviceNotification
#undef RegisterWindowMessage
#undef RemoveProp
#undef SendDlgItemMessage
#undef SendMessage
#undef SendMessageCallback
#undef SendMessageTimeout
#undef SendNotifyMessage
#undef SetClassLong
#undef SetClassLongPtr
#undef SetDlgItemText
#undef SetMenuItemInfo
#undef SetProp
#undef SetUserObjectInformation
#undef SetWindowLong
#undef SetWindowLongPtr
#undef SetWindowsHook
#undef SetWindowsHookEx
#undef SetWindowText
#undef SystemParametersInfo
#undef TabbedTextOut
#undef TranslateAccelerator
#undef UnregisterClass
#undef VkKeyScan
#undef VkKeyScanEx
#undef WinHelp