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:
Retrieving the names of all sections in an initialization file
GetPrivateProfileSectionNames
..msdn    Add comment     W32 Constants      Translate this page
The GetPrivateProfileSectionNames function retrieves the names of all sections in an initialization file.
Code examples:
Retrieving the names of all sections in an initialization file
Declaration:
DWORD GetPrivateProfileSectionNames(
  LPTSTR lpszReturnBuffer,  // return buffer
  DWORD nSize,              // size of return buffer
  LPCTSTR lpFileName        // initialization file name
);
FoxPro declaration:
DECLARE INTEGER GetPrivateProfileSectionNames IN kernel32;
    STRING  @ lpszReturnBuffer,;
    INTEGER   nSize,;
    STRING    lpFileName

Parameters:
lpszReturnBuffer
[out] Pointer to a buffer that receives the section names associated with the named file.

nSize
[in] Specifies the size, in TCHARs, of the buffer pointed to by the lpszReturnBuffer parameter.

lpFileName
[in] Pointer to a null-terminated string that specifies the name of the initialization file.
Return value:
The return value specifies the number of characters copied to the specified buffer, not including the terminating null character.
My comment:
This function is provided only for compatibility with 16-bit Windows-based applications. Applications should store initialization information in the registry.

Calls to profile functions might be mapped to the registry instead of to the initialization files. When the operation has been mapped, the GetPrivateProfileSectionNames function retrieves information from the registry, not from the initialization file; the change in the storage location has no effect on the function"s behavior.
Word Index links for the GetPrivateProfileSectionNames :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-15 20:11:21
Modified: 2002-01-15 20:13:52
Visited in last 7 days: 18
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.178.153)
10 sec.Function: 'PathFindExtension'
23 sec.Function: 'SHRegEnumUSKey'
35 sec.Function: 'JetUpdate'
49 sec.Function: 'NetMessageNameEnum'
1.07 min.Function: 'GdiplusShutdown'
1.32 min.Function: 'ExitWindows'
1.53 min.Function: 'FindWindowEx'
1.75 min.Function: 'FindExecutable'
1.98 min.Function: 'ws_select'
2.22 min.Function: 'CeGetLastError'
Google
Advertise here!