---
name: "PROFILE_GetWineIniBool"
section: "3w"
platform: "linux"
package: "wine-doc"
version: "0.0.980315-1"
release: "Debian 2.0 (Hamm)"
platforms: ["linux"]
url: "https://new.carta.tech/PROFILE_GetWineIniBool"
---

# PROFILE\_GetWineIniBool(3w)

int PROFILE\_GetWineIniBool(

## NAME

PROFILE\_GetWineIniBool - int  PROFILE\_GetWineIniBool(

## SYNOPSIS

**int PROFILE\_GetWineIniBool**\
 **(**\
\
 	**char const \*section,**\
\
 	**char const \*key\_name,**\
\
 	**int def**\
 **);**

## DESCRIPTION

Char const  \*section, char const  \*key\_name, int  def )

Reads a boolean value from the wine.ini file.  This function attempts to be user-friendly by accepting 'n', 'N' (no), 'f', 'F' (false), or '0' (zero) for false, 'y', 'Y' (yes), 't', 'T' (true), or '1' (one) for true.  Anything else results in the return of the default value.

This function uses 1 to indicate true, and 0 for false.  You can check for existence by setting def to something other than 0 or 1 and examining the return value.

## SEE ALSO

[PROFILE\_GetWineIniString(3w)](/PROFILE_GetWineIniString/3w.md), [PROFILE\_GetWineIniInt(3w)](/PROFILE_GetWineIniInt/3w.md), [PROFILE\_EnumerateWineIniSection(3w)](/PROFILE_EnumerateWineIniSection/3w.md), [PROFILE\_LoadWineIni(3w)](/PROFILE_LoadWineIni/3w.md), [PROFILE\_GetStringItem(3w)](/PROFILE_GetStringItem/3w.md), [GetProfileInt16(3w)](/GetProfileInt16/3w.md), [GetProfileInt32A(3w)](/GetProfileInt32A/3w.md), [GetProfileInt32W(3w)](/GetProfileInt32W/3w.md), [GetProfileString16(3w)](/GetProfileString16/3w.md), [GetProfileString32A(3w)](/GetProfileString32A/3w.md), [GetProfileString32W(3w)](/GetProfileString32W/3w.md), [GetProfileSection32A(3w)](/GetProfileSection32A/3w.md), [WriteProfileString16(3w)](/WriteProfileString16/3w.md), [WriteProfileString32A(3w)](/WriteProfileString32A/3w.md), [WriteProfileString32W(3w)](/WriteProfileString32W/3w.md), [GetPrivateProfileInt16(3w)](/GetPrivateProfileInt16/3w.md), [GetPrivateProfileInt32A(3w)](/GetPrivateProfileInt32A/3w.md), [GetPrivateProfileInt32W(3w)](/GetPrivateProfileInt32W/3w.md), [GetPrivateProfileString16(3w)](/GetPrivateProfileString16/3w.md), [GetPrivateProfileString32A(3w)](/GetPrivateProfileString32A/3w.md), [GetPrivateProfileString32W(3w)](/GetPrivateProfileString32W/3w.md), [GetPrivateProfileSection32A(3w)](/GetPrivateProfileSection32A/3w.md), [WritePrivateProfileString16(3w)](/WritePrivateProfileString16/3w.md), [WritePrivateProfileString32A(3w)](/WritePrivateProfileString32A/3w.md), [WritePrivateProfileString32W(3w)](/WritePrivateProfileString32W/3w.md), [WritePrivateProfileSection32A(3w)](/WritePrivateProfileSection32A/3w.md), [WriteOutProfiles(3w)](/WriteOutProfiles/3w.md)
