Example #1
0
File: cgo.go Project: jmptrader/com
func Lock(array *types.COMArray) error {
	return errors.MaybeError(C.SafeArrayLock(array))
}
Example #2
0
// 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))
}