This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Error in GetICMProfile() declaration
- From: "Paul J. Lucas" <pauljlucas at mac dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 11 Nov 2005 13:32:29 -0800 (PST)
- Subject: Error in GetICMProfile() declaration
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/