Embed:
(wiki syntax)
Show/hide line numbers
gdiplusinit.h
00001 /* 00002 * gdiplusinit.h 00003 * 00004 * GDI+ Initialization 00005 * 00006 * This file is part of the w32api package. 00007 * 00008 * Contributors: 00009 * Created by Markus Koenig <markus@stber-koenig.de> 00010 * 00011 * THIS SOFTWARE IS NOT COPYRIGHTED 00012 * 00013 * This source code is offered for use in the public domain. You may 00014 * use, modify or distribute it freely. 00015 * 00016 * This code is distributed in the hope that it will be useful but 00017 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00018 * DISCLAIMED. This includes but is not limited to warranties of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 * 00021 */ 00022 00023 #ifndef __GDIPLUS_INIT_H 00024 #define __GDIPLUS_INIT_H 00025 #if __GNUC__ >=3 00026 #pragma GCC system_header 00027 #endif 00028 00029 typedef struct GdiplusStartupInput { 00030 UINT32 GdiplusVersion; 00031 DebugEventProc DebugEventCallback; 00032 BOOL SuppressBackgroundThread; 00033 BOOL SuppressExternalCodecs; 00034 00035 #ifdef __cplusplus 00036 GdiplusStartupInput(DebugEventProc debugEventCallback = NULL, 00037 BOOL suppressBackgroundThread = FALSE, 00038 BOOL suppressExternalCodecs = FALSE): 00039 GdiplusVersion(1), 00040 DebugEventCallback(debugEventCallback), 00041 SuppressBackgroundThread(suppressBackgroundThread), 00042 SuppressExternalCodecs(suppressExternalCodecs) {} 00043 #endif /* __cplusplus */ 00044 } GdiplusStartupInput; 00045 00046 typedef GpStatus WINGDIPAPI (*NotificationHookProc)(ULONG_PTR *token); 00047 typedef VOID WINGDIPAPI (*NotificationUnhookProc)(ULONG_PTR token); 00048 00049 typedef struct GdiplusStartupOutput { 00050 NotificationHookProc NotificationHook; 00051 NotificationUnhookProc NotificationUnhook; 00052 00053 #ifdef __cplusplus 00054 GdiplusStartupOutput(): 00055 NotificationHook(NULL), 00056 NotificationUnhook(NULL) {} 00057 #endif /* __cplusplus */ 00058 } GdiplusStartupOutput; 00059 00060 #ifdef __cplusplus 00061 extern "C" { 00062 #endif 00063 00064 GpStatus WINGDIPAPI GdiplusStartup(ULONG_PTR*,GDIPCONST GdiplusStartupInput*,GdiplusStartupOutput*); 00065 VOID WINGDIPAPI GdiplusShutdown(ULONG_PTR); 00066 GpStatus WINGDIPAPI GdiplusNotificationHook(ULONG_PTR*); 00067 VOID WINGDIPAPI GdiplusNotificationUnhook(ULONG_PTR); 00068 00069 #ifdef __cplusplus 00070 } /* extern "C" */ 00071 #endif 00072 00073 00074 #endif /* __GDIPLUS_INIT_H */
Generated on Tue Jul 12 2022 19:59:54 by
1.7.2