mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
b94e43303a
global memory handles). Fixed disk-based MetaFiles. Better separation between MetaFile playback and the metafiledrv.
44 lines
889 B
C
44 lines
889 B
C
/*
|
|
* Metafile definitions
|
|
*
|
|
* Copyright David W. Metcalfe, 1994
|
|
*/
|
|
|
|
#ifndef __WINE_METAFILE_H
|
|
#define __WINE_METAFILE_H
|
|
|
|
#include "wingdi.h"
|
|
#include "gdi.h"
|
|
|
|
/* GDI32 metafile object */
|
|
typedef struct
|
|
{
|
|
GDIOBJHDR header;
|
|
METAHEADER *mh;
|
|
} METAFILEOBJ;
|
|
|
|
#pragma pack(1)
|
|
typedef struct {
|
|
DWORD dw1, dw2, dw3;
|
|
WORD w4;
|
|
CHAR filename[0x100];
|
|
} METAHEADERDISK;
|
|
#pragma pack(4)
|
|
|
|
#define MFHEADERSIZE (sizeof(METAHEADER))
|
|
#define MFVERSION 0x300
|
|
#define META_EOF 0x0000
|
|
|
|
|
|
/* values of mtType in METAHEADER. Note however that the disk image of a disk
|
|
based metafile has mtType == 1 */
|
|
#define METAFILE_MEMORY 1
|
|
#define METAFILE_DISK 2
|
|
|
|
extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh);
|
|
extern HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh);
|
|
extern METAHEADER *MF_CreateMetaHeaderDisk(METAHEADER *mr, LPCSTR filename);
|
|
|
|
#endif /* __WINE_METAFILE_H */
|
|
|