first commit

This commit is contained in:
2025-08-22 17:42:23 -04:00
commit a6c09a5890
120 changed files with 11443 additions and 0 deletions

View File

@ -0,0 +1,45 @@
// Code generated by winrt-go-gen. DO NOT EDIT.
//go:build windows
//nolint:all
package foundation
import (
"syscall"
"unsafe"
"github.com/go-ole/go-ole"
)
const GUIDIReference string = "61c17706-2d65-11e0-9ae8-d48564015472"
const SignatureIReference string = "{61c17706-2d65-11e0-9ae8-d48564015472}"
type IReference struct {
ole.IInspectable
}
type IReferenceVtbl struct {
ole.IInspectableVtbl
GetValue uintptr
}
func (v *IReference) VTable() *IReferenceVtbl {
return (*IReferenceVtbl)(unsafe.Pointer(v.RawVTable))
}
func (v *IReference) GetValue() (unsafe.Pointer, error) {
var out unsafe.Pointer
hr, _, _ := syscall.SyscallN(
v.VTable().GetValue,
uintptr(unsafe.Pointer(v)), // this
uintptr(unsafe.Pointer(&out)), // out unsafe.Pointer
)
if hr != 0 {
return nil, ole.NewError(hr)
}
return out, nil
}