Hello Alastair, Thanks a lot. It is working great now. I will worry about dual monitore later :-)
Mitesh -----Original Message----- From: Alastair M. Robinson [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 10:28 PM To: Mitesh Cc: lcms-user@lists.sourceforge.net Subject: Re: [Lcms-user] ICC profile location Hi :) Mitesh wrote: > For the latter I think the ICC profiles are kept insinde > WINDOWS/System32/../../ but for me the important thing is knowing the name > of the ICC profile to which my monitor is associated with. Here's what I do in PhotoPrint's Profile Manager on Win32. This doesn't handle multiple-monitors though - how that should be handled I don't know. char displayprofilename[MAX_PATH]; HDC handle=GetDC(0); // Get the default screen handle DWORD dpsize=sizeof(displayprofilename)-1; if(GetICMProfile(handle,&dpsize,displayprofilename)) { cerr << "Got profile: " << displayprofilename << ", " << dpsize << " bytes." << endl; } else cerr << "No profile associated with default display." << endl; Hope this helps, -- Alastair M. Robinson No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.1/1512 - Release Date: 6/21/2008 9:27 AM ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user