Skip to content

Latest commit

 

History

History
103 lines (73 loc) · 3.56 KB

nf-wtsapi32-wtsquerylistenerconfigw.md

File metadata and controls

103 lines (73 loc) · 3.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wtsapi32.WTSQueryListenerConfigW
WTSQueryListenerConfigW function (wtsapi32.h)
Retrieves configuration information for a Remote Desktop Services listener. (Unicode)
WTSQueryListenerConfig
WTSQueryListenerConfig function [Remote Desktop Services]
WTSQueryListenerConfigW
termserv.wtsquerylistenerconfig
wtsapi32/WTSQueryListenerConfig
wtsapi32/WTSQueryListenerConfigW
termserv\wtsquerylistenerconfig.htm
TermServ
abdcb98e-c00c-444f-a6f9-ce98161c8b62
12/05/2018
WTSQueryListenerConfig, WTSQueryListenerConfig function [Remote Desktop Services], WTSQueryListenerConfigA, WTSQueryListenerConfigW, termserv.wtsquerylistenerconfig, wtsapi32/WTSQueryListenerConfig, wtsapi32/WTSQueryListenerConfigA, wtsapi32/WTSQueryListenerConfigW
wtsapi32.h
Windows
Windows 7
Windows Server 2008 R2
WTSQueryListenerConfigW (Unicode) and WTSQueryListenerConfigA (ANSI)
Wtsapi32.lib
Wtsapi32.dll
Windows
19H1
WTSQueryListenerConfigW
wtsapi32/WTSQueryListenerConfigW
c++
APIRef
kbSyntax
DllExport
Wtsapi32.dll
WTSQueryListenerConfig
WTSQueryListenerConfigA
WTSQueryListenerConfigW

WTSQueryListenerConfigW function

-description

Retrieves configuration information for a Remote Desktop Services listener.

-parameters

-param hServer [in]

A handle to an RD Session Host server. Always set this parameter to WTS_CURRENT_SERVER_HANDLE.

-param pReserved [in]

This parameter is reserved. Always set this parameter to NULL.

-param Reserved [in]

This parameter is reserved. Always set this parameter to zero.

-param pListenerName [in]

A pointer to a null-terminated string that contains the name of the listener to query.

-param pBuffer [out]

A pointer to a WTSLISTENERCONFIG structure that receives the retrieved listener configuration information.

-returns

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call the GetLastError function.

-remarks

This function does not retrieve the security descriptor for the listener. To retrieve the security descriptor, call the WTSGetListenerSecurity function.

Note

The wtsapi32.h header defines WTSQueryListenerConfig 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.

-see-also

WTSGetListenerSecurity

WTSLISTENERCONFIG