40 HCOLORSPACE hColorSpace)
111 for (
i = 0;
i < 256;
i++ )
113 int NewValue =
i * 256;
135 if (!Ramp)
return FALSE;
185 IN HCOLORSPACE hColorSpace)
197 pdcattr = pDC->pdcattr;
212 if (pDC->dclevel.pColorSpace)
217 pDC->dclevel.pColorSpace = pCS;
250 if(!palGDI)
return FALSE;
251 palPtr = (
PALOBJ*) palGDI;
256 palGDI->
flFlags &= ~PAL_GAMMACORRECTION;
263 palGDI->
hPDev = hPDev;
290 if (!hPDev)
return FALSE;
320 for (
i = 0;
i < 256;
i++)
322 R = Ramp->
Red[
i] / 256;
337 if (
Test)
return Ret;
342 if ((
R != (IcmGR * 256)) ||
343 (
G != (IcmGR * 256)) ||
344 (
B != (IcmGR * 256)) ) TstPeak =
FALSE;
375 if (!Ramp)
return FALSE;
#define G(r, i, a, b, c, d)
#define COLORSPACEOBJ_AllocCSWithHandle()
#define COLORSPACEOBJ_UnlockCS(pCS)
#define COLORSPACEOBJ_LockCS(hCS)
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
FORCEINLINE PDC DC_LockDc(HDC hdc)
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
#define ExAllocatePoolWithTag(hernya, size, tag)
#define RtlCompareMemory(s1, s2, l)
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
#define GDI_HANDLE_GET_TYPE(h)
@ GDILoObjType_LO_ICMLCS_TYPE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define EXCEPTION_EXECUTE_HANDLER
struct _PDEVOBJ * PPDEVOBJ
#define ExFreePoolWithTag(_P, _T)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiSetColorSpace(_In_ HDC hdc, _In_ HCOLORSPACE hColorSpace)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiCreateColorSpace(_In_ PLOGCOLORSPACEEXW pLogColorSpace)
@ PDEV_DRIVER_PUNTED_CALL
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
LOGCOLORSPACEW lcsColorSpace
PFN_DrvSetPalette SetPalette
PFN_DrvIcmSetDeviceGammaRamp IcmSetDeviceGammaRamp
DRIVER_FUNCTIONS DriverFunctions
#define RtlCopyMemory(Destination, Source, Length)
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
VOID NTAPI GDIOBJ_vDereferenceObject(POBJ pobj)
BOOL NTAPI GreDeleteObject(HGDIOBJ hobj)
HCOLORSPACE FASTCALL IntGdiCreateColorSpace(PLOGCOLORSPACEEXW pLogColorSpace)
HCOLORSPACE hStockColorSpace
INT APIENTRY NtGdiSetIcmMode(HDC hDC, ULONG nCommand, ULONG EnableICM)
BOOL APIENTRY NtGdiSetDeviceGammaRamp(HDC hDC, LPVOID Ramp)
BOOL FASTCALL IntGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp)
BOOL FASTCALL UpdateDeviceGammaRamp(HDEV hPDev)
BOOL APIENTRY NtGdiGetDeviceGammaRamp(HDC hDC, LPVOID Ramp)
BOOL APIENTRY NtGdiDeleteColorSpace(IN HANDLE hColorSpace)
BOOL FASTCALL IntGdiDeleteColorSpace(HCOLORSPACE hColorSpace)
BOOL FASTCALL IntSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Test)
#define PALETTE_ShareLockPalette(hpal)
#define PALETTE_ShareUnlockPalette(ppal)
#define GCAPS2_CHANGEGAMMARAMP
#define IGRF_RGB_256WORDS
_In_ LPLOGCOLORSPACEW pLogColorSpace
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)