BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
riregistrylib.c File Reference
#include "blitzlib.h"
#include "blitzexec.h"
#include <stddef.h>

Data Structures

struct  regstructure

Macros

#define S   BL_STRING
#define LG   BL_LONG
#define LVO_LockRegistry   (-30)
#define LVO_UnlockRegistry   (-36)
#define LVO_SetRegistryBaseLibrary   (-42)
#define LVO_ExistsLibrary   (-48)
#define LVO_GetLibraryValue   (-54)
#define LVO_GetRegistryVariable   (-60)
#define LVO_SetRegistryVariable   (-66)
#define LVO_ChangeRegistryVariable   (-72)
#define LVO_NewRegistryLibrary   (-78)
#define LVO_ParseRegistryLibrary   (-84)
#define LVO_NextParseItem   (-96)
#define LVO_ChangeRegistryAccess   (-102)
#define LVO_DeleteRegistryLibrary   (-108)
#define LVO_DeleteRegistryVariable   (-114)
#define LVO_NumRegistryLibraryVariables   (-120)
#define LVO_SaveRegistryLibrary   (-126)
#define LVO_LoadRegistryLibrary   (-132)
#define LVO_DeleteRegistryLibraryVariables   (-138)
#define LVO_SetLibraryValue   (-144)
#define LVO_SetRegistryVariableIndex   (-150)
#define LVO_RenameRegistryVariable   (-156)
#define LVO_SaveLibraryVariables   (-162)
#define LVO_RenameRegistryLibrary   (-174)
#define LVO_InsertNewRegistryLibrary   (-180)
#define LVO_GetStructureVariables   (-186)
#define LVO_FreeStructureVariables   (-192)
#define LVO_LoadLibraryVariables   (-198)
#define VAR_STRING   1
#define VAR_DATA   2
#define VAR_BOOLEAN   3
#define VAR_INTEGER   4
#define SLOT()
#define CALL(off, d0, d1, d2, a1, a2)
#define CORRECTA3(lens)
#define NAMECALL(f, off)
#define NAME2CALL(f, off)
 ParseRegistryLibrary LibraryName: ParseRegistryLibrary (-84).

Functions

void _isregistryopen (void)
void _lockregistry (void)
void _unlockregistry (void)
void _setregistrybaselibrary (void)
void _existsregistrylibrary (void)
void _getlibraryvalue (void)
void _getregistryvariable (void)
void _setregistryvariable (void)
void _setregistryvariable2 (void)
void _changeregistryvariable (void)
void _newregistrylibrary (void)
void _newregistrylibrary2 (void)
void _parseregistrylibrary (void)
void _nextparseitem (void)
void _changeregistryaccess (void)
void _deleteregistrylibrary (void)
void _deleteregistryvariable (void)
void _numregistrylibraryvariables (void)
void _saveregistrylibrary (void)
void _loadregistrylibrary (void)
void _getregistrystringvariable (void)
void _setregistryboolvariable (void)
void _parseitemname (void)
void _parseitemvalue (void)
void _getregistryboolvariable (void)
void _setregistryintvariable (void)
void _getregistryintvariable (void)
void _deleteregistrylibraryvariables (void)
void _setlibraryvalue (void)
void _setregistryvariableindex (void)
void _renameregistryvariable (void)
void _savelibraryvariables (void)
void _renameregistrylibrary (void)
void _insertnewregistrylibrary (void)
void _insertnewregistrylibrary2 (void)
void _getstructurevariables (void)
void _freestructurevariables (void)
void _loadlibraryvariables (void)
void riregistrylib_libinit (void)
void riregistrylib_libfinit (void)
static ULONG regjsr (WORD off, ULONG a0, ULONG d0, ULONG d1, ULONG d2, ULONG a1, ULONG a2, ULONG a3, ULONG a4)
static ULONG calllib (WORD off, ULONG d0, ULONG d1, ULONG d2, ULONG a1, ULONG a2, ULONG a3, ULONG a4)
static ULONG retstring (const UBYTE *s)
static ULONG returnstring (void)
static void libinit_c (void)
 init: opens registry.library (any version).
