delegate

package
v0.0.0-...-c45669f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	QueryInterface uintptr
	AddRef         uintptr
	Release        uintptr
	Invoke         uintptr
}

Callbacks contains the syscalls registered on Windows.

func RegisterCallbacks

func RegisterCallbacks(ptr unsafe.Pointer, inst Delegate) *Callbacks

RegisterCallbacks adds the given pointer and the Delegate it points to to our instances. This is required to redirect received callbacks to the correct object instance. The function returns the callbacks to use when creating a new delegate instance.

type Delegate

type Delegate interface {
	GetIID() *ole.GUID
	Invoke(instancePtr, rawArgs0, rawArgs1, rawArgs2, rawArgs3, rawArgs4, rawArgs5, rawArgs6, rawArgs7, rawArgs8 unsafe.Pointer) uintptr
	AddRef() uint64
	Release() uint64
}

Delegate represents a WinRT delegate class.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL