Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 11 Nov 2005 13:32:29 -0800 (PST) From: "Paul J. Lucas" To: cygwin AT cygwin DOT com Subject: Error in GetICMProfile() declaration Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes 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/