mov ax, 0003h ; Get_Profile_Boolean call cs:[ecx] ; points to service entry point passed to ; real-mode initialization procedure |
The Get_Profile_Boolean service returns a Boolean value from the SYSTEM.INI file.
This service is available only with Windows version 3.1 or later.
AX
Must be 0003h.
ECX
Specifies the default value if the setting has no current value. The default value must be either 0FFFFFFFFh or 0h.
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.
If the carry flag is clear, the ECX register contains either 0FFFFFFFFh or 0h depending on the value of the setting as follows:
Setting | Value |
0 | 0h |
1 | 0FFFFFFFFh |
False | 0h |
No | 0h |
Off | 0h |
On | 0FFFFFFFFh |
True | 0FFFFFFFFh |
Yes | 0FFFFFFFFh |
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.
ECX, Flags