MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / pNewSetWindowLongADX11

Function pNewSetWindowLongADX11

Source/DX11VideoProcessor.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75pSetWindowLongA pOrigSetWindowLongADX11 = nullptr;
76static 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
88template <typename T>
89inline bool HookFunc(T** ppSystemFunction, PVOID pHookFunction)

Callers

nothing calls this directly

Calls 1

DLogFunction · 0.85

Tested by

no test coverage detected