Function : OS Blocks

OSLockBlock - Locks BLOCKID and returns typed pointer to the data.
----------------------------------------------------------------------------------------------------------

#include <pool.h>

<type> far * OSLockBlock(
<typedef> type,
BLOCKID blockid);

Description :

OSLockBlock locks the data associated with a BLOCKID in memory and returns a type cast pointer to its locked address in memory. This routine must be called before any BLOCKID data can be referenced. Once locked, the application can use the pointer to access the data. The BLOCKID must be unlocked by the application using OSUnlockBlock before any corresponding Domino data entities (e.g. NSF, note, etc) can be freed (e.g. closed).
Parameters :

Sample Usage :


      pTmpCD = OSLockBlock(char, bidTmpCD);
      CleanUp_State += UNLOCK_EXPCDBID;


See Also :

ISNULLBLOCKID
----------------------------------------------------------------------------------------------------------