union _ListenerInfo { [case(1)] LISTENERENUM_LEVEL1 ListenerEnum_Level1; [default] ; } ListenerInfo, *PListenerInfo; ListenerEnum_Level1: The only supported member of the union. It contains listener information of level 1. It is of the type . LISTENERENUM_LEVEL1 LISTENERENUM_LEVEL1 is a structure containing information of level 1 detail about a . typedef struct _LISTENERENUM_LEVEL1 { LONG Id; BOOL bListening; WCHAR Name[33]; } LISTENERENUM_LEVEL1, *PLISTENERENUM_LEVEL1; Id: The identifier associated with the listener. bListening: Set to TRUE if the listener is listening for incoming connections; otherwise. Name: A string that contains the name of the listener followed by the terminating NULL character. LOGONID LOGONID is a defined to be the structure SESSIONID. This type represents information about the session or identified by the identifier SessionId. For more information, see the macro definition in section . typedef struct _SESSIONID { union { SessionId; ULONG LogonId; } _SessionId_LogonId_union; WINSTATIONNAME WinStationName; WINSTATIONSTATECLASS State; } SESSIONID, *PSESSIONID; SessionId: In a union with LogonId. It represents WinStation or session identifier numbered 0 through 65535 for sessions. A number of 65536 or greater indicates that the WinStation is a listening WinStation. LogonId: In a union with SessionId. It is used internally only, within Terminal Services code. WinStationName: The name of the WinStation represented by this structure. See section for more information on the type WINSTATIONNAME. State: The current state of the WinStation. See section for more information on the type WINSTATIONSTATECLASS.
union _ListenerInfo { [case(1)] LISTENERENUM_LEVEL1 ListenerEnum_Level1; [default] ; } ListenerInfo, *PListenerInfo; ListenerEnum_Level1: The only supported member of the union. It contains listener information of level 1. It is of the type . LISTENERENUM_LEVEL1 LISTENERENUM_LEVEL1 is a structure containing information of level 1 detail about a . typedef struct _LISTENERENUM_LEVEL1 { LONG Id; BOOL bListening; WCHAR Name[33]; } LISTENERENUM_LEVEL1, *PLISTENERENUM_LEVEL1; Id: The identifier associated with the listener. bListening: Set to TRUE if the listener is listening for incoming connections; otherwise. Name: A string that contains the name of the listener followed by the terminating NULL character. LOGONID LOGONID is a defined to be the structure SESSIONID. This type represents information about the session or identified by the identifier SessionId. For more information, see the macro definition in section . typedef struct _SESSIONID { union { SessionId; ULONG LogonId; } _SessionId_LogonId_union; WINSTATIONNAME WinStationName; WINSTATIONSTATECLASS State; } SESSIONID, *PSESSIONID; SessionId: In a union with LogonId. It represents WinStation or session identifier numbered 0 through 65535 for sessions. A number of 65536 or greater indicates that the WinStation is a listening WinStation. LogonId: In a union with SessionId. It is used internally only, within Terminal Services code. WinStationName: The name of the WinStation represented by this structure. See section for more information on the type WINSTATIONNAME. State: The current state of the WinStation. See section for more information on the type WINSTATIONSTATECLASS.