static void libfinit_c (void)
 finit: unlocks every structure still locked, closes the library.
static ULONG isregistryopen_c (void)
 IsRegistryOpen: whether registry.library is open.
static ULONG lockregistry_c (ULONG mode)
 LockRegistry AccessMode: locks the registry, the structure becomes current.
static void unlockregistry_c (void)
 UnlockRegistry: unlocks the current structure and pops it.
static ULONG setregistrybaselibrary_c (ULONG name)
 SetRegistryBaseLibrary LibraryName: SetRegistryBaseLibrary (-42).
static ULONG existsregistrylibrary_c (ULONG name)
 ExistsRegistryLibrary LibraryName: ExistsLibrary (-48).
static ULONG getstring (WORD off, ULONG name, const ULONG *lens)
static ULONG getlibraryvalue_c (ULONG name, const ULONG *lens)
 GetLibraryValue$(LibraryName): the library's value as a string.
static ULONG getregistrystringvariable_c (ULONG name, const ULONG *lens)
 GetRegistryStringVariable(VariableName): a string variable's value.
static ULONG getregistryvariable_c (ULONG name)
 GetRegistryVariable(VariableName): GetRegistryVariable (-60).
static ULONG doset (ULONG type, ULONG name, ULONG value, ULONG size)
static ULONG setregistryintvariable_c (ULONG name, ULONG v)
 SetRegistryIntVariable VariableName,#: sets an integer variable (type 4).
static ULONG setregistryboolvariable_c (ULONG name, BB_BOOL v)
 SetRegistryBoolVariable VariableName,True/False: sets a boolean variable (type 3).
static ULONG setregistryvariable_c (ULONG name, ULONG v, const ULONG *lens)
 SetRegistryVariable VariableName,Value$: sets a string variable (type 1).
static ULONG setregistryvariable2_c (ULONG name, ULONG v, ULONG size)
 SetRegistryVariable VariableName,Address,ByteSize: sets a data variable (type 2).
static ULONG changeregistryvariable_c (ULONG name, ULONG v, ULONG type, ULONG size)
 ChangeRegistryVariable VariableName,Data,Type,ByteSize: ChangeRegistryVariable (-72).
static ULONG newregistrylibrary2_c (ULONG name, ULONG v, ULONG file)
 NewRegistryLibrary LibraryName,LibraryValue,VariableFilename: NewRegistryLibrary (-78).
static ULONG newregistrylibrary_c (ULONG name, ULONG v)
 NewRegistryLibrary LibraryName,LibraryValue: as above with no variable file (a3 = 0).
static ULONG nextparseitem_c (void)
 SaveRegistryLibrary LibraryName,FileName: SaveRegistryLibrary (-126).
static ULONG changeregistryaccess_c (void)
 ChangeRegistryAccess: ChangeRegistryAccess (-102), to read access.
static ULONG getregistryintvariable_c (ULONG name)
 GetRegistryIntVariable(VariableName) / GetRegistryBoolVariable(VariableName).
static ULONG setregistryvariableindex_c (ULONG name, ULONG v, ULONG type, ULONG size, ULONG index)
 SetRegistryVariableIndex VariableName,Data,Type,ByteSize,Index: SetRegistryVariableIndex (-150).
static ULONG insertnewregistrylibrary2_c (ULONG name, ULONG v, ULONG before, ULONG file)
 InsertNewRegistryLibrary LibraryName,LibraryValue,InsertBefore,VariableFilename.
static ULONG insertnewregistrylibrary_c (ULONG name, ULONG v, ULONG before)
 InsertNewRegistryLibrary LibraryName,LibraryValue,InsertBefore: as above, no file (a3 = 0).
