UDF Library

Below is a complete list of the functions available in this library. Click on a function name for a detailed description.

Function Description
_AutoItArrayFromSafeArray Converts a COM SafeArray to an AutoIt array.
_CreateSafeArrayBounds Creates a SAFEARRAYBOUND structure for a SafeArray, supporting up to 5 dimensions.
_CreateSafeArrayIndices Creates an array of indices for a SafeArray, supporting up to 5 dimensions.
_SafeArrayAccessData Locks a SafeArray and retrieves a pointer to its data.
_SafeArrayAddRef Increments the reference count of a SafeArray.
_SafeArrayAllocData Allocates memory for a SafeArray's data without initializing it.
_SafeArrayAllocDescriptor Allocates a SafeArray descriptor for the specified number of dimensions.
_SafeArrayAllocDescriptorEx Allocates a SafeArray descriptor with a specified VARIANT type and number of dimensions.
_SafeArrayCopyData Copies the data from one SafeArray to another.
_SafeArrayCreate Creates a COM SafeArray with the specified type and dimensions.
_SafeArrayCreateEx Creates a SafeArray with default bounds if none are specified.
_SafeArrayCreateVector Creates a one-dimensional SafeArray with the specified type and bounds.
_SafeArrayCreateVectorEx Creates a one-dimensional SafeArray with the specified type, bounds, and optional parameter.
_SafeArrayDestroy Destroys a SafeArray and frees its memory.
_SafeArrayDestroyData Frees the data of a SafeArray without destroying its descriptor.
_SafeArrayDestroyDescriptor Frees a SafeArray descriptor allocated by _SafeArrayAllocDescriptor or _SafeArrayAllocDescriptorEx.
_SafeArrayFromAutoItArray Converts an AutoIt array to a COM SafeArray.
_SafeArrayGetDim Retrieves the number of dimensions in a SafeArray.
_SafeArrayGetElement Retrieves an element from a SafeArray using the specified indices.
_SafeArrayGetElementSize Retrieves the size (in bytes) of an element in a SafeArray.
_SafeArrayGetID Retrieves the IID of the interface for a SafeArray of objects.
_SafeArrayGetLBound Retrieves the lower bound of a specified SafeArray dimension.
_SafeArrayGetUBound Retrieves the upper bound of a specified SafeArray dimension.
_SafeArrayGetVartype Retrieves the VARIANT type of the elements in a SafeArray.
_SafeArrayLock Locks a SafeArray to prevent other threads from accessing it, allowing safe data manipulation.
_SafeArrayPutElement Sets an element in a SafeArray at the specified indices.
_SafeArrayRelease Decrements the reference count of a SafeArray previously incremented by _SafeArrayAddRef.
_SafeArrayUnaccessData Unlocks a SafeArray after data access.
_SafeArrayUnlock Unlocks a previously locked SafeArray, decrementing its lock count.
_SysAllocString Allocates a BSTR from a Unicode string.
_SysFreeString Frees a previously allocated BSTR.
_SysReadString Reads the contents of a BSTR into an AutoIt string.
_SysStringLen Retrieves the length of a BSTR (in characters).
_VariantInit Initializes a VARIANT structure to VT_EMPTY.
_VariantClear Clears the contents of a VARIANT structure.
_VariantRead Reads the value of a VARIANT structure and converts it to an AutoIt type.
_VariantSet Sets the value of a VARIANT structure from an AutoIt value.