}
/*
- * @unimplemented
+ * @implemented
*/
HANDLE
WINAPI
DWORD *pcFonts
)
{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ if ( pbFont && cbFont && pcFonts)
+ {
+ return NtGdiAddFontMemResourceEx(pbFont, cbFont, NULL, 0, pcFonts);
+ }
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return NULL;
}
/*
}
/*
- * @unimplemented
+ * @implemented
*/
BOOL
WINAPI
-GdiIsPlayMetafileDC(HDC hdc)
+GdiIsPlayMetafileDC(HDC hDC)
{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ PLDC pLDC = GdiGetLDC(hDC);
+ if ( pLDC )
+ {
+ if ( pLDC->Flags & LDC_PLAY_MFDC ) return TRUE;
+ }
+ return FALSE;
}
/*
WINAPI
RemoveFontMemResourceEx(HANDLE fh)
{
- BOOL retValue=0;
-
- if (fh)
- {
- retValue = NtGdiRemoveFontMemResourceEx(fh);
- }
- else
- {
- SetLastError(ERROR_INVALID_PARAMETER);
- }
- return retValue;
+ if (fh)
+ {
+ return NtGdiRemoveFontMemResourceEx(fh);
+ }
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
}
/*