mirror of https://github.com/status-im/consul.git
22 lines
326 B
Go
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
|
||
|
}
|