LAPICALL GetRootID(LDB db, LID* id);

Retrieves the root object id. The root object is always existing and you cannot create it.

db contains the current database. id is the address of a variable that receives the object id.