IWinInetHttpTimeouts::GetRequestTimeouts method

Returns the specified timeouts in milliseconds to use on the request or 0 to specify default values.

Syntax


HRESULT GetRequestTimeouts(
  [out] DWORD *pdwConnectTimeout,
  [out] DWORD *pdwSendTimeout,
  [out] DWORD *pdwReceiveTimeout
);

Parameters

pdwConnectTimeout [out]

Specifies the connection timeout value in milliseconds.

pdwSendTimeout [out]

Specifies the send timeout value in milliseconds.

pdwReceiveTimeout [out]

Specifies the receive timeout value in milliseconds.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

UrlMon defines a new interface, IWinInetHttpTimeouts, which UrlMon will QueryInterface off the IInternetBindInfoEx interface passed through IInternetProtocol::Start. Once UrlMon gets the timeouts, it will set them on the WinINet request handle. If the caller doesn’t implement the interface or the timeout returned is 0, global timeouts will be used for the request by not setting any new timeouts.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

IDL

Urlmon.idl

See also

IWinInetHttpTimeouts

 

 

Show: