winregistry.c File Reference

#include "frontier.h"
#include "standard.h"
#include "error.h"
#include "memory.h"
#include "strings.h"
#include "lang.h"
#include "winregistry.h"

Include dependency graph for winregistry.c:

Go to the source code of this file.

Defines

#define ProgramKey   BIGSTRING ("\x1a" "Software\\UserLand\\Frontier")

Functions

boolean setRegKeyString (Handle regkey, bigstring subkey, bigstring itemname, bigstring bsval)
boolean setRegKeyLong (Handle regkey, bigstring subkey, bigstring itemname, unsigned long val)
boolean setRegKeyBinary (Handle regkey, bigstring subkey, bigstring itemname, unsigned char *val, unsigned long len)
boolean getRegKeyInfo (Handle regkey, bigstring subkey, bigstring itemname, unsigned long *regType, unsigned long *len)
boolean getRegKeyString (Handle regkey, bigstring subkey, bigstring itemname, bigstring bsval)
boolean getRegKeyLong (Handle regkey, bigstring subkey, bigstring itemname, unsigned long *val)
boolean getRegKeyBinary (Handle regkey, bigstring subkey, bigstring itemname, unsigned char *val, unsigned long *len)
boolean setProfileString (bigstring itemname, bigstring bsval)
boolean setProfileLong (bigstring itemname, unsigned long val)
boolean setProfileData (bigstring itemname, unsigned char *val, unsigned long len)
boolean getProfileString (bigstring itemname, bigstring bsval)
boolean getProfileLong (bigstring itemname, unsigned long *val)
boolean getProfileData (bigstring itemname, unsigned char *val, unsigned long *len)
static boolean setRegKeyValue (bigstring bskey, bigstring bsitem, bigstring bsval)
boolean registerFileType (bigstring extension, bigstring filetype, bigstring contenttype, bigstring filedescription, bigstring iconfile, short iconid, bigstring shellopen)
static boolean winregpullhkeyfromtext (Handle htext, HKEY *hkey)
static boolean winregiskey (Handle h)
static boolean winregtypestringtotype (bigstring bstype, DWORD *regtype)
static void winregtypetostring (DWORD regtype, bigstring bstype)
static boolean winreggetkeytype (HKEY hkey, Handle h, DWORD *regtype)
static boolean winreggetvaluetype (HKEY hkey, Handle h, DWORD *regtype)
static boolean winreggetvaluelength (HKEY hkey, Handle h, unsigned long *length)
boolean winreggettype (Handle h, bigstring bstype)
static boolean winreggethandlevalue (Handle regkey, bigstring subkey, bigstring itemname, Handle hval, unsigned long *len, DWORD *regtype)
static boolean winreggetvalue (HKEY hkey, Handle h, Handle hvalue, DWORD *regtype, unsigned long *len)
static void winregcoercetofrontiertype (Handle hvalue, DWORD regtype, tyvaluerecord *v)
boolean winregread (Handle h, tyvaluerecord *v)
static boolean winregdeletekey (HKEY hkey, Handle h)
static boolean winregdeletevalue (HKEY hkey, Handle h, bigstring bsitem)
boolean winregdelete (Handle h)
static void winregfrontiertypetotype (tyvaluetype type, DWORD *regtype)
static void winregcoercevalue (tyvaluerecord *v, DWORD regtype)
static boolean winregdowrite (HKEY regkey, Handle h, bigstring itemname, tyvaluerecord *v, DWORD regtype)
boolean winregwrite (Handle h, tyvaluerecord *val, bigstring bstype)


Define Documentation

#define ProgramKey   BIGSTRING ("\x1a" "Software\\UserLand\\Frontier")
 

Definition at line 321 of file winregistry.c.

Referenced by getProfileData(), getProfileLong(), getProfileString(), setProfileData(), setProfileLong(), and setProfileString().


Function Documentation

boolean getProfileData bigstring  itemname,
unsigned char *  val,
unsigned long len
 

Definition at line 344 of file winregistry.c.

References getRegKeyBinary(), and ProgramKey.

Here is the call graph for this function:

boolean getProfileLong bigstring  itemname,
unsigned long val
 

Definition at line 340 of file winregistry.c.

References getRegKeyLong(), and ProgramKey.

Referenced by fwsNetEventLaunch(), and InitializeInstance().

Here is the call graph for this function:

boolean getProfileString bigstring  itemname,
bigstring  bsval
 

Definition at line 336 of file winregistry.c.

References getRegKeyString(), and ProgramKey.

Referenced by FrontierFrameWndProc().

Here is the call graph for this function:

boolean getRegKeyBinary Handle  regkey,
bigstring  subkey,
bigstring  itemname,
unsigned char *  val,
unsigned long len
 

Definition at line 273 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by getProfileData().

Here is the call graph for this function:

boolean getRegKeyInfo Handle  regkey,
bigstring  subkey,
bigstring  itemname,
unsigned long regType,
unsigned long len
 

Definition at line 141 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by winreggetkeytype(), winreggetvaluelength(), and winreggetvaluetype().

Here is the call graph for this function:

boolean getRegKeyLong Handle  regkey,
bigstring  subkey,
bigstring  itemname,
unsigned long val
 

Definition at line 226 of file winregistry.c.

References copyptocstring(), key, long, NULL, and stringlength.

Referenced by getProfileLong().

Here is the call graph for this function:

boolean getRegKeyString Handle  regkey,
bigstring  subkey,
bigstring  itemname,
bigstring  bsval
 

Definition at line 180 of file winregistry.c.

References bigstring, copyptocstring(), key, NULL, setstringlength, and stringlength.

Referenced by findapplication(), getProfileString(), and userinfodialog().

Here is the call graph for this function:

boolean registerFileType bigstring  extension,
bigstring  filetype,
bigstring  contenttype,
bigstring  filedescription,
bigstring  iconfile,
short  iconid,
bigstring  shellopen
 

Definition at line 403 of file winregistry.c.

References BIGSTRING, bigstring, copystring(), NULL, pushchar(), pushint(), pushstring(), setRegKeyValue(), and stringlength.

Referenced by InitializeApplication().

Here is the call graph for this function:

boolean setProfileData bigstring  itemname,
unsigned char *  val,
unsigned long  len
 

Definition at line 332 of file winregistry.c.

References ProgramKey, and setRegKeyBinary().

Here is the call graph for this function:

boolean setProfileLong bigstring  itemname,
unsigned long  val
 

Definition at line 328 of file winregistry.c.

References ProgramKey, and setRegKeyLong().

Referenced by FrontierFrameWndProc(), and fwsNetEventLaunch().

Here is the call graph for this function:

boolean setProfileString bigstring  itemname,
bigstring  bsval
 

Definition at line 324 of file winregistry.c.

References ProgramKey, and setRegKeyString().

Referenced by WinMain().

Here is the call graph for this function:

boolean setRegKeyBinary Handle  regkey,
bigstring  subkey,
bigstring  itemname,
unsigned char *  val,
unsigned long  len
 

Definition at line 107 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by setProfileData().

Here is the call graph for this function:

boolean setRegKeyLong Handle  regkey,
bigstring  subkey,
bigstring  itemname,
unsigned long  val
 

Definition at line 73 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by setProfileLong().

Here is the call graph for this function:

boolean setRegKeyString Handle  regkey,
bigstring  subkey,
bigstring  itemname,
bigstring  bsval
 

Definition at line 37 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by setProfileString().

Here is the call graph for this function:

static boolean setRegKeyValue bigstring  bskey,
bigstring  bsitem,
bigstring  bsval
[static]
 

Definition at line 349 of file winregistry.c.

References copyptocstring(), key, NULL, and stringlength.

Referenced by registerFileType().

Here is the call graph for this function:

static void winregcoercetofrontiertype Handle  hvalue,
DWORD  regtype,
tyvaluerecord v
[static]
 

Definition at line 828 of file winregistry.c.

References disposehandle(), initvalue(), novaluetype, setbinaryvalue(), setheapvalue(), setlongvalue(), stringvaluetype, and v.

Referenced by winregread().

Here is the call graph for this function:

static void winregcoercevalue tyvaluerecord v,
DWORD  regtype
[static]
 

Definition at line 1073 of file winregistry.c.

References coercetobinary(), coercetolong(), coercetostring(), and v.

Referenced by winregwrite().

Here is the call graph for this function:

boolean winregdelete Handle  h  ) 
 

Definition at line 971 of file winregistry.c.

References bigstring, fl, pullstringsuffix(), texthandletostring(), winregdeletekey(), winregdeletevalue(), winregiskey(), and winregpullhkeyfromtext().

Here is the call graph for this function:

static boolean winregdeletekey HKEY  hkey,
Handle  h
[static]
 

Definition at line 898 of file winregistry.c.

References fl, gethandlesize(), lockhandle(), sethandlesize(), and unlockhandle().

Referenced by winregdelete().

Here is the call graph for this function:

static boolean winregdeletevalue HKEY  hkey,
Handle  h,
bigstring  bsitem
[static]
 

Definition at line 933 of file winregistry.c.

References copyptocstring(), fl, gethandlesize(), lockhandle(), sethandlesize(), and unlockhandle().

Referenced by winregdelete().

Here is the call graph for this function:

static boolean winregdowrite HKEY  regkey,
Handle  h,
bigstring  itemname,
tyvaluerecord v,
DWORD  regtype
[static]
 

Definition at line 1109 of file winregistry.c.

References copyptocstring(), fl, gethandlesize(), lockhandle(), long, nil, NULL, pullfromhandle(), sethandlesize(), and unlockhandle().

Referenced by winregwrite().

Here is the call graph for this function:

static void winregfrontiertypetotype tyvaluetype  type,
DWORD *  regtype
[static]
 

Definition at line 1002 of file winregistry.c.

References addressvaluetype, aliasvaluetype, binaryvaluetype, booleanvaluetype, charvaluetype, codevaluetype, datevaluetype, directionvaluetype, doublevaluetype, externalvaluetype, filespecvaluetype, fixedvaluetype, headvaluetype, intvaluetype, longvaluetype, menuvaluetype, novaluetype, objspecvaluetype, olddoublevaluetype, oldstringvaluetype, ostypevaluetype, outlinevaluetype, passwordvaluetype, patternvaluetype, pictvaluetype, pointvaluetype, rectvaluetype, rgbvaluetype, scriptvaluetype, singlevaluetype, stringvaluetype, tablevaluetype, tokenvaluetype, uninitializedvaluetype, unused2valuetype, and wordvaluetype.

Referenced by winregwrite().

static boolean winreggethandlevalue Handle  regkey,
bigstring  subkey,
bigstring  itemname,
Handle  hval,
unsigned long len,
DWORD *  regtype
[static]
 

Definition at line 760 of file winregistry.c.

References copyptocstring(), key, lockhandle(), NULL, stringlength, and unlockhandle().

Referenced by winreggetvalue().

Here is the call graph for this function:

static boolean winreggetkeytype HKEY  hkey,
Handle  h,
DWORD *  regtype
[static]
 

Definition at line 683 of file winregistry.c.

References bigstring, emptystring, getRegKeyInfo(), and texthandletostring().

Referenced by winreggettype().

Here is the call graph for this function:

boolean winreggettype Handle  h,
bigstring  bstype
 

Definition at line 732 of file winregistry.c.

References fl, winreggetkeytype(), winreggetvaluetype(), winregiskey(), winregpullhkeyfromtext(), and winregtypetostring().

Here is the call graph for this function:

static boolean winreggetvalue HKEY  hkey,
Handle  h,
Handle  hvalue,
DWORD *  regtype,
unsigned long len
[static]
 

