IoGetActivityIdThread

_GUID *__stdcall IoGetActivityIdThread(){
  return(_GUID *)KeGetCurrentThread()[1].WaitBlock[1].WaitListEntry.Flink;
}

Referenced by:

IoRegisterFsRegistrationChangeMountAware
IopMountVolume
PnpInsertEventInQueue