AnnUnlock Example for C++ 4.0 and later
Note: This topic is for Document/Medical only.
This is also the example for AnnGetLocked.
If an object is found to be locked, using AnnGetLocked method, the object is unlocked, by AnnUnlock, using the key "IkeStarnes".
BOOL bLocked;
bLocked = m_Lead1.AnnGetLocked(ghObject);
if(bLocked == TRUE)
m_Lead1.AnnUnlock(ghObject, "IkeStarnes");