Share

acedClearOLELock

C++

ACAD_PORT bool acedClearOLELock(
    int handle
);

File

aced.h

Description

This function is for use with OLE Automation applications. Whenever such an application uses any of the ObjectARX API functions, it must call acedSetOLELock() to set a lock. When the lock is set, the application calls this function to clear the lock and allow other OLE applications their chance to lock and use ObjectARX API functions. handle is a lock "code" integer that is used to make sure that the setting and clearing of the lock are done by the same application. Both acedSetOLELock() and this function must be passed this integer lock code as an identifier. If handle is a different code than was used to set the lock, then the clear attempt will fail.

Returns Adesk::kTrue is the lock is successfully cleared, otherwise returns Adesk::kFalse.

Parameters

Parameters Description
handle Input integer lock code used to set the lock

Was this information helpful?