Home Download Musics Developers
API Sources Tools File Format Technicals

Registry
[file68 library documentation.]


Detailed Description

Provides registry access functions.


Files

file  registry68.h
 Registry header.


Reserved registry key handles.

const registry68_key_t registry68_CRK
 aka HKEY_CLASSES_ROOT

const registry68_key_t registry68_CCK
 aka HKEY_CURRENT_CONFIG

const registry68_key_t registry68_CUK
 aka HKEY_CURRENT_USER

const registry68_key_t registry68_LMK
 aka HKEY_LOCAL_MACHINE

const registry68_key_t registry68_UK
 aka HKEY_USERS

const registry68_key_t registry68_IK
 Invalid key.


Typedefs

typedef void * registry68_key_t
 Registry key type (override Microsoft HKEY type).


Functions

registry68_key_t registry68_open (registry68_key_t hkey, char *kname)
 Open a named hierarchic key.

int registry68_gets (registry68_key_t hkey, const char *kname, char *kdata, int kdatasz)
 Get value of a named hierarchic string key.


Variables

char registry68_errorstr []
 Last error message.


Function Documentation

registry68_key_t registry68_open registry68_key_t  hkey,
char *  kname
 

Open a named hierarchic key.

Parameters:
hkey Opened key handle or one of reserved registry key handles.
kname Hierarchic key name. Slash '/' caractere is interpreted as sub-key separator.
Returns:
Registry key handle
Return values:
registry68InvalidKey Error

int registry68_gets registry68_key_t  hkey,
const char *  kname,
char *  kdata,
int  kdatasz
 

Get value of a named hierarchic string key.

Parameters:
hkey Opened key handle or one of reserved registry key handles.
kname Hierarchic key name. Slash '/' caractere is interpreted as sub-key separator.
kdata Returned string storage location
kdatasz Maximum size of kdata buffer.
Returns:
ErrorNo
Return values:
0 Success
<0 Error