|
|
#1 |
|
Guest
Posts: n/a
|
System::Call kernel32::GetPrivateProfileSectionNamesA
Hi,
I try to call 'kernel32::GetPrivateProfileSectionNamesA' with 'System::Call' to get all section names from an Inifile. The API function returns a buffer with null-terminated strings. I use the following code: StrCpy $2 ${NSIS_MAX_STRLEN} StrCpy $3 "Test.ini" System::Call "kernel32::GetPrivateProfileSectionNamesA(t, i, t) i(.r1, r2, r3) .r4" MessageBox MB_ICONEXCLAMATION|MB_OK "$1 $4" $1 contains only the first section name. Is it possible to use something like shift on $1 to get the other parameters or does System::Call cut off itself the string at first nullchar. Is there a way to use GetPrivateProfileSectionNamesA in NSIS or should I better use FileOpen, FileRead? thx nethai |
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|