123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #ifndef _GDIPLUSINIT_H
- #define _GDIPLUSINIT_H
- enum DebugEventLevel
- {
- DebugEventLevelFatal,
- DebugEventLevelWarning
- };
- typedef VOID (WINAPI *DebugEventProc)(DebugEventLevel level, CHAR *message);
- typedef Status (WINAPI *NotificationHookProc)(OUT ULONG_PTR *token);
- typedef VOID (WINAPI *NotificationUnhookProc)(ULONG_PTR token);
- struct GdiplusStartupInput
- {
- UINT32 GdiplusVersion;
- DebugEventProc DebugEventCallback;
- BOOL SuppressBackgroundThread;
-
- BOOL SuppressExternalCodecs;
-
-
- GdiplusStartupInput(
- DebugEventProc debugEventCallback = NULL,
- BOOL suppressBackgroundThread = FALSE,
- BOOL suppressExternalCodecs = FALSE)
- {
- GdiplusVersion = 1;
- DebugEventCallback = debugEventCallback;
- SuppressBackgroundThread = suppressBackgroundThread;
- SuppressExternalCodecs = suppressExternalCodecs;
- }
- };
- struct GdiplusStartupOutput
- {
-
-
-
-
-
-
-
-
-
- NotificationHookProc NotificationHook;
- NotificationUnhookProc NotificationUnhook;
- };
- extern "C" Status WINAPI GdiplusStartup(
- OUT ULONG_PTR *token,
- const GdiplusStartupInput *input,
- OUT GdiplusStartupOutput *output);
- extern "C" VOID WINAPI GdiplusShutdown(ULONG_PTR token);
- #endif
|