Using Win32 functions in Visual FoxPro Image Gallery
URL Monikers
..msdn
CreateURLMonikerEx
FindMediaType
IsValidURL
ObtainUserAgentString
URLDownloadToCacheFile
URLDownloadToFile
UrlMkGetSessionOption
Code examples:
Obtaining current Internet Explorer browser version and UserAgent
UrlMkGetSessionOption
..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
Declaration:
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

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

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

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

pdwBufferLength
[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.

dwReserved
[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  
FreeTranslation.com 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: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.203.76)
1 sec.Function: 'QueryPerformanceFrequency'
3 sec.Function: 'InternetAutodialHangup'
4 sec.
Function group: 'GDI+ Graphics'
7 sec.Function: 'LsaLookupSids'
8 sec.
Function group: 'Color'
10 sec.
Function group: 'Remote Procedure Call (RPC)'
11 sec.Function: 'CeEnumDBVolumes'
13 sec.Function: 'GetMenuItemCount'
15 sec.Function: 'CM_Connect_Machine'
16 sec.Function: 'PathYetAnotherMakeUniqueName'
Google
Advertise here!