When using .NET's Process.SessionId
property or the Windows API call ProcessIdToSessionId()
, can the result be relied on to be the same throughout the lifetime of the process?
i.e. If I want to use this value, do I only have to determine what it is once?