I think function you want is part of the ICM library included in Windows. (I haven't used these two functions... so good luck.) BOOL WINAPI GetICMProfile(
HDC hDC,
LPDWORD lpcbName,
LPTSTR lpszFilename
);orRemarksGetColorSpace obtains the handle to the input color space regardless of whether color management is enabled for the device context.HCOLORSPACE WINAPI GetColorSpace(
HDC hDC
);BOOL WINAPI GetLogColorSpace(
HCOLORSPACE hColorSpace,
LPLOGCOLORSPACE lpBuffer,
DWORD nSize
);Requirements Windows NT/2000/XP: Included in Windows 2000 and later. Windows 95/98/Me: Included in Windows 95 and later. Header: Declared in Wingdi.h. icm.h Library: Use Gdi32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows 2000/XP. Also supported by Microsoft Layer for Unicode.
----- Original Message ----- From: "Moretti, Giovanni" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 01, 2005 3:30 PM
Subject: [Lcms-user] Finding "Default" Windows monitor profile - how?



Hi

I've been using Delphi to create some colour managed objects using LCMS
(wonderful thanks Marti) and want to load the currently selected monitor
profile rather than use the generic "sRGB" profile, but I can't find
where Windows stores this information.

I have found a list of profiles in the registry at:

HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/Windows NT/ICM
which has subkeys:

 /mntr   <= Contains lots of monitor profiles
 /prtr
 /scnr
 /spac

The "mntr" subkey includes the currently selected monitor profile
there's no obvious indication of how it know which of the dozen or so is
actually the default.

I'm appreciate a pointer to where the various versions of Windows stores
the default profile, so I can load the correct file.

I'm using Windows XP,but would like the locations for Windows 2000 and
Windows 98SE (from memory it supported colour management) if possible.

Thanks
Giovanni
========================================================================
Giovanni Moretti  |  Institute of Information Sciences and Technology
Senior Lecturer   |  Massey University, Palmerston North, New Zealand
Computer Science  |  Ph 64-6-3505799x2474 == Fax 64-6-3502259 == ZL2BOI
------------------------------------------------------------------------
http://www-ist.massey.ac.nz/moretti      mailto:[EMAIL PROTECTED]


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to