1 #include <precomp.h> 2 #include <debug.h> 3 4 /* FUNCTIONS *****************************************************************/ 5 6 /* 7 * @implemented 8 */ 9 BOOL 10 WINAPI 11 GdiIsPlayMetafileDC(HDC hDC) 12 { 13 #if 0 14 PLDC pLDC = GdiGetLDC(hDC); 15 if ( pLDC ) 16 { 17 if ( pLDC->Flags & LDC_PLAY_MFDC ) return TRUE; 18 } 19 return FALSE; 20 #else 21 UNIMPLEMENTED; 22 return FALSE; 23 #endif 24 } 25 26 /* 27 * @implemented 28 */ 29 BOOL 30 WINAPI 31 GdiIsMetaFileDC(HDC hdc) 32 { 33 ULONG ulObjType; 34 35 ulObjType = GDI_HANDLE_GET_TYPE(hdc); 36 if (ulObjType == GDILoObjType_LO_METADC16_TYPE) 37 { 38 return TRUE; 39 } 40 41 if (ulObjType == GDILoObjType_LO_ALTDC_TYPE) 42 { 43 #if 0 44 PLDC pLDC = GdiGetLDC(hdc); 45 if ( !pLDC ) 46 { 47 SetLastError(ERROR_INVALID_HANDLE); 48 return FALSE; 49 } 50 if ( pLDC->iType == LDC_EMFLDC) return TRUE; 51 return FALSE; 52 #endif 53 return TRUE; 54 } 55 56 return FALSE; 57 } 58 59 /* 60 * @implemented 61 */ 62 BOOL 63 WINAPI 64 GdiIsMetaPrintDC(HDC hDC) 65 { 66 #if 0 67 if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC) 68 { 69 if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC) 70 return FALSE; 71 else 72 { 73 PLDC pLDC = GdiGetLDC(hDC); 74 if ( !pLDC ) 75 { 76 SetLastError(ERROR_INVALID_HANDLE); 77 return FALSE; 78 } 79 if ( pLDC->Flags & LDC_META_PRINT) return TRUE; 80 } 81 } 82 return FALSE; 83 #else 84 UNIMPLEMENTED; 85 return FALSE; 86 #endif 87 } 88 89 /* 90 * @unimplemented 91 */ 92 METAFILEPICT * 93 WINAPI 94 GdiCreateLocalMetaFilePict(HENHMETAFILE hmo) 95 { 96 UNIMPLEMENTED; 97 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 98 return 0; 99 } 100 101 /* 102 * @unimplemented 103 */ 104 HANDLE 105 WINAPI 106 GdiConvertMetaFilePict(HGLOBAL hMem) 107 { 108 UNIMPLEMENTED; 109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 110 return 0; 111 } 112