I must read the sections of a ini file
I not understtod why it not load the sections
I made
refer.
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilesectionnames
Not run on Windows 7/10 ?
I not understtod why it not load the sections
I made
local cIniFilter := triM(cFilePath( GetModuleFileName( GetInstance() ) ) + "test" +".ini")
local aFilters := GETPVPROFSECTIONS( cIniFilter )
STATIC FUNCTION GETPVPROFSECTIONS( cIni )
LOCAL cBuf := SPACE( 65536 )
LOCAL aSec := {}
GETPRIVATEPROFILESECTIONNAMES( cBuf, 65536, cIni )
WHILE LEFT( cBuf, 1 ) != CHR( 0 )
AADD( aSec, LEFT( cBuf, AT( CHR( 0 ), cBuf ) - 1 ) )
cBuf = SUBSTR( cBuf, AT( CHR( 0 ), cBuf ) + 1 )
ENDDO
RETURN aSec
DLL STATIC FUNCTION GETPRIVATEPROFILESECTIONNAMES( cRetBuf AS LPSTR, nSize AS LONG, cFileName AS LPSTR ) AS DWORD;
PASCAL FROM "GetPrivateProfileSectionNamesA" LIB "kernel32.dll"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilesectionnames
Not run on Windows 7/10 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com