IComBinding::InitBinding

[This is preliminary documentation and subject to change.]

Initializes data in the COM binding object.

HRESULT InitBinding(
  DWORD dwEndpointFlags,  //Attributes of server port
  DWORD dwNICFlags,       //Attributes of binding to NICs
  DWORD mbzReserved1,     //Reserved for future use
  DWORD mbzReserved2,     //Reserved for future use
  LPOLESTR pszBinding     //RPC string binding
);
 

Parameters

dwEndpointFlags
[in] Flags that determine 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.
dwNICFlags
[in] Flags that control 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
[in] Reserved for future use; must be 0.
mbzReserved2
[in] Reserved for future use; must be 0.
pszBinding
[in] 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 in the binding object was initialized.

QuickInfo

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