use LoadLibrary

This commit is contained in:
FunkyFr3sh 2021-02-03 20:50:14 +01:00
parent d8530d8cf6
commit 76891cb766
2 changed files with 13 additions and 5 deletions

View file

@ -33,6 +33,8 @@ typedef struct fps_limiter
D3DKMT_WAITFORVERTICALBLANKEVENT vblank_event;
D3DKMT_OPENADAPTERFROMHDC adapter;
D3DKMT_CLOSEADAPTER close_adapter;
HMODULE gdi32_dll;
HMODULE dwmapi_dll;
HRESULT(WINAPI* DwmFlush)(VOID);
HRESULT(WINAPI* DwmIsCompositionEnabled)(BOOL*);
NTSTATUS(WINAPI* D3DKMTWaitForVerticalBlankEvent)(const D3DKMT_WAITFORVERTICALBLANKEVENT* Arg1);