2013-01-24 23:00:42 +00:00
|
|
|
#include <precomp.h>
|
2007-08-04 21:02:55 +00:00
|
|
|
|
2008-01-05 17:35:23 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
2014-10-28 21:09:01 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
IsValidEnhMetaRecord(
|
|
|
|
DWORD a0,
|
|
|
|
DWORD a1
|
|
|
|
)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
IsValidEnhMetaRecordOffExt(
|
|
|
|
DWORD a0,
|
|
|
|
DWORD a1,
|
|
|
|
DWORD a2,
|
|
|
|
DWORD a3
|
|
|
|
)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
HENHMETAFILE
|
|
|
|
WINAPI
|
|
|
|
GdiConvertEnhMetaFile(HENHMETAFILE hmf)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
HENHMETAFILE
|
|
|
|
WINAPI
|
|
|
|
GdiCreateLocalEnhMetaFile(HENHMETAFILE hmo)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2014-12-29 14:25:30 +00:00
|
|
|
* @implemented
|
2014-10-28 21:09:01 +00:00
|
|
|
*/
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
GdiComment(
|
2014-12-29 14:25:30 +00:00
|
|
|
_In_ HDC hdc,
|
|
|
|
_In_ UINT cbSize,
|
|
|
|
_In_ const BYTE *lpData)
|
2014-10-28 21:09:01 +00:00
|
|
|
{
|
2014-12-29 14:25:30 +00:00
|
|
|
if (GDI_HANDLE_GET_TYPE(hdc) != GDILoObjType_LO_ALTDC_TYPE)
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
HANDLE_METADC(BOOL, GdiComment, FALSE, hdc, cbSize, lpData);
|
|
|
|
|
|
|
|
return TRUE;
|
2014-10-28 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
UINT
|
|
|
|
WINAPI
|
|
|
|
GetEnhMetaFilePixelFormat(
|
|
|
|
HENHMETAFILE hemf,
|
|
|
|
UINT cbBuffer,
|
|
|
|
PIXELFORMATDESCRIPTOR *ppfd
|
|
|
|
)
|
|
|
|
{
|
|
|
|
ENHMETAHEADER pemh;
|
|
|
|
|
|
|
|
if(GetEnhMetaFileHeader(hemf, sizeof(ENHMETAHEADER), &pemh))
|
|
|
|
{
|
|
|
|
if(pemh.bOpenGL)
|
|
|
|
{
|
|
|
|
if(pemh.cbPixelFormat)
|
|
|
|
{
|
|
|
|
memcpy((void*)ppfd, UlongToPtr(pemh.offPixelFormat), cbBuffer );
|
|
|
|
return(pemh.cbPixelFormat);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return(0);
|
|
|
|
}
|