1 2 3 4 5 6 7 8 9
// +build windows package sys_windows foreign import dwmapi "system:Dwmapi.lib" @(default_calling_convention="stdcall") foreign dwmapi { DwmFlush :: proc() -> HRESULT --- }