static ULONG parseitemname_c (void)
 ParseItemName$: the name of the last parsed item (the structure's +14).
static ULONG parseitemvalue_c (void)
 ParseItemValue$: the string value of the last parsed item.

Variables

struct { 
   ULONG   structs [16] 
   UWORD   curstruct 
   ULONG   regstruct 
   struct Library *   regbase 
} st
static ULONG call_a3a4 [2]

Macro Definition Documentation

◆ CALL

#define CALL ( off,
d0,
d1,
d2,
a1,
a2 )
Value:
calllib(off, d0, d1, d2, a1, a2, (ULONG)blitz_string, (ULONG)blitz_locals)
register UBYTE * blitz_locals
Definition blitzlib.h:269
register UBYTE * blitz_string
Definition blitzlib.h:270
static ULONG calllib(WORD off, ULONG d0, ULONG d1, ULONG d2, ULONG a1, ULONG a2, ULONG a3, ULONG a4)
Definition riregistrylib.c:445

◆ CORRECTA3

#define CORRECTA3 ( lens)
Value:
(blitz_string -= (lens)[-1] + 1)

◆ LG

#define LG   BL_LONG

◆ LVO_ChangeRegistryAccess

#define LVO_ChangeRegistryAccess   (-102)

◆ LVO_ChangeRegistryVariable

#define LVO_ChangeRegistryVariable   (-72)

◆ LVO_DeleteRegistryLibrary

#define LVO_DeleteRegistryLibrary   (-108)

◆ LVO_DeleteRegistryLibraryVariables

#define LVO_DeleteRegistryLibraryVariables   (-138)

◆ LVO_DeleteRegistryVariable

#define LVO_DeleteRegistryVariable   (-114)

◆ LVO_ExistsLibrary

#define LVO_ExistsLibrary   (-48)

◆ LVO_FreeStructureVariables

#define LVO_FreeStructureVariables   (-192)

◆ LVO_GetLibraryValue

#define LVO_GetLibraryValue   (-54)

◆ LVO_GetRegistryVariable

#define LVO_GetRegistryVariable   (-60)

◆ LVO_GetStructureVariables

#define LVO_GetStructureVariables   (-186)

◆ LVO_InsertNewRegistryLibrary

#define LVO_InsertNewRegistryLibrary   (-180)

◆ LVO_LoadLibraryVariables

#define LVO_LoadLibraryVariables   (-198)

◆ LVO_LoadRegistryLibrary

#define LVO_LoadRegistryLibrary   (-132)

◆ LVO_LockRegistry

#define LVO_LockRegistry   (-30)

◆ LVO_NewRegistryLibrary

#define LVO_NewRegistryLibrary   (-78)

◆ LVO_NextParseItem

#define LVO_NextParseItem   (-96)

◆ LVO_NumRegistryLibraryVariables

#define LVO_NumRegistryLibraryVariables   (-120)

◆ LVO_ParseRegistryLibrary

#define LVO_ParseRegistryLibrary   (-84)

◆ LVO_RenameRegistryLibrary

#define LVO_RenameRegistryLibrary   (-174)

◆ LVO_RenameRegistryVariable

#define LVO_RenameRegistryVariable   (-156)

◆ LVO_SaveLibraryVariables

#define LVO_SaveLibraryVariables   (-162)

◆ LVO_SaveRegistryLibrary

#define LVO_SaveRegistryLibrary   (-126)

◆ LVO_SetLibraryValue

#define LVO_SetLibraryValue   (-144)

◆ LVO_SetRegistryBaseLibrary

#define LVO_SetRegistryBaseLibrary   (-42)

◆ LVO_SetRegistryVariable

#define LVO_SetRegistryVariable   (-66)

◆ LVO_SetRegistryVariableIndex

#define LVO_SetRegistryVariableIndex   (-150)

◆ LVO_UnlockRegistry

#define LVO_UnlockRegistry   (-36)

◆ NAME2CALL

#define NAME2CALL ( f,
off )
Value:
static ULONG BLITZ_ROUTINE f(ULONG a BL_REG(d0), ULONG b BL_REG(d1)) \
{ \
return CALL(off, a, b, 0, a, b); \
}
#define BL_REG(r)
Definition blitzlib.h:280
#define BLITZ_ROUTINE
Definition blitzlib.h:313
#define CALL(off, d0, d1, d2, a1, a2)
Definition riregistrylib.c:452

