Get_Profile_Decimal_Int

mov ax, 0004h ; Get_Profile_Decimal_Int

call cs:[ecx] ; points to service entry point passed to

; real-mode initialization procedure


The Get_Profile_Decimal_Int service returns a decimal integer value from the SYSTEM.INI file.

This service is available only with Windows version 3.1 or later.

Parameters

AX

Must be 0004h.

ECX

Specifies the default value if the setting has no current value.

DS:SI

Points to a null-terminated string specifying the name of the section to search. If the SI register is zero, the service searches the [386Enh] section.

DS:DI

Points to a null-terminated string specifying the name of the setting to search for.

Return Value

If the carry flag is clear, the ECX register contains the value of the specified setting. In the SYSTEM.INI file, the value can optionally begin with a plus (+) or minus (-) sign, but must contain all decimal digits with no embedded spaces or decimal points.

If both the carry and zero flags are set, the setting has no current value and ECX contains the default value. If just the carry flag is set, the specified setting cannot be found.

Uses

ECX, Flags