| 74 | |
| 75 | pSetWindowLongA pOrigSetWindowLongADX11 = nullptr; |
| 76 | static LONG WINAPI pNewSetWindowLongADX11( |
| 77 | _In_ HWND hWnd, |
| 78 | _In_ int nIndex, |
| 79 | _In_ LONG dwNewLong) |
| 80 | { |
| 81 | if (g_bCreateSwapChain && g_hWnd == hWnd) { |
| 82 | DLog(L"Blocking call SetWindowLongA() function during create fullscreen swap chain"); |
| 83 | return 0L; |
| 84 | } |
| 85 | return pOrigSetWindowLongADX11(hWnd, nIndex, dwNewLong); |
| 86 | } |
| 87 | |
| 88 | template <typename T> |
| 89 | inline bool HookFunc(T** ppSystemFunction, PVOID pHookFunction) |