oleutil

package
v2.1000.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMethod

func CallMethod(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT, err error)

CallMethod calls method on IDispatch with parameters.

func ClassIDFrom

func ClassIDFrom(programID string) (classID *ole.GUID, err error)

ClassIDFrom retrieves class ID whether given is program ID or application string.

func ConnectObject

func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error)

ConnectObject creates a connection point between two services for communication.

func CreateObject

func CreateObject(programID string) (unknown *ole.IUnknown, err error)

CreateObject creates object from programID based on interface type.

Only supports IUnknown.

Program ID can be either program ID or application string.

func ForEach

func ForEach(disp *ole.IDispatch, f func(v *ole.VARIANT) error) error

func GetActiveObject

func GetActiveObject(programID string) (unknown *ole.IUnknown, err error)

GetActiveObject retrieves active object for program ID and interface ID based on interface type.

Only supports IUnknown.

Program ID can be either program ID or application string.

func GetProperty

func GetProperty(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT, err error)

GetProperty retrieves property from IDispatch.

func MustCallMethod

func MustCallMethod(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT)

MustCallMethod calls method on IDispatch with parameters or panics.

func MustGetProperty

func MustGetProperty(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT)

MustGetProperty retrieves property from IDispatch or panics.

func MustPutProperty

func MustPutProperty(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT)

MustPutProperty mutates property or panics.

func MustPutPropertyRef

func MustPutPropertyRef(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT)

MustPutPropertyRef mutates property reference or panics.

func PutProperty

func PutProperty(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT, err error)

PutProperty mutates property.

func PutPropertyRef

func PutPropertyRef(disp *ole.IDispatch, name string, params ...interface{}) (result *ole.VARIANT, err error)

PutPropertyRef mutates property reference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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