Using Win32 functions in Visual FoxPro Image Gallery
Registry
..msdn
GetPrivateProfileSectionNames
GetPrivateProfileString
GetProfileString
RegCloseKey
RegCreateKeyEx
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKeyEx
RegEnumValue
RegOpenKeyEx
RegQueryInfoKey
RegQueryValueEx
RegSaveKey
RegSetValueEx
SHEnumKeyEx
SHRegCloseUSKey
SHRegEnumUSKey
SHRegOpenUSKey
WritePrivateProfileSection
WritePrivateProfileString
Code examples:
Enumerating Performance Counters
Obtaining current Internet Explorer browser version and UserAgent
RegQueryValueEx
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the type and data for a specified value name associated with an open registry key.
Code examples:
Enumerating Performance Counters
Obtaining current Internet Explorer browser version and UserAgent
Declaration:
LONG RegQueryValueEx(
  HKEY hKey,            // handle to key
  LPCTSTR lpValueName,  // value name
  LPDWORD lpReserved,   // reserved
  LPDWORD lpType,       // type buffer
  LPBYTE lpData,        // data buffer
  LPDWORD lpcbData      // size of data buffer
);
FoxPro declaration:
DECLARE INTEGER RegQueryValueEx IN advapi32;
    INTEGER   hKey,;
    STRING    lpValueName,;
    INTEGER   lpReserved,;
    INTEGER @ lpType,;
    STRING  @ lpData,;
    INTEGER @ lpcbData

Parameters:
hKey
[in] Handle to a currently open key or a predefined reserved handle value.

lpValueName
[in] Pointer to a null-terminated string containing the name of the value to query.

lpReserved
Reserved; must be NULL.

lpType
[out] Pointer to a variable that receives a code indicating the type of data stored in the specified value.

lpData
[in, out] Pointer to a buffer that receives the value"s data.

lpcbData
[in/out] Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpData parameter. When the function returns, this variable contains the size of the data copied to lpData.
Return value:
If the function succeeds, the return value is 0 (ERROR_SUCCESS). If the function fails, the return value is a nonzero error code.
Word Index links for the RegQueryValueEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-09 12:00:00
Modified: 2001-11-26 16:03:36
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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.81.105)
1.63 min.Function: 'WinExec'
2.2 min.Function: 'WideCharToMultiByte'
2.45 min.Function: 'RegCloseKey'
2.53 min.Function: 'WritePrivateProfileSection'
4.12 min.Function: 'WinHttpQueryHeaders'
4.23 min.Function: 'TrackPopupMenuEx'
4.5 min.Function: 'WindowProc'
4.62 min.Function: 'Sleep'
4.77 min.Function: 'WSAGetLastError'
5.42 min.Function: 'ShellExecuteEx'
Google
Advertise here!