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:
Class library providing access to the System Registry
How to obtain Content-Type value for a file type from the System Registry
Reading VFP settings from the Windows Registry
Saving local machine ODBC Registry Entries to XML file
RegEnumValue
..msdn    Add comment     W32 Constants      Translate this page
Enumerates the values for the specified open registry key.
Code examples:
Class library providing access to the System Registry
Saving local machine ODBC Registry Entries to XML file
How to obtain Content-Type value for a file type from the System Registry
Reading VFP settings from the Windows Registry
Declaration:
LONG RegEnumValue(
  HKEY hKey,             // handle to key to query
  DWORD dwIndex,         // index of value to query
  LPTSTR lpValueName,    // value buffer
  LPDWORD lpcValueName,  // size of value buffer
  LPDWORD lpReserved,    // reserved
  LPDWORD lpType,        // type buffer
  LPBYTE lpData,         // data buffer
  LPDWORD lpcbData       // size of data buffer
);
FoxPro declaration:
DECLARE INTEGER RegEnumValue IN advapi32;
    INTEGER   hKey,;
    INTEGER   dwIndex,;
    STRING  @ lpValueName,;
    INTEGER @ lpcValueName,;
    INTEGER   lpReserved,;
    INTEGER @ lpType,;
    STRING  @ lpData,;
    INTEGER @ lpcbData
Parameters:
hKey
[in] Handle to a currently open key or a predefined reserved handle value.

dwIndex
[in] Specifies the index of the value to retrieve. This parameter should be zero for the first call to the RegEnumValue function and then be incremented for subsequent calls.

lpValueName
[out] Pointer to a buffer that receives the name of the value, including the terminating null character.

lpcValueName
[in/out] Pointer to a variable that specifies the size, in TCHARs, of the buffer pointed to by the lpValueName parameter. This size should include the terminating null character.

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
[out] Pointer to a buffer that receives the data for the value entry.

lpcbData
[in/out] Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpData parameter.
Return value:
If the function succeeds, the return value is 0 (ERROR_SUCCESS).
My comment:
The function copies one indexed value name and data block for the key each time it is called.
Word Index links for the RegEnumValue :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-03 12:00:00
Modified: 2001-11-26 16:03:33
Visited in last 7 days: 33
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.164.166)
58 sec.Function: 'ShellExecute'
1.32 min.Function: 'SetJob'
1.62 min.Function: 'SearchPath'
2.28 min.Function: 'WinHttpSetCredentials'
2.62 min.Function: 'recv'
3 min.Function: 'UnlockFile'
4.38 min.Function: 'RegisterHotKey'
5.13 min.Function: 'UnregisterHotKey'
5.52 min.Function: 'SetupGetInfInformation'
5.92 min.Function: 'WinHttpCloseHandle'
Google
Advertise here!