-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpch.h
53 lines (42 loc) · 1.64 KB
/
pch.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
// pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
// Do not add files here that you will be updating frequently as this negates the performance advantage.
#ifndef PCH_H
#define PCH_H
// add headers that you want to pre-compile here
#include "framework.h"
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
#include <Shlwapi.h>
#include <atlbase.h>
#include <cassert>
#include <cstdint>
#include <utility>
#include <string>
#include <dxgi.h>
#include <dxgi1_2.h>
#include <dxgi1_6.h>
#include <d3d11.h>
#include <d3d12.h>
#include "xinput_defs.h"
#include "SKinHook/MinHook.h"
#include "streamline.h"
using CreateFile2_pfn =
HANDLE (WINAPI *)(LPCWSTR,DWORD,DWORD,DWORD,
LPCREATEFILE2_EXTENDED_PARAMETERS);
using CreateFileW_pfn =
HANDLE (WINAPI *)(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
DWORD,DWORD,HANDLE);
using CreateFileA_pfn =
HANDLE (WINAPI *)(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
DWORD,DWORD,HANDLE);
// Queues a hook rather than enabling it immediately.
MH_STATUS
__stdcall
SK_CreateDLLHook2 ( const wchar_t *pwszModule, const char *pszProcName,
void *pDetour, void **ppOriginal,
void **ppFuncAddr
= nullptr );
#endif //PCH_H