- Contents
DesignerCOM API
II3ID::ReadProfileLong Method
Synopsis
This method reads a numeric value from the registry. To retrieve a value, specify the name of a section and the name of an entry, as if you were reading an INI file. Use II3ID::WriteProfileLong to write an integer value to the registry.
IDL Function Prototype
HRESULT ReadProfileLong(
[in] BSTR Section,
[in] BSTR Entry,
[in, optional, defaultvalue(0)] long DefaultValue,
[out, retval] long * Value
);
C/C++ Syntax
HRESULT ReadProfileLong(BSTR Section, BSTR Entry, long DefaultValue, long * Value);
Parameters
- Section
-
Section name is an arbitrary string that defines a location in the registry (e.g.: MyTotals)
- Entry
-
Entry is the name of a value that you wish to return from the section (e.g. TotalHits).
- DefaultValue
-
This optional default value is used when no value is returned by the read operation.
-
The value returned is a long integer.
- Value