mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
54 lines
1.2 KiB
Go
54 lines
1.2 KiB
Go
// 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)
|
|
}
|