Example #1
0
        public ushort SetMetaFileBits(ushort handle)
        {
            if (handle == 0)
            {
                return(0);
            }

            // Get size of global allocation
            uint size = _machine.GlobalHeap.Size(handle);

            // Get pointer
            var hp = _machine.GlobalHeap.GetHeapPointer(BitUtils.MakeDWord(0, handle), false);

            var hEnhMetaFile = SetMetaFileBitsEx(size, hp);

            return(HENHMETAFILE.To16(hEnhMetaFile));
        }
Example #2
0
 public static ushort To16(HENHMETAFILE hObj)
 {
     return(Map.To16(hObj.value));
 }
Example #3
0
 public static extern bool DeleteMetaFile([Destroyed] HENHMETAFILE hMetaFile);
Example #4
0
 public static extern bool PlayMetaFile(HDC hDC, HENHMETAFILE hMetaFile);