IMFNetProxyLocator::GetCurrentProxy method (mfidl.h)

Retrieves the current proxy information including hostname and port.

Syntax

HRESULT GetCurrentProxy(
  [out]     LPWSTR pszStr,
  [in, out] DWORD  *pcchStr
);

Parameters

[out] pszStr

Pointer to a buffer that receives a null-terminated string containing the proxy hostname and port. This parameter can be NULL.

[in, out] pcchStr

On input, specifies the number of elements in the pszStr array. On output, receives the required size of the buffer.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_NOT_SUFFICIENT_BUFFER
The buffer specified in pszStr is too small.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFNetProxyLocator