MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / GetDpiForWindowDynamic

Function GetDpiForWindowDynamic

window.c:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88typedef UINT (WINAPI *GetDpiForWindowFunc)(HWND hwnd);
89
90UINT GetDpiForWindowDynamic(HWND hwnd)
91{
92 GetDpiForWindowFunc GetDpiForWindowProc = NULL;
93 HMODULE user32 = GetModuleHandleA("user32.dll");
94
95 if(user32)
96 {
97 GetDpiForWindowProc = (GetDpiForWindowFunc)GetProcAddress(user32, "GetDpiForWindow");
98 }
99
100 if(GetDpiForWindowProc)
101 {
102 return GetDpiForWindowProc(hwnd);
103 }
104
105 return 0;
106}
107
108void softgpu_window_create(HWND hwnd, LPARAM lParam)
109{

Callers 1

softgpu_window_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected