DoneEx INI-File Manager Library  API Help

  GetKeyCount

The function GetKeyCount retrieves number of keys in a section.

				
long GetKeyCount(long ini_file_num, 
                 long section_index
);				

Parameters
ini_file_num
[input] INI-file number which points to the data in memory structure. This number has to be saved from the return value of the previous call CreateINI or LoadINI functions.
section_index
[input] The index of the section where need to get a key number from.

Return Values
If succeed function returns the number of keys. Otherwise it returns -1. To get extended error information, call GetLastErr.

Remark