IComBinding::QueryBinding

[This is preliminary documentation and subject to change.]

Obtains data from the COM binding object.

HRESULT QueryBinding(
  LPDWORD pdwEndpointFlags,  //Attributes of server port
  LPDWORD pdwNICFlags,       //Attributes of binding to NICs
  LPDWORD mbzReserved1,      //Reserved for future use
  LPDWORD mbzReserved2,      //Reserved for future use
  LPOLESTR *ppszBinding      //RPC string binding
);
 

Parameters

pdwEndpointFlags
[out] Address of a flags that specify the attributes of the port or ports where the server receives remote procedure calls. For a list of valid flags, see the documentation for the EndpointFlags member of the RPC_POLICY structure.
pdwNICFlags
[out] Address of flags that specify binding to network interface cards (NICs). For a list of valid flags, see the documentation for the NICFlags member of the RPC_POLICY structure.
mbzReserved1
[out] Reserved for future use; must be NULL.
mbzReserved2
[out] Reserved for future use; must be NULL.
pszBinding
[out] Address of RPC string binding that describes the endpoint.

Return Values

This method supports the standard return values E_FAIL, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:

S_OK
The data from the binding object was obtained.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.