This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]