krn.SessionEnumDB

This job returns a list of all database entries for work sessions.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Currently not supported — pass 0.

2. Output Parameters

Name Type Dependency Description

SessionInfoType

STRING

Semicolon-separated description of the fields returned per record in Sessions

Sessions

STRING

MIME-encoded buffer with one record per work session. See the structure below.

3. Structure of the Sessions buffer

The buffer is MIME-encoded and decodes to one record per work session. Within a record, the individual fields are separated by NUL characters (0x00); their order and meaning are described by the SessionInfoType parameter.

SessionInfoType returns the following field order:

Field Description

sessguid

GUID of the work session

serverid

Identifier of the server on which the session exists

statguid

GUID of the station

userid

Numeric user ID

sessionstart

Start time of the session (Unix timestamp in seconds)

preserverterm

Internal identifier (usually empty)

userguid

GUID of the user

instname

Name of the application or instance holding the session

servername

Name of the server

serverport

Port of the server

username

Login name of the user

statname

Name of the station (computer name)

accounttype

Account type of the session

4. Return Value

(INT): 0 = Job successful, otherwise error code.

See also: krn.SessionEnum