LAPICALL EnumReferences(LDB db, LID dir, unsigned long type, DirectoryPosition* pos);

Retrieves all object that have a specific relationship with the specified object.

db specifies the current database.

dir specifies the current directory

type specifies the type of the references that should be enuerated. You can specify ANY_REFERENCE_TYPE to tell the function that you want to enumerate all references disregarding their type.

pos specifies the address of the enumerator position. The contents of this structure are overwritten by this function.