Definition at line 803 of file winregistry.c.

References bigstring, fl, gethandlesize(), pullstringsuffix(), sethandlesize(), texthandletostring(), and winreggethandlevalue().

Referenced by winregread().

Here is the call graph for this function:

static boolean winreggetvaluelength HKEY  hkey,
Handle  h,
unsigned long length
[static]
 

Definition at line 715 of file winregistry.c.

References bigstring, getRegKeyInfo(), pullstringsuffix(), and texthandletostring().

Referenced by winregread().

Here is the call graph for this function:

static boolean winreggetvaluetype HKEY  hkey,
Handle  h,
DWORD *  regtype
[static]
 

Definition at line 698 of file winregistry.c.

References bigstring, getRegKeyInfo(), pullstringsuffix(), and texthandletostring().

Referenced by winreggettype().

Here is the call graph for this function:

static boolean winregiskey Handle  h  )  [static]
 

Definition at line 505 of file winregistry.c.

References gethandlesize().

Referenced by winregdelete(), winreggettype(), and winregwrite().

Here is the call graph for this function:

static boolean winregpullhkeyfromtext Handle  htext,
HKEY *  hkey
[static]
 

Definition at line 449 of file winregistry.c.

References BIGSTRING, bigstring, equalstrings(), fl, gethandlesize(), nil, pullfromhandle(), STR_P_HCC_LONG, STR_P_HKCC_SHORT, STR_P_HKCR_LONG, STR_P_HKCR_SHORT, STR_P_HKCU_LONG, STR_P_HKCU_SHORT, STR_P_HKLM_LONG, STR_P_HKLM_SHORT, STR_P_HKU_LONG, STR_P_HKU_SHORT, and textpatternmatch().

Referenced by winregdelete(), winreggettype(), winregread(), and winregwrite().

Here is the call graph for this function:

boolean winregread Handle  h,
tyvaluerecord v
 

Definition at line 869 of file winregistry.c.

References length, newhandle(), v, winregcoercetofrontiertype(), winreggetvalue(), winreggetvaluelength(), and winregpullhkeyfromtext().

Here is the call graph for this function:

static boolean winregtypestringtotype bigstring  bstype,
DWORD *  regtype
[static]
 

Definition at line 524 of file winregistry.c.

References allupper(), bigstring, copystring(), equalstrings(), fl, STR_P_REG_BINARY, STR_P_REG_DWORD, STR_P_REG_DWORD_BIG_ENDIAN, STR_P_REG_EXPAND_SZ, STR_P_REG_LINK, STR_P_REG_MULTI_SZ, STR_P_REG_NONE, STR_P_REG_RESOURCE_LIST, and STR_P_REG_SZ.

Referenced by winregwrite().

Here is the call graph for this function:

static void winregtypetostring DWORD  regtype,
bigstring  bstype
[static]
 

Definition at line 611 of file winregistry.c.

References copystring(), STR_P_REG_BINARY, STR_P_REG_DWORD, STR_P_REG_DWORD_BIG_ENDIAN, STR_P_REG_EXPAND_SZ, STR_P_REG_LINK, STR_P_REG_MULTI_SZ, STR_P_REG_NONE, STR_P_REG_RESOURCE_LIST, STR_P_REG_SZ, and STR_P_UNKNOWNTYPE.

Referenced by winreggettype().

Here is the call graph for this function:

boolean winregwrite Handle  h,
tyvaluerecord val,
bigstring  bstype
 

Definition at line 1219 of file winregistry.c.

References bigstring, copyvaluerecord(), disposehandle(), disposevaluerecord(), emptystring, equalstrings(), fl, initvalue(), newtexthandle(), novaluetype, pullstringsuffix(), texthandletostring(), winregcoercevalue(), winregdowrite(), winregfrontiertypetotype(), winregiskey(), winregpullhkeyfromtext(), and winregtypestringtotype().

Here is the call graph for this function:


Generated on Thu Jun 15 00:42:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6