RtlGetCurrentServiceSessionId - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
//
// session
//
#ifdef PHNT_INLINE_TYPEDEFS

// rev
FORCEINLINE
ULONG
NTAPI
RtlGetCurrentServiceSessionId(
    VOID
    )
{
    if (NtCurrentPeb()->SharedData && NtCurrentPeb()->SharedData->ServiceSessionId)
        return NtCurrentPeb()->SharedData->ServiceSessionId;
    else
        return 0;
}

#endif
#endif

View code on GitHub
#ifndef _NTRTL_H
//
// session
//
#ifdef PHNT_INLINE_TYPEDEFS
// ...
#else

// rev
NTSYSAPI
ULONG
NTAPI
RtlGetCurrentServiceSessionId(
    VOID
    );

#endif
#endif

View code on GitHub

No description available.