Using Win32 functions in Visual FoxPro Image Gallery
Remote Application Programming (RAPI)
..msdn
CeCloseHandle
CeCopyFile
CeCreateDatabase
CeCreateDirectory
CeCreateFile
CeCreateProcess
CeDeleteDatabase
CeDeleteFile
CeDeleteRecord
CeEnumDBVolumes
CeFindAllFiles
CeFindFirstDatabaseEx
CeFindFirstFile
CeFindNextDatabaseEx
CeGetFileSize
CeGetLastError
CeGetSpecialFolderPath
CeGetStoreInformation
CeGetSystemInfo
CeGetSystemPowerStatusEx
CeGetTempPath
CeGetVersionEx
CeGlobalMemoryStatus
CeMoveFile
CeOidGetInfoEx
CeOpenDatabase
CeRapiFreeBuffer
CeRapiGetError
CeRapiInit
CeRapiInitEx
CeRapiInvoke
CeRapiUninit
CeReadFile
CeReadRecordProps
CeRegCloseKey
CeRegCreateKeyEx
CeRegDeleteKey
CeRegDeleteValue
CeRegEnumKeyEx
CeRegEnumValue
CeRegOpenKeyEx
CeRegQueryInfoKey
CeRegQueryValueEx
CeRegSetValueEx
CeRemoveDirectory
CeSeekDatabase
CeSetFilePointer
CeWriteFile
CeWriteRecordProps
Code examples:
Pocket PC: custom RAPI class for operating with the System Registry
CeRegQueryValueEx
..msdn    Add comment     W32 Constants      Translate this page
This function retrieves the type and data for a specified value name associated with an open registry key.
Code examples:
Pocket PC: custom RAPI class for operating with the System Registry
Declaration:
LONG CeRegQueryValueEx( 
  HKEY hKey, 
  LPCWSTR lpValueName, 
  LPDWORD lpReserved, 
  LPDWORD lpType, 
  LPBYTE lpData, 
  LPDWORD lpcbData
);
FoxPro declaration:
DECLARE INTEGER CeRegQueryValueEx IN rapi;
    INTEGER   hKey,;
    STRING    lpValueName,;
    INTEGER   lpReserved,;
    INTEGER @ lpType,;
    STRING  @ lpData,;
    INTEGER @ lpcbData

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

lpValueName
[in] Pointer to a string containing the name of the value to query. If this parameter is NULL or an empty string, the function retrieves the type and data for the key"s unnamed value.

lpReserved
[in] Reserved; set to NULL.

lpType
[out] Pointer to a variable that receives the type of data associated with the specified value.

lpData
[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:
ERROR_SUCCESS (0) indicates success.
My comment:
The key identified by hKey must have been opened with KEY_QUERY_VALUE access. To open the key, use the CeRegCreateKeyEx (RAPI) or CeRegOpenKeyEx (RAPI) function.

A registry key does not automatically have an unnamed or default value. Unnamed values can be of any type.
Word Index links for the CeRegQueryValueEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-07 20:47:11
Modified: 2004-07-07 20:50:18
Visited in last 7 days: 19
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.150.10)
7 sec.Function: 'SetCapture'
14 sec.Function: 'GdipSetPageScale'
22 sec.Function: 'capGetDriverDescription'
28 sec.Function: 'FtpCreateDirectory'
36 sec.Function: 'ReadProcessMemory'
44 sec.Function: 'GdipGetImageHorizontalResolution'
52 sec.Function: 'GdipSetImagePalette'
1 min.
Function group: 'Cursor'
1.13 min.Function: 'HeapLock'
1.28 min.Function: 'WTSUnRegisterSessionNotification'
Google
Advertise here!