Boolean InitFileEnumStringSection(
const char * category,
const char * key,
InitFileReadFlags flags,
Boolean _pascal (*callback) (const char * stringSection,
word sectionNum,
void * enumData),
void * enumdata);
This routine enumerates a particular blob, allowing a callback routine to process each of the string sections in it. The routine will stop processing either after the last string section or when the callback routine returns
true
.
Pass this routine the following:
category
key
flags
InitFileReadFlags
indicating the method of character conversion upon reading (upcase all, downcase all, do not change).
callback
InitFileEnumStringSection()
does not use it.
This routine returns a Boolean value. It returns
true
if the callback routine halted the enumeration by returning
true
; otherwise, it returns
false
.
Callback Routine:
The callback routine may do anything it wants with the string section it receives. It must be declared _pascal. It must return a Boolean value: If it returns
true
,
InitFileEnumStringSection()
will stop processing the blob. If it returns
false
, processing will continue to the next string section, if any. The callback will receive the following parameters:
stringSection
sectionNum
enumData
InitFileEnumStringSection()
.Include: initfile.h
dword InitFileGetTimeLastModified(void);
This routine returns the time when the GEOS.INI file was last modified. The returned time is the value of the system counter when the file was last written.
Include: initfile.h
void InitFileMakeCanonicKeyCategory( char *keyCat, const TCHAR *src);
Converts a SBCS/DBCS (depending on GEOS version) string to an ASCIIX string without special INI characters. This is used to convert any type of string to one suitable for use as an INI file key or category.
Pass:
Include: initfile.h
Version: This routine is available on builds 4 or greater of the Nokia 9000i Communicator (see the Versions chapter for more information).
Boolean InitFileReadBoolean(
const char * category,
const char * key,
Boolean * bool);
This routine reads a Boolean entry in the GEOS.INI file, copying it into a passed buffer. It returns the first instance of the category/key combination it encounters, searching the local INI file first. Thus, local settings will always override system or network settings.
This routine is used for reading data written with
InitFileWriteBoolean()
. Pass it the following parameters:
category
key
bool
The function's return value will be
true
if an error occurs or if the entry could not be found; it will be
false
otherwise.
Warnings: The return value of this function is
not
the Boolean stored in the GEOS.INI file. That value is returned in the Boolean pointed to by
bool
.
Include: initfile.h
Boolean InitFileReadDataBlock(
const char * category,
const char * key,
MemHandle * block,
word * dataSize);
This routine reads an entry in the GEOS.INI file, allocating a new block and copying the data into it. The routine returns the first instance of the category/key combination it encounters, searching the local INI file first. Thus, local settings will always override system or network settings.
This routine is used for reading data written with
InitFileWriteData()
. Pass it the following parameters:
category
key
block
dataSize
The function's return value will be
true
if an error occurs or if the entry could not be found; it will be
false
otherwise.
Include: initfile.h
Boolean InitFileReadDataBuffer(
const char * category,
const char * key,
void * buffer,
word bufSize,
word * dataSize);
This routine reads an entry in the GEOS.INI file, copying it into a passed buffer. It returns the first instance of the category/key combination it encounters, searching the local INI file first. Thus, local settings will always override system or network settings.
This routine is used for reading data written with
InitFileWriteData()
. Pass it the following parameters:
category
key
buffer
bufSize
InitFileReadDataBlock()
.
dataSize
The function's return value will be
true
if an error occurs or if the entry could not be found; it will be
false
otherwise.
Include: initfile.h
Boolean InitFileReadInteger(
const char * category,
const char * key,
word * i);
This routine reads an integer entry in the GEOS.INI file, copying it into the passed variable. It returns the first instance of the category/key combination it encounters, searching the local INI file first. Thus, local settings will always override system or network settings.
This routine is used for reading data written with
InitFileWriteInteger()
. Pass it the following parameters:
category
key
i
The function's return value will be
true
if an error occurs or if the entry could not be found; it will be
false
otherwise.
Include: initfile.h
GEOS SDK TechDocs
|
|
ImpexExportToMetafile() ...
|
InitFileReadStringBlock() ...