Share via


UrlMkGetSessionOption

Send Feedback

Gets options for the current Internet session.

Syntax

HRESULT UrlMkGetSessionOption(
  DWORD dwOption,
  LPVOID pBuffer,
  DWORD dwBufferLength,
  DWORD * pdwBufferLength,
  DWORD dwReserved
);

Parameters

  • dwOption
    [in] Unsigned long integer value containing the session options to be retrieved. This can be one of the following values:

    Value Description
    URLMON_OPTION_URL_ENCODING Retrieve the default encoding policy of Microsoft® Internet Explorer. This value was introduced in Internet Explorer 5.
    URLMON_OPTION_USERAGENT Retrieve the current user agent string.
  • pBuffer
    [in] Address of the buffer containing the new session settings.

  • dwBufferLength
    [in] Unsigned long integer value containing the size of pBuffer.

  • pdwBufferLength
    [out] Address of an unsigned long integer value containing the size of the data stored in the buffer or the size required to store the data if the buffer size was insufficient.

  • dwReserved
    [in] Reserved. Must be set to zero.

Return Values

Returns one of the following values:

  • S_OK
    The option was successfully set.
  • E_INVALIDARG
    The option is not supported or there is an invalid parameter.
  • E_FAIL
    The option could not be set.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib

See Also

URL Moniker Services Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.