Removed check for union semun; cleaned up a bit.
[wine/multimedia.git] / include / metafile.h
blobae2f952346b7ccf44197bbf0ba622dcc271c71a3
1 /*
2 * Metafile definitions
4 * Copyright David W. Metcalfe, 1994
5 */
7 #ifndef __WINE_METAFILE_H
8 #define __WINE_METAFILE_H
10 #include "wingdi.h"
11 #include "gdi.h"
13 /* GDI32 metafile object */
14 typedef struct
16 GDIOBJHDR header;
17 METAHEADER *mh;
18 } METAFILEOBJ;
20 #pragma pack(1)
21 typedef struct {
22 DWORD dw1, dw2, dw3;
23 WORD w4;
24 CHAR filename[0x100];
25 } METAHEADERDISK;
26 #pragma pack(4)
28 #define MFHEADERSIZE (sizeof(METAHEADER))
29 #define MFVERSION 0x300
30 #define META_EOF 0x0000
33 /* values of mtType in METAHEADER. Note however that the disk image of a disk
34 based metafile has mtType == 1 */
35 #define METAFILE_MEMORY 1
36 #define METAFILE_DISK 2
38 extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh);
39 extern HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh);
40 extern METAHEADER *MF_CreateMetaHeaderDisk(METAHEADER *mr, LPCSTR filename);
42 #endif /* __WINE_METAFILE_H */