source: branch/egtra-gdiplus/GdiPlusInit.ab@ 686

Last change on this file since 686 was 241, checked in by イグトランス (egtra), 18 years ago

GDI+に対して名前空間で囲ったものの、現在コンパイルできないため分岐させておく

File size: 1.3 KB
Line 
1' GdiPlusInit.ab
2
3#ifndef __GDIPLUSINIT_AB__
4#define __GDIPLUSINIT_AB__
5
6Namespace Gdiplus
7
8Enum DebugEventLevel
9 DebugEventLevelFatal
10 DebugEventLevelWarning
11End Enum
12
13Typedef DebugEventProc = *Sub(level As DebugEventLevel, message As *Char)
14
15Typedef NotificationHookProc = *Function(/*OUT*/ ByRef token As ULONG_PTR) As Status
16TypeDef NotificationUnhookProc = *Sub(ByVal token As ULONG_PTR)
17
18Class GdiplusStartupInput
19Public
20 GdiplusVersion As DWord
21 DebugEventCallback As VoidPtr
22 SuppressBackgroundThread As BOOL
23 SuppressExternalCodecs As BOOL
24
25 Sub GdiplusStartupInput()(debugEventCallback As DebugEventProc, suppressBackgroundThread As BOOL, suppressExternalCodecs As BOOL)
26 GdiplusVersion = 1
27 DebugEventCallback = debugEventCallback
28 SuppressBackgroundThread = suppressBackgroundThread
29 SuppressExternalCodecs = suppressExternalCodecs
30 End Sub
31End Class
32
33Type Align(8) GdiplusStartupOutput
34 NotificationHook As NotificationHookProc
35 NotificationUnhook As NotificationUnhookProc
36End Type
37
38Declare Function GdiplusStartup Lib "Gdiplus.dll" (
39 /*OUT*/ ByRef token As ULONG_PTR,
40 ByRef input As GdiplusStartupInput,
41 /*OUT*/ ByVal output As *GdiplusStartupOutput) As Status
42
43Declare Sub GdiplusShutdown Lib "Gdiplus.dll" (ByVal token As ULONG_PTR)
44
45End Namespace
46
47#endif '__GDIPLUSINIT_AB__
Note: See TracBrowser for help on using the repository browser.