WTS_PROCESS_INFOA structure (wtsapi32.h)

Contains information about a process running on a Remote Desktop Session Host (RD Session Host) server.

Syntax

typedef struct _WTS_PROCESS_INFOA {
  DWORD SessionId;
  DWORD ProcessId;
  LPSTR pProcessName;
  PSID  pUserSid;
} WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;

Members

SessionId

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

ProcessId

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

pProcessName

Pointer to a null-terminated string containing the name of the executable file associated with the process.

pUserSid

Pointer to the user Security Identifiers in the process's primary access token. For more information about SIDs and access tokens, see Access Control.

Remarks

Note

The wtsapi32.h header defines WTS_PROCESS_INFO as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header wtsapi32.h

See also

WTSEnumerateProcesses