Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

globals.c

Go to the documentation of this file.
00001 /****************************Module*Header******************************\ 00002 * Module Name: GLOBALS.C 00003 * 00004 * Module Descripton: This file contains all the global variables 00005 * 00006 * Warnings: 00007 * 00008 * Issues: 00009 * 00010 * Public Routines: 00011 * 00012 * Created: 6 May 1996 00013 * Author: Srinivasan Chandrasekar [srinivac] 00014 * 00015 * Copyright (c) 1996, 1997 Microsoft Corporation 00016 \***********************************************************************/ 00017 00018 #include "mscms.h" 00019 00020 00021 #ifdef DBG 00022 00023 // 00024 // Global variable used for debugging purposes 00025 // 00026 00027 DWORD gdwDebugControl = DBG_LEVEL_WARNING; 00028 00029 #endif 00030 00031 // 00032 // These are for loading & unloading CMMs and maintaining the CMM objects 00033 // in a chain in memory 00034 // 00035 00036 PCMMOBJ gpCMMChain = NULL; // the list of used CMM by application 00037 PCMMOBJ gpPreferredCMM = NULL; // application specified preferred CMM 00038 00039 char *gszCMMReqFns[] = { 00040 "CMGetInfo", 00041 #ifdef UNICODE 00042 "CMCreateTransformW", 00043 "CMCreateTransformExtW", 00044 #else 00045 "CMCreateTransform", 00046 "CMCreateTransformExt", 00047 #endif 00048 "CMDeleteTransform", 00049 "CMTranslateRGBs", 00050 "CMTranslateRGBsExt", 00051 "CMCheckRGBs", 00052 "CMCreateMultiProfileTransform", 00053 "CMTranslateColors", 00054 "CMCheckColors" 00055 }; 00056 00057 char *gszCMMOptFns[] = { 00058 #ifdef UNICODE 00059 "CMCreateProfileW", 00060 #else 00061 "CMCreateProfile", 00062 #endif 00063 "CMGetNamedProfileInfo", 00064 "CMConvertColorNameToIndex", 00065 "CMConvertIndexToColorName", 00066 "CMCreateDeviceLinkProfile", 00067 "CMIsProfileValid" 00068 }; 00069 00070 char *gszPSFns[] = { 00071 "CMGetPS2ColorSpaceArray", 00072 "CMGetPS2ColorRenderingIntent", 00073 "CMGetPS2ColorRenderingDictionary" 00074 }; 00075 00076 // 00077 // These are for registry paths 00078 // 00079 00080 #if !defined(_WIN95_) 00081 TCHAR gszMonitorGUID[] = __TEXT("{4D36E96E-E325-11CE-BFC1-08002BE10318}"); 00082 TCHAR gszDeviceClass[] = __TEXT("SYSTEM\\CurrentControlSet\\Control\\Class\\"); 00083 TCHAR gszICMatcher[] = __TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ICM\\ICMatchers"); 00084 TCHAR gszICMRegPath[] = __TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ICM"); 00085 #else 00086 TCHAR gszICMatcher[] = __TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ICM\\ICMatchers"); 00087 TCHAR gszICMRegPath[] = __TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ICM"); 00088 TCHAR gszSetupPath[] = __TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup"); 00089 TCHAR gszRegPrinter[] = __TEXT("System\\CurrentControlSet\\Control\\Print\\Printers"); 00090 TCHAR gszICMDir[] = __TEXT("ICMPath"); 00091 TCHAR gszPrinterData[] = __TEXT("PrinterDriverData"); 00092 #endif 00093 00094 TCHAR gszPrinter[] = __TEXT("prtr"); 00095 TCHAR gszMonitor[] = __TEXT("mntr"); 00096 TCHAR gszScanner[] = __TEXT("scnr"); 00097 TCHAR gszLink[] = __TEXT("link"); 00098 TCHAR gszAbstract[] = __TEXT("abst"); 00099 TCHAR gszDefault[] = __TEXT("default"); 00100 TCHAR gszFriendlyName[] = __TEXT("FriendlyName"); 00101 TCHAR gszDeviceName[] = __TEXT("DriverDesc"); 00102 TCHAR gszDisplay[] = __TEXT("DISPLAY"); 00103 00104 // 00105 // Default CMM dll 00106 // 00107 00108 TCHAR gszDefaultCMM[] = __TEXT("icm32.dll"); 00109 00110 // 00111 // Synchronization objects 00112 // 00113 00114 CRITICAL_SECTION critsec; 00115 00116 // 00117 // Miscellaneous 00118 // 00119 00120 TCHAR gszColorDir[] = __TEXT("COLOR"); 00121 TCHAR gszBackslash[] = __TEXT("\\"); 00122 00123 // 00124 // Wellknown profile support 00125 // 00126 00127 TCHAR gszRegisteredProfiles[] = __TEXT("RegisteredProfiles"); 00128 TCHAR gszsRGBProfile[] = __TEXT("sRGB Color Space Profile.icm"); 00129 00130 TCHAR gszICMProfileListKey[] = __TEXT("CopyFiles\\ICM"); 00131 TCHAR gszICMProfileListValue[] = __TEXT("ICMProfile"); 00132 00133 TCHAR gszFiles[] = __TEXT("Files"); 00134 TCHAR gszDirectory[] = __TEXT("Directory"); 00135 TCHAR gszModule[] = __TEXT("Module"); 00136 TCHAR gszMSCMS[] = __TEXT("mscms.dll"); 00137 00138 TCHAR gszICMDeviceDataKey[] = __TEXT("ICMData"); 00139 TCHAR gszICMProfileEnumMode[] = __TEXT("ProfileEnumMode"); 00140 00141 // 00142 // Scanner support 00143 // 00144 00145 TCHAR gszStiDll[] = __TEXT("sti.dll"); 00146 char gszStiCreateInstance[] = "StiCreateInstance"; 00147

Generated on Sat May 15 19:40:13 2004 for test by doxygen 1.3.7