oleaut32

package
v0.0.0-...-fe889e0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	CSC_UPDATECOMMANDS  = ^0x0
	CSC_NAVIGATEFORWARD = 0x1
	CSC_NAVIGATEBACK    = 0x2
)
View Source
const (
	DISP_E_MEMBERNOTFOUND = 0x80020003
)

Variables

View Source
var (
	IID_IDispatch = ole32.IID{0x00020400, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
)

Functions

func BSTRToString

func BSTRToString(value *uint16) string

func StringToBSTR

func StringToBSTR(value string) *uint16

func SysAllocString

func SysAllocString(s string) *uint16

func SysFreeString

func SysFreeString(bstr *uint16)

func SysStringLen

func SysStringLen(bstr *uint16) uint32

func VariantBSTRToString

func VariantBSTRToString(value *VAR_BSTR) string

func VariantBoolToBool

func VariantBoolToBool(value *VAR_BOOL) bool

func VariantI4ToInt

func VariantI4ToInt(value *VAR_I4) int32

Types

type DISPID

type DISPID int32
const (
	DISPID_BEFORENAVIGATE             DISPID = 100
	DISPID_NAVIGATECOMPLETE           DISPID = 101
	DISPID_STATUSTEXTCHANGE           DISPID = 102
	DISPID_QUIT                       DISPID = 103
	DISPID_DOWNLOADCOMPLETE           DISPID = 104
	DISPID_COMMANDSTATECHANGE         DISPID = 105
	DISPID_DOWNLOADBEGIN              DISPID = 106
	DISPID_NEWWINDOW                  DISPID = 107
	DISPID_PROGRESSCHANGE             DISPID = 108
	DISPID_WINDOWMOVE                 DISPID = 109
	DISPID_WINDOWRESIZE               DISPID = 110
	DISPID_WINDOWACTIVATE             DISPID = 111
	DISPID_PROPERTYCHANGE             DISPID = 112
	DISPID_TITLECHANGE                DISPID = 113
	DISPID_TITLEICONCHANGE            DISPID = 114
	DISPID_FRAMEBEFORENAVIGATE        DISPID = 200
	DISPID_FRAMENAVIGATECOMPLETE      DISPID = 201
	DISPID_FRAMENEWWINDOW             DISPID = 204
	DISPID_BEFORENAVIGATE2            DISPID = 250
	DISPID_NEWWINDOW2                 DISPID = 251
	DISPID_NAVIGATECOMPLETE2          DISPID = 252
	DISPID_ONQUIT                     DISPID = 253
	DISPID_ONVISIBLE                  DISPID = 254
	DISPID_ONTOOLBAR                  DISPID = 255
	DISPID_ONMENUBAR                  DISPID = 256
	DISPID_ONSTATUSBAR                DISPID = 257
	DISPID_ONFULLSCREEN               DISPID = 258
	DISPID_DOCUMENTCOMPLETE           DISPID = 259
	DISPID_ONTHEATERMODE              DISPID = 260
	DISPID_ONADDRESSBAR               DISPID = 261
	DISPID_WINDOWSETRESIZABLE         DISPID = 262
	DISPID_WINDOWCLOSING              DISPID = 263
	DISPID_WINDOWSETLEFT              DISPID = 264
	DISPID_WINDOWSETTOP               DISPID = 265
	DISPID_WINDOWSETWIDTH             DISPID = 266
	DISPID_WINDOWSETHEIGHT            DISPID = 267
	DISPID_CLIENTTOHOSTWINDOW         DISPID = 268
	DISPID_SETSECURELOCKICON          DISPID = 269
	DISPID_FILEDOWNLOAD               DISPID = 270
	DISPID_NAVIGATEERROR              DISPID = 271
	DISPID_PRIVACYIMPACTEDSTATECHANGE DISPID = 272
	DISPID_NEWWINDOW3                 DISPID = 273
)

type DISPPARAMS

type DISPPARAMS struct {
	Rgvarg            *VARIANTARG
	RgdispidNamedArgs *DISPID
	CArgs             int32
	CNamedArgs        int32
}

type IDispatch

type IDispatch struct {
	LpVtbl *IDispatchVtbl
}

type IDispatchVtbl

type IDispatchVtbl struct {
	QueryInterface   uintptr
	AddRef           uintptr
	Release          uintptr
	GetTypeInfoCount uintptr
	GetTypeInfo      uintptr
	GetIDsOfNames    uintptr
	Invoke           uintptr
}

type SAFEARRAY

type SAFEARRAY struct {
	CDims      uint16
	FFeatures  uint16
	CbElements uint32
	CLocks     uint32
	PvData     uintptr
	Rgsabound  [1]SAFEARRAYBOUND
}

type SAFEARRAYBOUND

type SAFEARRAYBOUND struct {
	CElements uint32
	LLbound   int32
}

type VARIANT

type VARIANT struct {
	Vt VARTYPE
	// contains filtered or unexported fields
}

func (*VARIANT) BSTR

func (v *VARIANT) BSTR() (*uint16, error)

func (*VARIANT) Bool

func (v *VARIANT) Bool() (VARIANT_BOOL, error)

func (*VARIANT) Long

func (v *VARIANT) Long() (int32, error)

func (*VARIANT) MustBSTR

func (v *VARIANT) MustBSTR() *uint16

func (*VARIANT) MustBool

func (v *VARIANT) MustBool() VARIANT_BOOL

func (*VARIANT) MustLong

func (v *VARIANT) MustLong() int32

func (*VARIANT) MustPBool

func (v *VARIANT) MustPBool() *VARIANT_BOOL

func (*VARIANT) MustPDispatch

func (v *VARIANT) MustPDispatch() *IDispatch

func (*VARIANT) MustPPDispatch

func (v *VARIANT) MustPPDispatch() **IDispatch

func (*VARIANT) MustPSafeArray

func (v *VARIANT) MustPSafeArray() *SAFEARRAY

func (*VARIANT) MustPVariant

func (v *VARIANT) MustPVariant() *VARIANT

func (*VARIANT) MustULong

func (v *VARIANT) MustULong() uint32

func (*VARIANT) PBool

func (v *VARIANT) PBool() (*VARIANT_BOOL, error)

func (*VARIANT) PDispatch

func (v *VARIANT) PDispatch() (*IDispatch, error)

func (*VARIANT) PPDispatch

func (v *VARIANT) PPDispatch() (**IDispatch, error)

func (*VARIANT) PSafeArray

func (v *VARIANT) PSafeArray() (*SAFEARRAY, error)

func (*VARIANT) PVariant

func (v *VARIANT) PVariant() (*VARIANT, error)

func (*VARIANT) SetBSTR

func (v *VARIANT) SetBSTR(value *uint16)

func (*VARIANT) SetBool

func (v *VARIANT) SetBool(value VARIANT_BOOL)

func (*VARIANT) SetLong

func (v *VARIANT) SetLong(value int32)

func (*VARIANT) SetPBool

func (v *VARIANT) SetPBool(value *VARIANT_BOOL)

func (*VARIANT) SetPDispatch

func (v *VARIANT) SetPDispatch(value *IDispatch)

func (*VARIANT) SetPPDispatch

func (v *VARIANT) SetPPDispatch(value **IDispatch)

func (*VARIANT) SetPSafeArray

func (v *VARIANT) SetPSafeArray(value *SAFEARRAY, elementVt VARTYPE)

func (*VARIANT) SetPVariant

func (v *VARIANT) SetPVariant(value *VARIANT)

func (*VARIANT) SetULong

func (v *VARIANT) SetULong(value uint32)

func (*VARIANT) ULong

func (v *VARIANT) ULong() (uint32, error)

type VARIANTARG

type VARIANTARG struct {
	VARIANT
}

type VARIANT_BOOL

type VARIANT_BOOL int16
const (
	VARIANT_TRUE  VARIANT_BOOL = -1
	VARIANT_FALSE VARIANT_BOOL = 0
)

type VARTYPE

type VARTYPE uint16
const (
	VT_EMPTY            VARTYPE = 0
	VT_NULL             VARTYPE = 1
	VT_I2               VARTYPE = 2
	VT_I4               VARTYPE = 3
	VT_R4               VARTYPE = 4
	VT_R8               VARTYPE = 5
	VT_CY               VARTYPE = 6
	VT_DATE             VARTYPE = 7
	VT_BSTR             VARTYPE = 8
	VT_DISPATCH         VARTYPE = 9
	VT_ERROR            VARTYPE = 10
	VT_BOOL             VARTYPE = 11
	VT_VARIANT          VARTYPE = 12
	VT_UNKNOWN          VARTYPE = 13
	VT_DECIMAL          VARTYPE = 14
	VT_I1               VARTYPE = 16
	VT_UI1              VARTYPE = 17
	VT_UI2              VARTYPE = 18
	VT_UI4              VARTYPE = 19
	VT_I8               VARTYPE = 20
	VT_UI8              VARTYPE = 21
	VT_INT              VARTYPE = 22
	VT_UINT             VARTYPE = 23
	VT_VOID             VARTYPE = 24
	VT_HRESULT          VARTYPE = 25
	VT_PTR              VARTYPE = 26
	VT_SAFEARRAY        VARTYPE = 27
	VT_CARRAY           VARTYPE = 28
	VT_USERDEFINED      VARTYPE = 29
	VT_LPSTR            VARTYPE = 30
	VT_LPWSTR           VARTYPE = 31
	VT_RECORD           VARTYPE = 36
	VT_INT_PTR          VARTYPE = 37
	VT_UINT_PTR         VARTYPE = 38
	VT_FILETIME         VARTYPE = 64
	VT_BLOB             VARTYPE = 65
	VT_STREAM           VARTYPE = 66
	VT_STORAGE          VARTYPE = 67
	VT_STREAMED_OBJECT  VARTYPE = 68
	VT_STORED_OBJECT    VARTYPE = 69
	VT_BLOB_OBJECT      VARTYPE = 70
	VT_CF               VARTYPE = 71
	VT_CLSID            VARTYPE = 72
	VT_VERSIONED_STREAM VARTYPE = 73
	VT_BSTR_BLOB        VARTYPE = 0xfff
	VT_VECTOR           VARTYPE = 0x1000
	VT_ARRAY            VARTYPE = 0x2000
	VT_BYREF            VARTYPE = 0x4000
	VT_RESERVED         VARTYPE = 0x8000
	VT_ILLEGAL          VARTYPE = 0xffff
	VT_ILLEGALMASKED    VARTYPE = 0xfff
	VT_TYPEMASK         VARTYPE = 0xfff
)

type VAR_BOOL

type VAR_BOOL struct {
	// contains filtered or unexported fields
}

func BoolToVariantBool

func BoolToVariantBool(value bool) *VAR_BOOL

type VAR_BSTR

type VAR_BSTR struct {
	// contains filtered or unexported fields
}

func StringToVariantBSTR

func StringToVariantBSTR(value string) *VAR_BSTR

type VAR_I4

type VAR_I4 struct {
	// contains filtered or unexported fields
}

func IntToVariantI4

func IntToVariantI4(value int32) *VAR_I4

type VAR_PBOOL

type VAR_PBOOL struct {
	// contains filtered or unexported fields
}

type VAR_PDISP

type VAR_PDISP struct {
	// contains filtered or unexported fields
}

type VAR_PPDISP

type VAR_PPDISP struct {
	// contains filtered or unexported fields
}

type VAR_PSAFEARRAY

type VAR_PSAFEARRAY struct {
	// contains filtered or unexported fields
}

type VAR_PVAR

type VAR_PVAR struct {
	// contains filtered or unexported fields
}

type VAR_UI4

type VAR_UI4 struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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