Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getprofint()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetProfInt()
Return an integer from an entry in WIN.INI
------------------------------------------------------------------------------

Syntax
GetProfInt( <cSection>, <cEntry>, <nDefault> )   -->   nValue

Arguments
<cSection> is the name of a section in the WIN.INI file.

<cEntry> is the name of an entry within the <cSection> section
in WIN.INI.

<nDefault> is an integer value to use if the specified entry
is not found.

Returns
If the entry is found and the corresponding value is a valid
integer, its value is returned.

If the entry is found and the corresponding value is not a
valid integer, zero is returned.

If the entry is not found, the <nDefault> value is returned.

Description
The file WIN.INI in the Windows directory (e.g. C:\WINDOWS) is
examined for an entry like:
          [ <cSection> ]
                   .  .  .
          <cEntry> = 12345
and the value (here, 12345) is returned.

Example
// Suppose WIN.INI contains:
//        [ClipApp]
//        level=1
? GetProfInt( "ClipApp", "level", 0 )        // result: 1


See Also: GetProfString() GetPvProfInt() GetPvProfString() WriteProfString()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson