Data Structures | |
| struct | RegParam |
| Struct used to open a registry. More... | |
Defines | |
| #define | SYSTEM_REGISTRY "/system" |
| System registry path. | |
| #define | REG_KEYNAME_SIZE 27 |
| Size of a keyname, used in sceRegGetKeys. | |
Typedefs | |
| typedef unsigned int | REGHANDLE |
| Typedef for a registry handle. | |
Enumerations | |
| enum | RegKeyTypes { REG_TYPE_DIR = 1, REG_TYPE_INT = 2, REG_TYPE_STR = 3, REG_TYPE_BIN = 4 } |
| Key types. More... | |
Functions | |
| int | sceRegOpenRegistry (struct RegParam *reg, int mode, REGHANDLE *h) |
| Open the registry. | |
| int | sceRegFlushRegistry (REGHANDLE h) |
| Flush the registry to disk. | |
| int | sceRegCloseRegistry (REGHANDLE h) |
| Close the registry. | |
| int | sceRegOpenCategory (REGHANDLE h, const char *name, int mode, REGHANDLE *hd) |
| Open a registry directory. | |
| int | sceRegRemoveCategory (REGHANDLE h, const char *name) |
| Remove a registry dir. | |
| int | sceRegCloseCategory (REGHANDLE hd) |
| Close the registry directory. | |
| int | sceRegFlushCategory (REGHANDLE hd) |
| Flush the registry directory to disk. | |
| int | sceRegGetKeyInfo (REGHANDLE hd, const char *name, REGHANDLE *hk, unsigned int *type, SceSize *size) |
| Get a key's information. | |
| int | sceRegGetKeyInfoByName (REGHANDLE hd, const char *name, unsigned int *type, SceSize *size) |
| Get a key's information by name. | |
| int | sceRegGetKeyValue (REGHANDLE hd, REGHANDLE hk, void *buf, SceSize size) |
| Get a key's value. | |
| int | sceRegGetKeyValueByName (REGHANDLE hd, const char *name, void *buf, SceSize size) |
| Get a key's value by name. | |
| int | sceRegSetKeyValue (REGHANDLE hd, const char *name, const void *buf, SceSize size) |
| Set a key's value. | |
| int | sceRegGetKeysNum (REGHANDLE hd, int *num) |
| Get number of subkeys in the current dir. | |
| int | sceRegGetKeys (REGHANDLE hd, char *buf, int num) |
| Get the key names in the current directory. | |
| int | sceRegCreateKey (REGHANDLE hd, const char *name, int type, SceSize size) |
| Create a key. | |
| int | sceRegRemoveRegistry (struct RegParam *reg) |
| Remove a registry (HONESTLY, DO NOT USE). | |
| #define REG_KEYNAME_SIZE 27 |
Size of a keyname, used in sceRegGetKeys.
| #define SYSTEM_REGISTRY "/system" |
System registry path.
| typedef unsigned int REGHANDLE |
Typedef for a registry handle.
| enum RegKeyTypes |
| int sceRegCloseCategory | ( | REGHANDLE | hd | ) |
Close the registry directory.
| hd | - The open registry dir handle |
| int sceRegCloseRegistry | ( | REGHANDLE | h | ) |
Close the registry.
| h | - The open registry handle |
Create a key.
| hd | - The open registry dir handle | |
| name | - Name of the key to create | |
| type | - Type of key (note cannot be a directory type) | |
| size | - Size of the allocated value space |
| int sceRegFlushCategory | ( | REGHANDLE | hd | ) |
Flush the registry directory to disk.
| hd | - The open registry dir handle |
| int sceRegFlushRegistry | ( | REGHANDLE | h | ) |
Flush the registry to disk.
| h | - The open registry handle |
| int sceRegGetKeyInfo | ( | REGHANDLE | hd, | |
| const char * | name, | |||
| REGHANDLE * | hk, | |||
| unsigned int * | type, | |||
| SceSize * | size | |||
| ) |
Get a key's information.
| hd | - The open registry dir handle | |
| name | - Name of the key | |
| hk | - Pointer to a REGHANDLE to get registry key handle | |
| type | - Type of the key, on of RegKeyTypes | |
| size | - The size of the key's value in bytes |
Get a key's information by name.
| hd | - The open registry dir handle | |
| name | - Name of the key | |
| type | - Type of the key, on of RegKeyTypes | |
| size | - The size of the key's value in bytes |
| int sceRegGetKeys | ( | REGHANDLE | hd, | |
| char * | buf, | |||
| int | num | |||
| ) |
Get the key names in the current directory.
| hd | - The open registry dir handle | |
| buf | - Buffer to hold the NUL terminated strings, should be num*REG_KEYNAME_SIZE | |
| num | - Number of elements in buf |
| int sceRegGetKeysNum | ( | REGHANDLE | hd, | |
| int * | num | |||
| ) |
Get number of subkeys in the current dir.
| hd | - The open registry dir handle | |
| num | - Pointer to an integer to receive the number |
Get a key's value.
| hd | - The open registry dir handle | |
| hk | - The open registry key handler (from sceRegGetKeyInfo) | |
| buf | - Buffer to hold the value | |
| size | - The size of the buffer |
Get a key's value by name.
| hd | - The open registry dir handle | |
| name | - The key name | |
| buf | - Buffer to hold the value | |
| size | - The size of the buffer |
Open a registry directory.
| h | - The open registry handle | |
| name | - The path to the dir to open (e.g. /CONFIG/SYSTEM) | |
| mode | - Open mode (can be 1 or 2, probably read or read/write | |
| hd | - Pointer to a REGHANDLE to receive the registry dir handle |
Open the registry.
| reg | - A filled in RegParam structure | |
| mode | - Open mode (set to 1) | |
| h | - Pointer to a REGHANDLE to receive the registry handle |
| int sceRegRemoveCategory | ( | REGHANDLE | h, | |
| const char * | name | |||
| ) |
Remove a registry dir.
| hd | - The open registry dir handle | |
| name | - The name of the key |
| int sceRegRemoveRegistry | ( | struct RegParam * | reg | ) |
Remove a registry (HONESTLY, DO NOT USE).
- Filled out registry parameter
Set a key's value.
| hd | - The open registry dir handle | |
| name | - The key name | |
| buf | - Buffer to hold the value | |
| size | - The size of the buffer |
1.5.2