Ejemplo n.º 1
0
Archivo: cgo.go Proyecto: jmptrader/com
func Lock(array *types.COMArray) error {
	return errors.MaybeError(C.SafeArrayLock(array))
}
Ejemplo n.º 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))
}