Skip to main content

What it does

Gets information about a session.

Definition

int GetSessionInfo( int sessionId, out string userName, out string computerName, out int roleType );

Parameters

NameTypeDescription
sessionIdintThe ID of the session about which information is to be retrieved
userNameout stringThe name of the user
computerNameout stringThe name of the user’s computer
roleTypeout intThe type of user role. See RoleType for possible values.

Returned value

TypeDescription
intUser ID