Using Win32 functions in Visual FoxPro Image Gallery
URL Monikers
Code examples:
Obtaining current Internet Explorer browser version and UserAgent
..msdn    Add comment     W32 Constants      Translate this page
Retrieves options for the current Internet session.
Code examples:
Obtaining current Internet Explorer browser version and UserAgent
HRESULT UrlMkGetSessionOption(
    DWORD dwOption,
    LPVOID pBuffer,
    DWORD dwBufferLength,
    DWORD *pdwBufferLength,
    DWORD dwReserved
FoxPro declaration:
DECLARE INTEGER UrlMkGetSessionOption IN urlmon;
    INTEGER   dwOption,;
    STRING  @ pBuffer,;
    INTEGER   dwBufferLen,;
    INTEGER @ pdwBufferLen,;
    INTEGER   dwReserved

[in] Unsigned long integer value containing the session options to be retrieved.

[in] Pointer to the buffer containing the session settings to be retrieved.

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

[out] Pointer to 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.

[in] Reserved. Must be set to 0.
Return value:
Returns one of the following values: S_OK, E_FAIL, E_INVALIDARG
My comment:
Being called with dwOption = URLMON_OPTION_USERAGENT this function returns current User Agent string.

Even if this function returns an error code, check pdwBufferLength parameter. If it is not zero then there is some result returned in pBuffer.
Word Index links for the UrlMkGetSessionOption :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2003-07-10 12:28:47
Modified: 2003-07-10 12:36:21
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
6 sec.Function: 'CeRapiFreeBuffer'
11 sec.Function: 'GetFileAttributes'
17 sec.Function: 'VirtualFreeEx'
24 sec.Function: 'GetUserDefaultUILanguage'
31 sec.
Function group: 'Simple MAPI'
37 sec.Function: 'GlobalReAlloc'
43 sec.
Function group: 'Terminal Services'
50 sec.Function: 'SQLConfigDataSource'
57 sec.Function: 'JetPrepareUpdate'
1.08 min.Function: 'PostQuitMessage'
Advertise here!