Share via


CInternetSession::SetOption

BOOL SetOption( DWORD dwOption**, LPVOID** lpBuffer**, DWORD** dwBufferLength );

BOOL SetOption( DWORD dwOption**, DWORD** dwValue );

Return Value

If the operation was successful, a value of TRUE is returned. If an error occurred, a value of FALSE is returned. If the call fails, the Win32 function may be called to determine the cause of the error.

Parameters

dwOption

See CInternetSession::QueryOption for list of possible values.

lpBuffer

A buffer that contains the option setting.

dwBufferLength

The length of lpBuffer or the size of dwValue.

dwValue

A DWORD that contains the option setting.

Remarks

Call this member function to set options for the Internet session.

CInternetSession OverviewClass MembersHierarchy Chart

See Also   CInternetSession::ServiceTypeFromHandle, CInternetSession::QueryOption