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

Gabriel Ivăncescu gabrielopcode at gmail.com
Fri Dec 13 06:41:06 CST 2019


On 12/13/19 1:25 PM, Alexandre Julliard wrote:
> 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.
> 

As far as I know, it's not available on Windows XP, wouldn't it fail to 
even load in that case?



More information about the wine-devel mailing list