3.5.4.2.1 RpcOpenListener (Opnum 0)

 The RpcOpenListener method returns a handle to the specified Terminal Services listener running on a terminal server. No special permissions are required to call this method.

 HRESULT RpcOpenListener(
   [in] handle_t hBinding,
   [in, string] WCHAR* szListenerName,
   [out] HLISTENER* phListener
 );

hBinding:  The RPC binding handle. For more information, see [MSDN-RPCBIND].

szListenerName:  The name of the listener for which to retrieve a handle.

phListener:  Pointer to a handle to the listener. The handle is of type HLISTENER.

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

Return value/code

Description

0x00000000

S_OK

Successful completion.