ParseRegistryLibrary LibraryName: ParseRegistryLibrary (-84).

DeleteRegistryLibrary LibraryName: DeleteRegistryLibrary (-108).

DeleteRegistryVariable VariableName: DeleteRegistryVariable (-114).

NumRegistryLibraryVariables VariableName: NumRegistryLibraryVariables (-120).

DeleteRegistryLibraryVariables LibraryName: DeleteRegistryLibraryVariables (-138).

◆ NAMECALL

#define NAMECALL ( f,
off )
Value:
static ULONG BLITZ_ROUTINE f(ULONG name BL_REG(d0)) \
{ \
return CALL(off, name, 0, 0, name, 0); \
}
char * name
Definition asllib.c:150

◆ S

#define S   BL_STRING

◆ SLOT

#define SLOT ( )
Value:
(*(ULONG *)((UBYTE *)st.structs + (WORD)st.curstruct))
static struct @116141142274037024203205202074071112317221044374 st

◆ VAR_BOOLEAN

#define VAR_BOOLEAN   3

◆ VAR_DATA

#define VAR_DATA   2

◆ VAR_INTEGER

#define VAR_INTEGER   4

◆ VAR_STRING

#define VAR_STRING   1

Function Documentation

◆ _changeregistryaccess()

void _changeregistryaccess ( void )

◆ _changeregistryvariable()

void _changeregistryvariable ( void )

◆ _deleteregistrylibrary()

void _deleteregistrylibrary ( void )

◆ _deleteregistrylibraryvariables()

void _deleteregistrylibraryvariables ( void )

◆ _deleteregistryvariable()

void _deleteregistryvariable ( void )

◆ _existsregistrylibrary()

void _existsregistrylibrary ( void )

◆ _freestructurevariables()

void _freestructurevariables ( void )

◆ _getlibraryvalue()

void _getlibraryvalue ( void )

◆ _getregistryboolvariable()

void _getregistryboolvariable ( void )

◆ _getregistryintvariable()

void _getregistryintvariable ( void )

◆ _getregistrystringvariable()

void _getregistrystringvariable ( void )

◆ _getregistryvariable()

void _getregistryvariable ( void )

◆ _getstructurevariables()

void _getstructurevariables ( void )

◆ _insertnewregistrylibrary()

void _insertnewregistrylibrary ( void )

◆ _insertnewregistrylibrary2()

void _insertnewregistrylibrary2 ( void )

◆ _isregistryopen()

void _isregistryopen ( void )

◆ _loadlibraryvariables()

void _loadlibraryvariables ( void )

◆ _loadregistrylibrary()

void _loadregistrylibrary ( void )

◆ _lockregistry()

void _lockregistry ( void )

◆ _newregistrylibrary()

void _newregistrylibrary ( void )

◆ _newregistrylibrary2()

void _newregistrylibrary2 ( void )

◆ _nextparseitem()

void _nextparseitem ( void )

◆ _numregistrylibraryvariables()

void _numregistrylibraryvariables ( void )

◆ _parseitemname()

void _parseitemname ( void )

◆ _parseitemvalue()

void _parseitemvalue ( void )

◆ _parseregistrylibrary()

void _parseregistrylibrary ( void )

◆ _renameregistrylibrary()

void _renameregistrylibrary ( void )

◆ _renameregistryvariable()

void _renameregistryvariable ( void )

◆ _savelibraryvariables()

void _savelibraryvariables ( void )

◆ _saveregistrylibrary()

void _saveregistrylibrary ( void )

◆ _setlibraryvalue()

void _setlibraryvalue ( void )

◆ _setregistrybaselibrary()

void _setregistrybaselibrary ( void )

◆ _setregistryboolvariable()

void _setregistryboolvariable ( void )

◆ _setregistryintvariable()

void _setregistryintvariable ( void )

◆ _setregistryvariable()

void _setregistryvariable ( void )

◆ _setregistryvariable2()

void _setregistryvariable2 ( void )

