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

Function pNewSetWindowPosDX11

Source/DX11VideoProcessor.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53pSetWindowPos pOrigSetWindowPosDX11 = nullptr;
54static BOOL WINAPI pNewSetWindowPosDX11(
55 _In_ HWND hWnd,
56 _In_opt_ HWND hWndInsertAfter,
57 _In_ int X,
58 _In_ int Y,
59 _In_ int cx,
60 _In_ int cy,
61 _In_ UINT uFlags)
62{
63 if (g_bPresent && g_hWnd == hWnd) {
64 DLog(L"call SetWindowPos() function during Present()");
65 uFlags |= SWP_ASYNCWINDOWPOS;
66 }
67 return pOrigSetWindowPosDX11(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);
68}
69
70typedef LONG(WINAPI* pSetWindowLongA)(
71 _In_ HWND hWnd,

Callers

nothing calls this directly

Calls 1

DLogFunction · 0.85

Tested by

no test coverage detected