# IBinding::GetBindResult

Queries the protocol-specific outcome of a bind operation.

HRESULT GetBindResult(

CLSID *pclsidProtocol, | //Pointer to the CLSID that identifies the protocol used
DWORD *pdwBindResult, | //Pointer to bind result
LPWSTR *pszBindResult, | //Pointer to protocol-specific bind result
DWORD dwReserved | //Reserved for future use; must be NULL
); |

Parameters

pcslidProtocol
  [out] Pointer to the CLSID variable for the protocol used.
pdwBindResult
  [out] Pointer to the DWORD variable containing the protocol-specific bind result.
pszBindResult
  [out] Pointer to the LPWSTR variable containing the protocol-specific bind result.
dwReserved
  [in] Reserved for future use; must be NULL.

Return Values

S_OK
  The operation was successful.
E_INVALIDARG
  One of the parameters is not valid.

Remarks

This method is typically called by the client of an asynchronous moniker when the client’s IBindStatusCallback::OnStopBinding method is called.

See Also

IBindStatusCallback::OnStopBinding