[PATCH 2/3] dwmapi: Add basic tests for DwmGetWindowAttribute.

Alexandre Julliard julliard at winehq.org
Fri Dec 13 05:25:45 CST 2019


Gabriel Ivăncescu <gabrielopcode at gmail.com> 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 at winehq.org



More information about the wine-devel mailing list