win32api.GetProfileVal

int/string = GetProfileVal(section, entry , defValue , iniName )

Retrieves entries from a windows INI file. This method encapsulates GetProfileString, GetProfileInt, GetPrivateProfileString and GetPrivateProfileInt.

Parameters

section : string

The section in the INI file to retrieve a value for.

entry : string

The entry within the section in the INI file to retrieve a value for.

defValue : int/string

The default value. The type of this parameter determines the methods return type.

iniName=None : string

The name of the INI file. If None, the system INI file is used.

Comments

This function is obsolete, applications should use the registry instead.

Win32 API References

Search for GetProfileString at msdn, google or google groups.

Search for GetProfileInt at msdn, google or google groups.

Search for GetPrivateProfileString at msdn, google or google groups.

Search for GetPrivateProfileInt at msdn, google or google groups.

Return Value

The return value is the same type as the default parameter.