forked from Netpas/win
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdiplus.go
53 lines (43 loc) · 1.24 KB
/
gdiplus.go
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
48
49
50
51
52
53
// This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
// go run internal/cmd/gen/gen.go
// +build windows
package win
import (
"unsafe"
)
var (
// Library
libgdiplus uintptr
// Functions
gdiplusNotificationHook uintptr
gdiplusNotificationUnhook uintptr
gdiplusStartup uintptr
)
func init() {
// Library
libgdiplus = doLoadLibrary("gdiplus.dll")
// Functions
gdiplusNotificationHook = doGetProcAddress(libgdiplus, "GdiplusNotificationHook")
gdiplusNotificationUnhook = doGetProcAddress(libgdiplus, "GdiplusNotificationUnhook")
gdiplusStartup = doGetProcAddress(libgdiplus, "GdiplusStartup")
}
func GdiplusNotificationHook(token *ULONG_PTR) GpStatus {
ret1 := syscall3(gdiplusNotificationHook, 1,
uintptr(unsafe.Pointer(token)),
0,
0)
return GpStatus(ret1)
}
func GdiplusNotificationUnhook(token *uint32) {
syscall3(gdiplusNotificationUnhook, 1,
uintptr(unsafe.Pointer(token)),
0,
0)
}
func GdiplusStartup(token *ULONG_PTR, input /*const*/ *GdiplusStartupInput, output *GdiplusStartupOutput) Status {
ret1 := syscall3(gdiplusStartup, 3,
uintptr(unsafe.Pointer(token)),
uintptr(unsafe.Pointer(input)),
uintptr(unsafe.Pointer(output)))
return Status(ret1)
}