LAPICALL GetObjectLength(LDB db, unsigned long* length, LID id);

Retrieves the number of bytes that are contained in an object.