GetProfSectionKeyCount

InstallShield 2025 » InstallScript Language Reference

Project: This information applies to InstallScript projects.

The GetProSectionKeyCount function returns the number of keys in the section specified by szSectionName in the initialization file specified by szFilename.

Syntax

GetProfSectionKeyCount ( szFilename, szSectionName );

Parameters

GetProfSectionKeyCount Parameters

Parameter

Description

szFilename

Specifies the fully qualified name of the .ini file in which to count the keys.

szSectionName

Specifies the name of the .ini file section in which to count the keys. The section name should not be enclosed within delimiting brackets ( [ ] ). The search for this name is not case-sensitive.

Return Values

GetProfSectionKeyCount Return Values

Return Value

Description

X

The number of keys in the specified section of the specified file.

< ISERR_SUCCESS

Indicates that the function could not determine the number of keys.

You can obtain the error message text associated with a large negative return value—for example, -2147024891 (0x80070005)—by calling FormatMessage.

See Also