From: Alexandre Julliard Subject: Re: [PATCH 2/3] dwmapi: Add basic tests for DwmGetWindowAttribute. Message-Id: <874ky431s6.fsf@wine> Date: Fri, 13 Dec 2019 12:25:45 +0100 In-Reply-To: ("Gabriel =?utf-8?Q?Iv=C4=83ncescu=22's?= message of "Fri, 6 Dec 2019 18:22:05 +0200") References: Gabriel Ivăncescu writes: > +START_TEST(dwmapi) > +{ > + HINSTANCE inst = GetModuleHandleA(NULL); > + HMODULE module; > + WNDCLASSA cls; > + > + module = LoadLibraryA("dwmapi.dll"); > + if (!module) > + { > + win_skip("dwmapi.dll not found\n"); > + return; > + } > + > + pDwmGetWindowAttribute = (void*)GetProcAddress(module, "DwmGetWindowAttribute"); There shouldn't be any reason not to link to it directly. -- Alexandre Julliard julliard@winehq.org