LAPICALL LockObject(LDB db, void** address, LID id);

Locks an object. The address points to the beginning of the memory block that holds the contents of the object.

Writing to the object is discouraged. Use WriteObject instead.