1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-24 02:24:08 +00:00
fiber/internal/go-ole/iprovideclassinfo_windows.go
2020-09-27 22:56:31 +02:00

22 lines
326 B
Go

// +build windows
package ole
import (
"syscall"
"unsafe"
)
func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) {
hr, _, _ := syscall.Syscall(
disp.VTable().GetClassInfo,
2,
uintptr(unsafe.Pointer(disp)),
uintptr(unsafe.Pointer(&tinfo)),
0)
if hr != 0 {
err = NewError(hr)
}
return
}