Importing dwmapi.dll
Ian Martinez
olivewarbler at gmail.com
Sat Sep 15 17:28:12 PDT 2012
I'm new to D(really new, just learned it today) and I'm making a
little program that I want to extend the aero glass into I've
written this:
struct MARGINS {
int cxLeftWidth;
int cxRightWidth;
int cyTopHeight;
int cyBottomHeight;
}
HRESULT extendaeroglass(HWND handle,int left,int right,int
top,int bottom){
MARGINS aeromargins = {left,right,top,bottom};
HRESULT hr = IDOK;
hr = DwmExtendFrameIntoClientArea(handle,aeromargins);
return hr;
}
But I can't seem to figure out how to import dwmapi, I googled
and there was something that said I'd have to translate the
header file(dwmapi.h) which is 532 lines long, which I can't do
that well because I'm not that good at D and my C/C++ is even
worse and another page said I need to include the .lib
file(converted from COFF) in it, which I did and it still won't
work:
Error:undefined identifier DwmExtendFrameIntoClientArea
Is there any easier way to import a Win32 dll like dwmapi? Any
help will be GREATLY appreciated because I have been searching
for hours.
More information about the Digitalmars-d
mailing list