#include <precomp.h>
#include <debug.h>
Go to the source code of this file.
|
| HCOLORSPACE FASTCALL | IntCreateColorSpaceW (LPLOGCOLORSPACEW lplcpw, BOOL Ascii) |
| |
| HCOLORSPACE WINAPI | CreateColorSpaceW (LPLOGCOLORSPACEW lplcpw) |
| |
| HCOLORSPACE WINAPI | CreateColorSpaceA (LPLOGCOLORSPACEA lplcpa) |
| |
| HCOLORSPACE WINAPI | GetColorSpace (HDC hDC) |
| |
| HCOLORSPACE WINAPI | SetColorSpace (HDC hDC, HCOLORSPACE hCS) |
| |
| BOOL WINAPI | GetICMProfileA (HDC hdc, LPDWORD pBufSize, LPSTR pszFilename) |
| |
| BOOL WINAPI | GetICMProfileW (HDC hdc, LPDWORD size, LPWSTR filename) |
| |
| BOOL WINAPI | SetICMProfileA (HDC a0, LPSTR a1) |
| |
| BOOL WINAPI | SetICMProfileW (HDC a0, LPWSTR a1) |
| |
| int WINAPI | EnumICMProfilesA (HDC a0, ICMENUMPROCA a1, LPARAM a2) |
| |
| int WINAPI | EnumICMProfilesW (HDC hDC, ICMENUMPROCW lpEnumICMProfilesFunc, LPARAM lParam) |
| |
| BOOL WINAPI | UpdateICMRegKeyA (DWORD a0, LPSTR a1, LPSTR a2, UINT a3) |
| |
| BOOL WINAPI | UpdateICMRegKeyW (DWORD a0, LPWSTR a1, LPWSTR a2, UINT a3) |
| |
| int WINAPI | SetICMMode (HDC hdc, int iEnableICM) |
| |
| HBITMAP WINAPI | GdiConvertBitmapV5 (HBITMAP in_format_BitMap, HBITMAP src_BitMap, INT bpp, INT unuse) |
| |
◆ NDEBUG
Definition at line 3 of file icm.c.
◆ CreateColorSpaceA()
Definition at line 46 of file icm.c.
49{
51
55 {
58 }
59
69
75
77}
ACPI_SIZE strlen(const char *String)
_Use_decl_annotations_ NTSTATUS NTAPI RtlMultiByteToUnicodeN(_Out_ PWCH UnicodeString, _In_ ULONG UnicodeSize, _Out_opt_ PULONG ResultSize, _In_ PCCH MbString, _In_ ULONG MbSize)
CIEXYZTRIPLE lcsEndpoints
CHAR lcsFilename[MAX_PATH]
WCHAR lcsFilename[MAX_PATH]
CIEXYZTRIPLE lcsEndpoints
HCOLORSPACE FASTCALL IntCreateColorSpaceW(LPLOGCOLORSPACEW lplcpw, BOOL Ascii)
#define ERROR_INVALID_COLORSPACE
struct tagLOGCOLORSPACEW LOGCOLORSPACEW
◆ CreateColorSpaceW()
Definition at line 33 of file icm.c.
◆ EnumICMProfilesA()
Definition at line 228 of file icm.c.
233{
234
235
236
237
238
239
240
241
242
243
246 return 0;
247}
#define ERROR_CALL_NOT_IMPLEMENTED
◆ EnumICMProfilesW()
Definition at line 255 of file icm.c.
260{
261
262
263
264
265
266
267
268
269
272 return 0;
273}
◆ GdiConvertBitmapV5()
Definition at line 337 of file icm.c.
342{
343
344
345
346
347
348
349
350
352}
◆ GetColorSpace()
Definition at line 84 of file icm.c.
85{
87
89 {
92 }
93 return pDc_Attr->hColorSpace;
94}
#define ERROR_INVALID_HANDLE
#define GDI_OBJECT_TYPE_DC
Referenced by SetColorSpace().
◆ GetICMProfileA()
Definition at line 137 of file icm.c.
142{
146
147 if (!
hdc || !pBufSize)
return FALSE;
148
150 {
152
153 if (!pszFilename)
154 {
157 }
158
159 if (*pBufSize >=
len)
160 {
163 }
166 }
167
169}
#define ERROR_INSUFFICIENT_BUFFER
#define WideCharToMultiByte
static const WCHAR filenameW[]
BOOL WINAPI GetICMProfileW(_In_ HDC hdc, _Inout_ LPDWORD pBufSize, _Out_writes_opt_(*pBufSize) LPWSTR pszFilename)
◆ GetICMProfileW()
◆ IntCreateColorSpaceW()
Definition at line 9 of file icm.c.
13{
15
19 {
22 }
24
26}
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiCreateColorSpace(_In_ PLOGCOLORSPACEEXW pLogColorSpace)
LOGCOLORSPACEW lcsColorSpace
#define RtlCopyMemory(Destination, Source, Length)
Referenced by CreateColorSpaceA(), and CreateColorSpaceW().
◆ SetColorSpace()
| HCOLORSPACE WINAPI SetColorSpace |
( |
HDC |
hDC, |
|
|
HCOLORSPACE |
hCS |
|
) |
| |
Definition at line 102 of file icm.c.
106{
108
110 {
112 }
113#if 0
115 {
117 if ( !pLDC )
118 {
121 }
123 {
125 }
126 }
127#endif
129}
PLDC FASTCALL GdiGetLDC(HDC hDC)
#define GDI_HANDLE_GET_TYPE(h)
@ GDILoObjType_LO_METADC16_TYPE
@ GDILoObjType_LO_DC_TYPE
__kernel_entry W32KAPI BOOL APIENTRY NtGdiSetColorSpace(_In_ HDC hdc, _In_ HCOLORSPACE hColorSpace)
HCOLORSPACE WINAPI GetColorSpace(HDC hDC)
◆ SetICMMode()
Definition at line 316 of file icm.c.
320{
321
323 if (iEnableICM ==
ICM_ON)
return 0;
325
328 return 0;
329}
◆ SetICMProfileA()
◆ SetICMProfileW()
◆ UpdateICMRegKeyA()
◆ UpdateICMRegKeyW()