3.5.4.2.2 RpcCloseListener (Opnum 1)

The RpcCloseListener method closes the handle for a Terminal Services listener running on a terminal server. This MUST be called after RpcOpenListener. The call to this method MUST be serialized if there are multiple threads running otherwise the behavior of this function is unknown. No special permissions are required to call this method.

 HRESULT RpcCloseListener(
   [in, out] HLISTENER* phListener
 );

phListener: Pointer to a handle to the listener as returned by RpcOpenListener. The handle is of type HLISTENER. The handle is set to NULL when the call returns.

Return Values:  The method MUST return S_OK (0x00000000) on success; otherwise, it MUST return an implementation-specific negative value.<157>

Return value/code

Description

0x00000000

S_OK

Successful completion.