Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/go-ole/go-ole
/ functions
Functions
383 in github.com/go-ole/go-ole
⨍
Functions
383
◇
Types & classes
50
↓ 111 callers
Function
NewError
NewError creates new error with HResult.
error.go:11
↓ 79 callers
Method
Call
Call method on IDispatch with parameters.
connect.go:79
↓ 67 callers
Method
Error
Error implements error interface and returns error string.
ole.go:102
↓ 46 callers
Method
ToIDispatch
ToIDispatch converts variant to dispatch object.
variant.go:19
↓ 43 callers
Method
Release
()
iunknown.go:18
↓ 39 callers
Function
NewVariant
NewVariant returns new variant based on type and value.
variant.go:6
↓ 33 callers
Method
Clear
Clear frees BSTR strings inside an EXCEPINFO and set it to NULL.
ole.go:59
↓ 30 callers
Function
MustGetProperty
MustGetProperty retrieves property from IDispatch or panics.
oleutil/oleutil.go:69
↓ 29 callers
Method
Value
Value returns variant value based on its type. Currently supported types: 2- and 4-byte integers, strings, bools. Note that 64-bit integers, datetime
variant.go:57
↓ 26 callers
Function
CoUninitialize
CoUninitialize uninitializes COM Library.
com.go:128
↓ 24 callers
Function
MustCallMethod
MustCallMethod calls method on IDispatch with parameters or panics.
oleutil/oleutil.go:55
↓ 21 callers
Function
NewGUID
NewGUID converts the given string into a globally unique identifier that is compliant with the Windows API. The supplied string may be in any of thes
guid.go:116
↓ 21 callers
Function
convertHresultToError
convertHresultToError converts syscall to error, if call is unsuccessful.
utility.go:96
↓ 18 callers
Method
GetProperty
GetProperty retrieves the property with the name with the ability to pass arguments. Most of the time you will not need to pass arguments as most obj
idispatch.go:87
↓ 16 callers
Method
Invoke
Invoke IDispatch on DisplayID of dispatch type with parameters. There have been problems where if send cascading params..., it would error out becaus
connect.go:173
↓ 15 callers
Method
ToString
ToString converts variant to Go string.
variant.go:38
↓ 14 callers
Function
CallMethod
CallMethod calls method on IDispatch with parameters.
oleutil/oleutil.go:50
↓ 14 callers
Method
CallMethod
CallMethod invokes named function with arguments on object.
idispatch.go:78
↓ 14 callers
Method
QueryInterface
(iid *GUID)
iunknown.go:16
↓ 14 callers
Function
decodeHexByte
(c1, c2 byte)
guid.go:194
↓ 13 callers
Method
GetIDsOfName
(names []string)
idispatch.go:21
↓ 13 callers
Method
PutProperty
PutProperty attempts to mutate a property in the object.
idispatch.go:92
↓ 13 callers
Function
safeArrayGetElement
safeArrayGetElement retrieves element at given index.
safearray_func.go:127
↓ 13 callers
Function
wrapGoOLETestCOMServerScalar
(t *testing.T, callback func(*testing.T, *IUnknown, *IDispatch))
idispatch_windows_test.go:51
↓ 12 callers
Function
coInitialize
coInitialize initializes COM library on current thread. MSDN documentation suggests that this function should not be called. Call CoInitializeEx() in
com.go:53
↓ 12 callers
Function
wrapGoOLETestCOMServerEcho
(t *testing.T, callback func(*testing.T, *IUnknown, *IDispatch))
idispatch_windows_test.go:45
↓ 10 callers
Function
CLSIDFromProgID
CLSIDFromProgID retrieves Class Identifier with the given Program Identifier. The Programmatic Identifier must be registered, because it will be look
com.go:159
↓ 10 callers
Function
CreateObject
CreateObject creates object from programID based on interface type. Only supports IUnknown. Program ID can be either program ID or application strin
oleutil/oleutil.go:15
↓ 9 callers
Function
CoInitialize
CoInitialize initializes COM library on current thread. MSDN documentation suggests that this function should not be called. Call CoInitializeEx() in
com.go:113
↓ 9 callers
Method
VTable
()
iunknown.go:21
↓ 8 callers
Method
Code
Code is the HResult.
error.go:26
↓ 8 callers
Function
PutProperty
PutProperty mutates property.
oleutil/oleutil.go:78
↓ 7 callers
Method
Create
Create IUnknown object based first on ProgId and then from String.
connect.go:21
↓ 7 callers
Function
CreateInstance
CreateInstance of single uninitialized object with GUID.
com.go:222
↓ 7 callers
Method
Dispatch
Dispatch returns Dispatch object.
connect.go:64
↓ 7 callers
Method
Initialize
Initialize COM.
connect.go:11
↓ 7 callers
Method
InvokeWithOptionalArgs
InvokeWithOptionalArgs accepts arguments as an array, works like Invoke. Accepts name and will attempt to retrieve Display ID to pass to Invoke. Pas
idispatch.go:62
↓ 6 callers
Method
GetId
GetId retrieves ID of name on IDispatch.
connect.go:153
↓ 6 callers
Function
MustPutProperty
MustPutProperty mutates property or panics.
oleutil/oleutil.go:83
↓ 6 callers
Method
Release
Release IUnknown object.
connect.go:41
↓ 6 callers
Method
TotalElements
(index uint32)
safearrayconversion.go:114
↓ 6 callers
Method
Uninitialize
Uninitialize COM.
connect.go:16
↓ 5 callers
Function
BstrToString
BstrToString converts COM binary string to Go string.
utility.go:61
↓ 5 callers
Method
ToArray
ToArray converts variant to SafeArray helper.
variant.go:27
↓ 4 callers
Function
CLSIDFromString
CLSIDFromString retrieves Class ID from string representation. This is technically the string version of the GUID and will convert the string to obje
com.go:176
↓ 4 callers
Function
CoInitializeEx
CoInitializeEx initializes COM library with concurrency model.
com.go:121
↓ 4 callers
Function
GetProperty
GetProperty retrieves property from IDispatch.
oleutil/oleutil.go:64
↓ 4 callers
Function
GetUserDefaultLCID
GetUserDefaultLCID retrieves current user default locale.
com.go:366
↓ 4 callers
Function
IsEqualGUID
IsEqualGUID compares two GUID. Not constant time comparison.
guid.go:272
↓ 4 callers
Function
LOGetCell
LOGetCell returns an handle to a cell within a worksheet LibreOffice Basic: GetCell = oSheet.getCellByPosition (nColumn , nRow)
_example/libreoffice/libreoffice.go:53
↓ 4 callers
Function
LpOleStrToString
LpOleStrToString converts COM Unicode to Go string.
utility.go:42
↓ 4 callers
Method
Next
(celt uint)
ienumvariant_func.go:17
↓ 4 callers
Method
ToIUnknown
ToIUnknown converts Variant to Unknown object.
variant.go:11
↓ 4 callers
Method
VTable
()
ienumvariant.go:17
↓ 3 callers
Function
DeleteHString
DeleteHString deletes HString.
winrt.go:80
↓ 3 callers
Method
IEnumVARIANT
(interfaceID *GUID)
iunknown.go:34
↓ 3 callers
Function
SysAllocStringLen
SysAllocStringLen copies up to length of given string returning pointer.
com.go:305
↓ 3 callers
Function
SysFreeString
SysFreeString frees string system memory. This must be called with SysAllocString.
com.go:315
↓ 3 callers
Method
ToStringArray
()
safearrayconversion.go:13
↓ 3 callers
Method
VTable
()
iinspectable.go:16
↓ 3 callers
Function
VariantClear
VariantClear clears value in Variant settings to VT_EMPTY.
com.go:289
↓ 3 callers
Function
coInitializeEx
coInitializeEx initializes COM library with concurrency model.
com.go:65
↓ 3 callers
Method
renderStrings
renderStrings translates BSTR strings to Go ones so `.Error` and `.String` could be safely called after `.Clear`. We need this when we can't rely on a
ole.go:39
↓ 3 callers
Function
safeArrayGetElementString
safeArrayGetElement retrieves element at given index and converts to string.
safearray_func.go:132
↓ 2 callers
Function
AddRef
(this *ole.IUnknown)
_example/winsock/winsock.go:47
↓ 2 callers
Method
Advise
(unknown *IUnknown)
iconnectionpoint_func.go:11
↓ 2 callers
Method
Get
Get property on IDispatch with parameters.
connect.go:105
↓ 2 callers
Method
Invoke
(dispid int32, dispatch int16, params ...interface{})
idispatch.go:26
↓ 2 callers
Function
LOSetCellString
LOSetCellString sets the text value of a cell
_example/libreoffice/libreoffice.go:80
↓ 2 callers
Function
NewHString
NewHString returns a new HString for Go string.
winrt.go:66
↓ 2 callers
Method
PutQueryInterface
(interfaceID *GUID, obj interface{})
iunknown.go:25
↓ 2 callers
Method
Release
()
iunknown.go:55
↓ 2 callers
Method
VTable
()
iconnectionpoint.go:18
↓ 2 callers
Function
VariantInit
VariantInit initializes variant.
com.go:280
↓ 2 callers
Function
checkError
(err error, msg string)
_example/libreoffice/libreoffice.go:45
↓ 2 callers
Function
decodeHexChar
(c byte)
guid.go:204
↓ 2 callers
Function
decodeHexUint16
(src []byte)
guid.go:170
↓ 2 callers
Function
dispAddRef
(this *ole.IUnknown)
oleutil/connection.go:47
↓ 2 callers
Function
errstr
errstr converts error code to string.
error_func.go:6
↓ 2 callers
Function
putByteHex
(dst, src []byte)
guid.go:262
↓ 2 callers
Function
putUint16Hex
(b []byte, v uint16)
guid.go:255
↓ 2 callers
Function
queryInterface
(unk *IUnknown, iid *GUID)
iunknown_func.go:9
↓ 2 callers
Function
release
(unk *IUnknown)
iunknown_func.go:17
↓ 2 callers
Function
safeArrayCreateVector
safeArrayCreateVector creates SafeArray. AKA: SafeArrayCreateVector in Windows API.
safearray_func.go:75
↓ 2 callers
Function
safeArrayDestroy
safeArrayDestroy destroys SafeArray object. AKA: SafeArrayDestroy in Windows API.
safearray_func.go:89
↓ 2 callers
Function
safeArrayGetLBound
safeArrayGetLBound returns lower bounds of SafeArray. SafeArrays may have multiple dimensions. Meaning, it could be multidimensional array. AKA: Saf
safearray_func.go:149
↓ 2 callers
Function
safeArrayGetUBound
safeArrayGetUBound returns upper bounds of SafeArray. SafeArrays may have multiple dimensions. Meaning, it could be multidimensional array. AKA: Saf
safearray_func.go:159
↓ 2 callers
Function
safeArrayGetVartype
safeArrayGetVartype returns data type of SafeArray. AKA: SafeArrayGetVartype in Windows API.
safearray_func.go:166
↓ 2 callers
Function
safeArrayPutElement
safeArrayPutElement stores the data element at the specified location in the array. AKA: SafeArrayPutElement in Windows API.
safearray_func.go:191
↓ 2 callers
Function
wrapCOMExecute
(t *testing.T, callback func(*testing.T))
idispatch_windows_test.go:7
↓ 2 callers
Function
wrapDispatch
(t *testing.T, ClassID, UnknownInterfaceID, DispatchInterfaceID *GUID, callback func(*testing.T, *IUnknown, *I
idispatch_windows_test.go:23
↓ 1 callers
Function
ClassIDFrom
ClassIDFrom retrieves class ID whether given is program ID or application string. Helper that provides check against both Class ID from Program ID an
utility.go:13
↓ 1 callers
Method
Clear
Clear the memory of variant object.
variant.go:46
↓ 1 callers
Function
CoTaskMemFree
CoTaskMemFree frees memory pointer.
com.go:142
↓ 1 callers
Function
ConnectObject
ConnectObject creates a connection point between two services for communication.
oleutil/connection_windows.go:14
↓ 1 callers
Method
FindConnectionPoint
(iid *GUID, point **IConnectionPoint)
iconnectionpointcontainer_func.go:9
↓ 1 callers
Method
GetSingleIDOfName
GetSingleIDOfName is a helper that returns single display ID for IDispatch name. This replaces the common pattern of attempting to get a single name
idispatch.go:45
↓ 1 callers
Method
GetTypeInfo
()
idispatch.go:36
↓ 1 callers
Method
GetTypeInfoCount
()
idispatch.go:31
↓ 1 callers
Function
GetVariantDate
(value uint64)
com_func.go:172
next →
1–100 of 383, ranked by callers