GetPrivateProfileString
- Last UpdatedOct 29, 2026
- 1 minute read
Reads a specified parameter from an .ini file using the standard .ini format.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
GetPrivateProfileString |
System Info |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
GetPrivateProfileString( strSection, strName, strDefault, strFileName )
strSection
The section name to be read.
strName
The parameter name to be read.
strDefault
The default setting for this parameter. If the parameter is not found in the .ini file, the function will return this default setting.
strFileName
The path and name of the .ini file to be read.
Returned value
Returns the value of the specified parameter.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
GetPrivateProfileString( "boot loader", "timeout", "50", "C:\boot.ini" ) // Returned value = 30 |