func Lock(array *types.COMArray) error { return errors.MaybeError(C.SafeArrayLock(array)) }
// Lock locks SafeArray for reading to modify SafeArray. // // This must be called during some calls to ensure that another process does not // read or write to the SafeArray during editing. // // AKA: SafeArrayLock in Windows API. func Lock(safearray *COMArray) error { return com.MaybeError(C.SafeArrayLock(safearray)) }