Compartilhar via


3.3.4.18 Server Application Queries a Session

The calling application provides GlobalSessionId as an identifier for the Session. The server MUST look up session in GlobalSessionTable where GlobalSessionId is equal to Session.SessionGlobalId. If Session is found, the server MUST return a session in SESSION_INFO_502 structure as specified in [MS-SRVS] section 2.2.4.15 with the following values set and return STATUS_SUCCESS to the calling application.

SESSION_INFO_502 Parameters

SMB2 Session Properties

sesi502_cname

Session.Connection.ClientName

sesi502_username

Session.UserName

sesi502_num_opens

The count of entries in Session.OpenTable

sesi502_time

The current time minus Session.CreationTime, in seconds

sesi502_idle_time

The current time minus Session.IdleTime, in seconds

sesi502_user_flags

SESS_GUEST if Session.IsGuest is TRUE

sesi502_cltype_name

Empty string

sesi502_transport

Session.Connection.TransportName

If no Session is found, the server MUST return an implementation-dependent error.