-
11. Flash Configuration Manager - FlashConfigManager.DLL
The Flash Configuration Manager is a tool to allow third party developers to retain special settings on a
Unitech device, which will survive a Cold Boot. The settings are saved in flash memory and accessible via
the FlashConfigManager.dll functions described in this document. In general the configuration functions as a
way to maintain settings that may or may not be application specific. Functions are provided to check, set,
add, and remove individual keys.
11.1. Open Camera
Function Description:
The function to get a current setting is given below:
Function call:
INT GetConfigValue (char * name, void * value);
Parameters(Input):
name:
char *
: The name of the entry you wish to get
Parameters(Output):
value:
void *
: A void pointer with no memory allocated to it. The dl will
allocate the correct amount of space and copy the appropriate values from the configuration
settings.
Return code:
0 upon success. An error code (see "Handling Errors" section) upon failure.
11.2. Updating a Configuration Setting
Function Description:
The function to change the value of an identified setting
Function call:
int SetConfigValue(char * name, void * value);
Parameters(Input):
name:
char *
: The name of the entry you wish to set.
value:
void *
: Void pointer to a buffer containing the string to set to. For
ease of file system value will be an array of bytes. Value must be already allocated and written.
Type restricts the possible values that the array of bytes can be, but does not indicate actual data
type. For example for type ‘int’ the appropriate value will be a char * with characters in the ASCII
range of 48 to 57 (ie; numbers) not an actual int.
Return code:
0 upon success. error code upon failure.
11.3. Adding a Customer Configuration Setting
Function Description:
This function will create a new entry in the configuration file. Name, type, and value are supplied.
Function call:
INT AddConfigValue (char * name, char * type, void * value);
Parameters(Input):
name:
char *
: The name of the entry you wish to set.
type:
char *
: Specifies the type of value this is, which will affect what
data is in bounds for the value parameter. Acceptable values and their corresponding value ranges
are given below. (bool: "0" or "1", int: only characters 0-9, string: any character)
value:
void *
: A void pointer with memory allocated to it. The value
stored here will be the value returned by GetConfigValue if it is called for the same name.
Return code:
0 upon success. error code upon failure
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...