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

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

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

File size: 1.3 KB
RevLine 
[13]1' GdiPlusInit.ab
2
3#ifndef __GDIPLUSINIT_AB__
4#define __GDIPLUSINIT_AB__
5
[241]6Namespace Gdiplus
7
[13]8Enum DebugEventLevel
[77]9 DebugEventLevelFatal
10 DebugEventLevelWarning
[13]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
[241]38Declare Function GdiplusStartup Lib "Gdiplus.dll" (
[13]39 /*OUT*/ ByRef token As ULONG_PTR,
40 ByRef input As GdiplusStartupInput,
41 /*OUT*/ ByVal output As *GdiplusStartupOutput) As Status
42
[241]43Declare Sub GdiplusShutdown Lib "Gdiplus.dll" (ByVal token As ULONG_PTR)
[13]44
[241]45End Namespace
46
[13]47#endif '__GDIPLUSINIT_AB__
Note: See TracBrowser for help on using the repository browser.