Function : OS Memory

OSLock - Lock an object and return a type-cast pointer to it.
----------------------------------------------------------------------------------------------------------

#include <osmem.h>

<blocktype> far * OSLock(
<typedef> blocktype,
HANDLE hObject
);

Description :

OSLock locks a memory object and returns a pointer to its locked address in memory. The pointer is type cast as given by the first argument. This routine must be called before any memory object is referenced. Once locked, the application can use the pointer to access its contents.

Parameters :

Sample Usage :

  /* Obtain physical address of output ITEM value returned above. */

  pCDBuf = OSLock(char, hCDBuf);
  wCleanUp |= UNLOCK_HCDBUF;



See Also :

OSLockBlock
----------------------------------------------------------------------------------------------------------