Where can I download dwmapi.lib?

2k Views Asked by At

To use

DwmExtendFrameIntoClientArea

function we must have dwmapi.lib library.

I searched this library in my pc, but my pc doesn't find it.

So where can I download it?

Without it, my application doesn't compile properly; and shows me some errors:

undefined reference to DwmExtendFrameIntoClientArea
collect2.exe error: ld returned 1 exit status.

I'm programming in c language using TDM_GCC compilers.

Please help me.

1

There are 1 best solutions below

0
selbie On

It's part of the Windows SDK, which automatically gets installed with Visual Studio.

If you are you using a different set of compiler and tools, you can get the latest Windows SDK (all the headers and libs you need) from: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk