4.1.2.2.16 LastRID

 procedure LastRID(sid: SID): Rid

Extracts and returns the RID from the SID sid. See [MS-DTYP] section 2.4.2.