WTSINFOEXW structure (wtsapi32.h)

Contains a WTSINFOEX_LEVEL union that contains extended information about a Remote Desktop Services session. This structure is returned by the WTSQuerySessionInformation function when you specify "WTSSessionInfoEx" for the WTSInfoClass parameter.

Syntax

typedef struct _WTSINFOEXW {
  DWORD             Level;
  WTSINFOEX_LEVEL_W Data;
} WTSINFOEXW, *PWTSINFOEXW;

Members

Level

Specifies the level of information contained in the Data member. This can be the following value.

1

The Data member is a WTSINFOEX_LEVEL1 structure.

Data

A WTSINFOEX_LEVEL union. The type of structure contained here is specified by the Level member.

Remarks

Note

The wtsapi32.h header defines WTSINFOEX 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 7
Minimum supported server Windows Server 2008 R2
Header wtsapi32.h

See also

WTSINFOEX_LEVEL

WTSQuerySessionInformation