include vmm.inc mov eax, Default ; default value mov esi, OFFSET32 Profile ; points to section name mov edi, OFFSET32 Keyname ; points to entry name VMMcall Get_Profile_Boolean jc not_found ; carry set if entry not found jz no_value ; zero set if entry has no value mov [Value], eax ; 0 or -1 returned in EAX
Returns the value of a Boolean entry in the SYSTEM.INI file. This service is only available during initialization. Uses Flags.
If the carry flag is clear and the zero flag is set, the entry exists but has no corresponding value. If the carry flag is set, the entry does not exist or is not a valid boolean string. In these cases, the EAX register contains the value of the Default parameter.
Default
Default value to return if the entry has no corresponding value, does not exist, or is not a valid boolean string.
Profile
Address of a null-terminated string identifying the section in the SYSTEM.INI file to search. Can be zero, in which case the service searches the [386Enh] section.
Keyname
Address of a null-terminated string specifying keyname to search for.
Valid boolean strings that signify false are 0, False, N, No, and Off. Valid boolean strings that signify true are 1, On, True, Y, and Yes. Non-English versions of Windows may have language-specific additions to this list.
See also Get_Profile_Decimal_Int, Get_Profile_Fixed_Point, Get_Profile_Hex_Int