Some Windows API functions are only available in newer Windows versions. If we linked these functions
statically, then the executable would
no longer be able to run on "old" Windows versions.
The workaround is to import these "optional" functions
dynamically, at runtime, via
LoadLibrary() and
GetProcAddress(). This way, we can use the new API functions where available, but still continue
without them otherwise.
Specifically, the
DWM (Desktop Window Manager) is only available in Windows Vista an later. LameXP uses
DwmEnableBlurBehindWindow() from
Dwmapi.dll to enable fancy "Aero" effects on support OS versions.