◆ _setregistryvariableindex()

void _setregistryvariableindex ( void )

◆ _unlockregistry()

void _unlockregistry ( void )

◆ calllib()

ULONG calllib ( WORD off,
ULONG d0,
ULONG d1,
ULONG d2,
ULONG a1,
ULONG a2,
ULONG a3,
ULONG a4 )
static

◆ changeregistryaccess_c()

ULONG changeregistryaccess_c ( void )
static

ChangeRegistryAccess: ChangeRegistryAccess (-102), to read access.

Returns
nothing (a statement; the thunk keeps d0)

◆ changeregistryvariable_c()

ULONG changeregistryvariable_c ( ULONG name,
ULONG v,
ULONG type,
ULONG size )
static

ChangeRegistryVariable VariableName,Data,Type,ByteSize: ChangeRegistryVariable (-72).

Parameters
named0: the variable name (a1)
vd1: the data (a2)
typed2: the type (d0 for the call)
sized3: the byte size (d1 for the call)
Returns
d0: registry.library's result, 0 without a structure

◆ doset()

ULONG doset ( ULONG type,
ULONG name,
ULONG value,
ULONG size )
static

◆ existsregistrylibrary_c()

ULONG existsregistrylibrary_c ( ULONG name)
static

ExistsRegistryLibrary LibraryName: ExistsLibrary (-48).

Parameters
named0: the library name (a1, d0 = 0 for the call)
Returns
d0: registry.library's result, 0 without a structure

◆ getlibraryvalue_c()

ULONG getlibraryvalue_c ( ULONG name,
const ULONG * lens )
static

GetLibraryValue$(LibraryName): the library's value as a string.

