NTSTATUS
SeRegisterLogonSessionTerminatedRoutine(
  IN  PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine
  );

Routine Description:

    This routine is called by file systems that are interested in being
    notified when a logon session is being deleted.

Arguments:

    CallbackRoutine - Address of routine to call back when a logon session
        is being deleted.

Return Value:

    STATUS_SUCCESS - Successfully registered routine

    STATUS_INVALID_PARAMETER - CallbackRoutine is NULL

    STATUS_INSUFFICIENT_RESOURCE - Unable to allocate list entry.