Fixed a couple of file descriptor leaks.
[wine/multimedia.git] / include / metafile.h
blob9e3c7ff1dfdffb0ce4960fba04cc3662f7123fa7
1 /*
2 * Metafile definitions
4 * Copyright David W. Metcalfe, 1994
5 */
7 #ifndef __WINE_METAFILE_H
8 #define __WINE_METAFILE_H
10 #include "gdi.h"
11 #include "windef.h"
12 #include "wingdi.h"
14 /* GDI32 metafile object */
15 typedef struct
17 GDIOBJHDR header;
18 METAHEADER *mh;
19 } METAFILEOBJ;
21 #include "pshpack1.h"
22 typedef struct {
23 DWORD dw1, dw2, dw3;
24 WORD w4;
25 CHAR filename[0x100];
26 } METAHEADERDISK;
27 #include "poppack.h"
29 #define MFHEADERSIZE (sizeof(METAHEADER))
30 #define MFVERSION 0x300
31 #define META_EOF 0x0000
34 /* values of mtType in METAHEADER. Note however that the disk image of a disk
35 based metafile has mtType == 1 */
36 #define METAFILE_MEMORY 1
37 #define METAFILE_DISK 2
39 extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh);
40 extern HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh);
41 extern METAHEADER *MF_CreateMetaHeaderDisk(METAHEADER *mr, LPCSTR filename);
43 #endif /* __WINE_METAFILE_H */