Windows Dev Center

WTS_PROCESS_INFO_EX structure

Contains extended information about a process running on a Remote Desktop Session Host (RD Session Host) server. This structure is returned by the WTSEnumerateProcessesEx function when you set the pLevel parameter to one.

Syntax


typedef struct _WTS_PROCESS_INFO_EX {
  DWORD         SessionId;
  DWORD         ProcessId;
  LPTSTR        pProcessName;
  PSID          pUserSid;
  DWORD         NumberOfThreads;
  DWORD         HandleCount;
  DWORD         PagefileUsage;
  DWORD         PeakPagefileUsage;
  DWORD         WorkingSetSize;
  DWORD         PeakWorkingSetSize;
  LARGE_INTEGER UserTime;
  LARGE_INTEGER KernelTime;
} WTS_PROCESS_INFO_EX, *PWTS_PROCESS_INFO_EX;

Members

SessionId

The Remote Desktop Services session identifier for the session associated with the process.

ProcessId

The process identifier that uniquely identifies the process on the RD Session Host server.

pProcessName

A pointer to a null-terminated string that contains the name of the executable file associated with the process.

pUserSid

A pointer to the user security identifiers (SIDs) in the primary access token of the process. For more information about SIDs and access tokens, see Access Control and Security Identifiers.

NumberOfThreads

The number of threads in the process.

HandleCount

The number of handles in the process.

PagefileUsage

The page file usage of the process, in bytes.

PeakPagefileUsage

The peak page file usage of the process, in bytes.

WorkingSetSize

The working set size of the process, in bytes.

PeakWorkingSetSize

The peak working set size of the process, in bytes.

UserTime

The amount of time, in milliseconds, the process has been running in user mode.

KernelTime

The amount of time, in milliseconds, the process has been running in kernel mode.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Wtsapi32.h

Unicode and ANSI names

WTS_PROCESS_INFO_EXW (Unicode) and WTS_PROCESS_INFO_EXA (ANSI)

See also

WTSEnumerateProcesses
WTSEnumerateProcessesEx
WTS_PROCESS_INFO

 

 

Show:
© 2015 Microsoft