Documentation ¶
Index ¶
- type Session
- func (se Session) GetActiveConsoleSessionId() uint32
- func (se Session) GetSessionState(dwSessionId uint32) win.WTS_CONNECTSTATE_CLASS
- func (se Session) IsLogon() bool
- func (se Session) QuerySessionTokenCDS(sessionId uint32) windows.Handle
- func (se Session) QueryUserToken(sessionId uint32) windows.Handle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { }
会话、Winstation、Desktop相关功能
func GetInstance ¶
func GetInstance() *Session
func (Session) GetActiveConsoleSessionId ¶
The session identifier of the session that is attached to the physical console. If there is no session attached to the physical console, (for example, if the physical console session is in the process of being attached or detached), this function returns 0xFFFFFFFF.
func (Session) GetSessionState ¶
func (se Session) GetSessionState(dwSessionId uint32) win.WTS_CONNECTSTATE_CLASS
func (Session) QuerySessionTokenCDS ¶
Click to show internal directories.
Click to hide internal directories.