GetLibraryValue (-54); the result is the structure's value at +24 if its type (+18) is 1 (a string), else "". The result goes where the argument was (a3 back by its length + 1). Without a structure "" (fixed, #780: the original reads the type and value at 18/24 of address 0). a3 ends on the string's 0 (fixed, #783).

Parameters
named0: the library name
lensa2: the argument stack (lens[-1] = the length of name)
Returns
d0: the length of the string at a3

◆ getregistryintvariable_c()

ULONG getregistryintvariable_c ( ULONG name)
static

GetRegistryIntVariable(VariableName) / GetRegistryBoolVariable(VariableName).

GetRegistryVariable (-60); if its result (the type, a word) is 3 (boolean) or 4 (integer), the structure's value at +24, else 0.

Parameters
named0: the variable name
Returns
d0: the value, 0 for another type or without a structure

◆ getregistrystringvariable_c()

ULONG getregistrystringvariable_c ( ULONG name,
const ULONG * lens )
static

GetRegistryStringVariable(VariableName): a string variable's value.

GetRegistryVariable (-60), then as GetLibraryValue$: the structure's value if it is a string, else "" (also without a structure, fixed #780; a3 on the 0, fixed #783).

Parameters
named0: the variable name
lensa2: the argument stack (lens[-1] = the length of name)
Returns
d0: the length of the string at a3

◆ getregistryvariable_c()

ULONG getregistryvariable_c ( ULONG name)
static

GetRegistryVariable(VariableName): GetRegistryVariable (-60).

Parameters
named0: the variable name (a1, d0 = 0 for the call)
Returns
d0.w: registry.library's result (the type), 0 without a structure

◆ getstring()

ULONG getstring ( WORD off,
ULONG name,
const ULONG * lens )
static

◆ insertnewregistrylibrary2_c()

ULONG insertnewregistrylibrary2_c ( ULONG name,
ULONG v,
ULONG before,
ULONG file )
static

InsertNewRegistryLibrary LibraryName,LibraryValue,InsertBefore,VariableFilename.

InsertNewRegistryLibrary (-180): a1 = the name, a2 = the value, a3 = the variable file name, a4 = the library to insert before. DIFF: a3/a4 are restored after the call (the original leaves them set - the program's string pointer and locals).

Parameters
named0: the library name
vd1: the library value
befored2: the name to insert before
filed3: the variable file name
Returns
d0: registry.library's result, 0 without a structure

◆ insertnewregistrylibrary_c()

ULONG insertnewregistrylibrary_c ( ULONG name,
ULONG v,
ULONG before )
static

InsertNewRegistryLibrary LibraryName,LibraryValue,InsertBefore: as above, no file (a3 = 0).

Parameters
named0: the library name
vd1: the library value
befored2: the name to insert before
Returns
d0: registry.library's result, 0 without a structure

◆ isregistryopen_c()

ULONG isregistryopen_c ( void )
static

IsRegistryOpen: whether registry.library is open.

Returns
d0: the library base, 0 if not opened

◆ libfinit_c()

void libfinit_c ( void )
static

finit: unlocks every structure still locked, closes the library.

UnlockRegistry on structs[curstruct] ... structs[4] (those not 0, with d0 = the index, a1 = the stack), then CloseLibrary. Fixed (#779): the original leaves regstruct and the base set; both are cleared, regstruct also without the library.

◆ libinit_c()

void libinit_c ( void )
static

init: opens registry.library (any version).

Without it IsRegistryOpen is 0 and every command returns 0.

◆ lockregistry_c()

ULONG lockregistry_c ( ULONG mode)
static

LockRegistry AccessMode: locks the registry, the structure becomes current.

LockRegistry (-30, d0 = the mode); the result is pushed on the structure stack and is the current structure - also 0 (the following calls then do nothing, UnlockRegistry still pops it: no defect). With 15 structures on the stack (it is full) nothing is called or pushed and the result is 0 (fixed, #781: the original writes the 16th over curstruct and regstruct).

Parameters
moded0: the access mode
Returns
d0: the registry structure, 0 without the library or with a full stack

◆ newregistrylibrary2_c()

ULONG newregistrylibrary2_c ( ULONG name,
ULONG v,
ULONG file )
static

NewRegistryLibrary LibraryName,LibraryValue,VariableFilename: NewRegistryLibrary (-78).

a1 = the name, a2 = the value, a3 = the variable file name. DIFF: a3/a4 are restored after the call (the original leaves the file name in a3).

Parameters
named0: the library name
vd1: the library value
filed2: the variable file name
Returns
d0: registry.library's result, 0 without a structure

◆ newregistrylibrary_c()

ULONG newregistrylibrary_c ( ULONG name,
ULONG v )
static

NewRegistryLibrary LibraryName,LibraryValue: as above with no variable file (a3 = 0).

Parameters
named0: the library name
vd1: the library value
Returns
d0: registry.library's result, 0 without a structure

◆ nextparseitem_c()

ULONG nextparseitem_c ( void )
static

SaveRegistryLibrary LibraryName,FileName: SaveRegistryLibrary (-126).

LoadRegistryLibrary LibraryName,FileName: LoadRegistryLibrary (-132).

SetLibraryValue LibraryName,Value: SetLibraryValue (-144).

RenameRegistryVariable VariableName,NewVariableName: RenameRegistryVariable (-156).

SaveLibraryVariables LibraryName,Filename: SaveLibraryVariables (-162).

RenameRegistryLibrary LibraryName,NewLibraryName: RenameRegistryLibrary (-174).

GetStructureVariables Description,Structure: GetStructureVariables (-186).

FreeStructureVariables Description,Structure: FreeStructureVariables (-192).

LoadLibraryVariables LibraryName,Filename: LoadLibraryVariables (-198).

NextParseItem: NextParseItem (-96), the next item of a parse.

Returns
d0.w: registry.library's result, 0 without a structure

◆ parseitemname_c()

ULONG parseitemname_c ( void )
static

ParseItemName$: the name of the last parsed item (the structure's +14).

a3 ends on the 0 (fixed, #783: the original left it behind the 0).

Returns
d0: the length of the string at a3, 0 without a structure

◆ parseitemvalue_c()

ULONG parseitemvalue_c ( void )
static

ParseItemValue$: the string value of the last parsed item.

The structure's value at +24 if its type is 1 (a string), else "". a3 ends on the 0 (fixed, #783: the original left it behind the 0).

Returns
d0: the length of the string at a3, 0 without a structure

◆ regjsr()

ULONG regjsr ( WORD off,
ULONG a0,
ULONG d0,
ULONG d1,
ULONG d2,
ULONG a1,
ULONG a2,
ULONG a3,
ULONG a4 )
static

◆ retstring()

ULONG retstring ( const UBYTE * s)
static

◆ returnstring()

ULONG returnstring ( void )
static

◆ riregistrylib_libfinit()

void riregistrylib_libfinit ( void )

◆ riregistrylib_libinit()

void riregistrylib_libinit ( void )

◆ setregistrybaselibrary_c()

ULONG setregistrybaselibrary_c ( ULONG name)
static

SetRegistryBaseLibrary LibraryName: SetRegistryBaseLibrary (-42).

Parameters
named0: the library name (also in d0 for the call, a1)
Returns
d0: registry.library's result, 0 without a structure

◆ setregistryboolvariable_c()

ULONG setregistryboolvariable_c ( ULONG name,
BB_BOOL v )
static

SetRegistryBoolVariable VariableName,True/False: sets a boolean variable (type 3).

SetRegistryVariable (-66) with the size 4 (fixed, #782: the original passes the caller's d2, the command has no third argument).

Parameters
named0: the variable name (a1)
vd1: the truth value (a2)
Returns
d0: registry.library's result, 0 without a structure

◆ setregistryintvariable_c()

ULONG setregistryintvariable_c ( ULONG name,
ULONG v )
static

SetRegistryIntVariable VariableName,#: sets an integer variable (type 4).

SetRegistryVariable (-66) with the size 4 (fixed, #782: the original passes the caller's d2, the command has no third argument).

Parameters
named0: the variable name (a1)
vd1: the value (a2)
Returns
d0: registry.library's result, 0 without a structure

◆ setregistryvariable2_c()

ULONG setregistryvariable2_c ( ULONG name,
ULONG v,
ULONG size )
static

SetRegistryVariable VariableName,Address,ByteSize: sets a data variable (type 2).

SetRegistryVariable (-66).

Parameters
named0: the variable name (a1)
vd1: the address of the data (a2)
sized2: the byte size (d1 for the call)
Returns
d0: registry.library's result, 0 without a structure

◆ setregistryvariable_c()

ULONG setregistryvariable_c ( ULONG name,
ULONG v,
const ULONG * lens )
static

SetRegistryVariable VariableName,Value$: sets a string variable (type 1).

SetRegistryVariable (-66) with the size the length of Value$ (fixed, #782: the original passes the caller's d2, this form has no third argument).

Parameters
named0: the variable name (a1)
vd1: the string (a2)
lensa2: the argument stack (lens[-1] the length of name, lens[-2] that of the string)
Returns
d0: registry.library's result, 0 without a structure

◆ setregistryvariableindex_c()

ULONG setregistryvariableindex_c ( ULONG name,
ULONG v,
ULONG type,
ULONG size,
ULONG index )
static

SetRegistryVariableIndex VariableName,Data,Type,ByteSize,Index: SetRegistryVariableIndex (-150).

Parameters
named0: the variable name (a1)
vd1: the data (a2)
typed2: the type (d0 for the call)
sized3: the byte size (d1 for the call)
indexd4: the index (d2 for the call)
Returns
d0: registry.library's result, 0 without a structure

◆ unlockregistry_c()

void unlockregistry_c ( void )
static

UnlockRegistry: unlocks the current structure and pops it.

UnlockRegistry (-36) on the current structure (nothing without one), then the stack slot is cleared and the structure below becomes current. Nothing without a pushed lock (fixed, #781: the original goes below the stack, into the end of its token table).

Variable Documentation

◆ call_a3a4

ULONG call_a3a4[2]
static

◆ curstruct

UWORD curstruct

◆ regbase

struct Library* regbase

◆ regstruct

ULONG regstruct

◆ [struct]

struct { ... } st

◆ structs

ULONG structs[16]