The first 2 parameters of WinMain are HINSTANCEs, not HANDLEs.
[wine] / include / enhmetafile.h
1 /*
2  * Enhanced Metafile definitions
3  *
4  */
5
6 #ifndef __WINE_ENHMETAFILE_H
7 #define __WINE_ENHMETAFILE_H
8
9 #include "gdi.h"
10 #include "windef.h"
11 #include "wingdi.h"
12
13   /* GDI32 enhanced metafile object */
14 typedef struct
15 {
16     GDIOBJHDR      header;
17     ENHMETAHEADER  *emh;
18     HFILE          hFile;      /* File handle if EMF is disk-based */
19     HANDLE         hMapping;   /* Mapping handle if EMF is disk-based */
20 } ENHMETAFILEOBJ;
21
22
23 extern HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, HFILE hFile,
24                                             HANDLE hMapping);
25
26
27 #endif   /* __WINE_ENHMETAFILE_H */
28