Error in GetICMProfile() declaration
Paul J. Lucas
pauljlucas@mac.com
Fri Nov 11 23:55:00 GMT 2005
In /usr/include/w32api/wingdi.h, GetICMProfile() has its second argument
declared as a DWORD. According to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/icm/icm_5aed.asp
it should be declared as an LPDWORD. Indeed, in order to call this
function correctly, I current have to do something like:
HDC dc = GetDC( NULL );
char path[ MAX_PATH ];
DWORD len = sizeof path;
GetICMProfile( dc, (DWORD)&len, path );
So this really looks like a bug in the declaration.
- Paul
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list