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
RegQueryInfoKey
..msdn    Add comment     W32 Constants      Translate this page
The RegQueryInfoKey function retrieves information about the specified registry key.
Code examples:
Class library providing access to the System Registry
Declaration:
LONG RegQueryInfoKey(
  HKEY hKey,
  LPTSTR lpClass,
  LPDWORD lpcClass,
  LPDWORD lpReserved,
  LPDWORD lpcSubKeys,
  LPDWORD lpcMaxSubKeyLen,
  LPDWORD lpcMaxClassLen,
  LPDWORD lpcValues,
  LPDWORD lpcMaxValueNameLen,
  LPDWORD lpcMaxValueLen,
  LPDWORD lpcbSecurityDescriptor,
  PFILETIME lpftLastWriteTime
);

FoxPro declaration:
DECLARE INTEGER RegQueryInfoKey IN advapi32;
    INTEGER   hKey,;
    STRING  @ lpClass,;
    INTEGER @ lpcbClass,;
    INTEGER   lpReserved,;
    INTEGER @ lpcSubKeys,;
    INTEGER @ lpcbMaxSubKeyLen,;
    INTEGER @ lpcbMaxClassLen,;
    INTEGER @ lpcValues,;
    INTEGER @ lpcbMaxValueNameLen,;
    INTEGER @ lpcbMaxValueLen,;
    INTEGER   lpcbSecurityDescr,;
    INTEGER   lpftLastWriteTime 

Parameters:
hKey
[in] Handle to an open key.

lpClass
[out] Pointer to a buffer that receives the null-terminated class string of the key.

lpcClass
[in, out] Pointer to a variable that specifies the size of the buffer pointed to by the lpClass parameter, in characters.

lpReserved
Reserved; must be NULL.

lpcSubKeys
[out] Pointer to a variable that receives the number of subkeys contained by the specified key.

lpcMaxSubKeyLen
[out] Pointer to a variable that receives the size of the key"s subkey with the longest name, in characters, not including the terminating null character.

lpcMaxClassLen
[out] Pointer to a variable that receives the size of the longest string specifying a subkey class, in characters.

lpcValues
[out] Pointer to a variable that receives the number of values associated with the key.

lpcMaxValueNameLen
[out] Pointer to a variable that receives the size of the key"s longest value name, in characters.

lpcMaxValueLen
[out] Pointer to a variable that receives the size of the longest data component among the key"s values, in bytes.

lpcbSecurityDescriptor
[out] Pointer to a variable that receives the size of the key"s security descriptor, in bytes.

lpftLastWriteTime
[out] Pointer to a FILETIME structure that receives the last write time.
Return value:
If the function succeeds, the return value is ERROR_SUCCESS (0).
My comment:
See also RegDeleteKey, RegEnumKeyEx, RegEnumValue, RegQueryValueEx.
Word Index links for the RegQueryInfoKey :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-10-25 15:57:35
Modified: 2004-10-25 16:00:39
Visited in last 7 days: 10
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.81.79.128)
13 sec.Function: 'LocaleNameToLCID'
26 sec.Function: 'GetTextExtentPoint32'
1 day(s)Function: 'waveInGetErrorText'
 Function: 'CeRapiInitEx'
 Function: 'SetMonitorBrightness'
 Function: 'Shell_NotifyIcon'
 Function: 'GdipCreatePathGradientI'
 Function: 'HeapAlloc'
 Function: 'wnsprintf'
 Function: 'CeOpenDatabase'
Google
Advertise here!