forked from systoolz/wocarlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wgdiplus.h
47 lines (38 loc) · 1.16 KB
/
wgdiplus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __WGDIPLUS_H
#define __WGDIPLUS_H
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push, 8)
typedef struct {
UINT32 GdiplusVersion;
LPVOID DebugEventCallback;
BOOL SuppressBackgroundThread;
BOOL SuppressExternalCodecs;
} GdiplusStartupInput;
#pragma pack(pop)
#define GdiplusStartupOutput VOID
typedef DWORD (WINAPI *GDIPLUSSTARTUPPROC)(ULONG_PTR*, GdiplusStartupInput*, GdiplusStartupOutput*);
typedef DWORD (WINAPI *GDIPLOADIMAGEFROMFILEPROC)(WCHAR*, void**);
typedef DWORD (WINAPI *GDIPCREATEHBITMAPFROMBITMAPPROC)(void*, HBITMAP*, DWORD);
typedef DWORD (WINAPI *GDIPDISPOSEIMAGEPROC)(void *);
typedef VOID (WINAPI *GDIPLUSSHUTDOWNPROC)(ULONG_PTR);
#pragma pack(push, 1)
typedef struct {
HINSTANCE hLibrary;
GDIPLUSSTARTUPPROC GdiplusStartup;
GDIPLOADIMAGEFROMFILEPROC GdipLoadImageFromFile;
GDIPCREATEHBITMAPFROMBITMAPPROC GdipCreateHBITMAPFromBitmap;
GDIPDISPOSEIMAGEPROC GdipDisposeImage;
GDIPLUSSHUTDOWNPROC GdiplusShutdown;
ULONG_PTR gdiplusToken;
GdiplusStartupInput gdiplusInfo;
} GDPLSPTR;
#pragma pack(pop)
GDPLSPTR *LoadGDIPlus(void);
void FreeGDIPlus(GDPLSPTR *gp);
#ifdef __cplusplus
}
#endif
#endif