winregistry.h File Reference

#include "lang.h"

Include dependency graph for winregistry.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define regtype_none   ( 0 )
#define regtype_string   ( 1 )
#define regtype_expand_string   ( 2 )
#define regtype_binary   ( 3 )
#define regtype_ulong   ( 4 )
#define regtype_ulong_little_endian   ( 4 )
#define regtype_ulong_big_endian   ( 5 )
#define regtype_link   ( 6 )
#define regtype_unicode   ( 7 )
#define regtype_resource_list   ( 8 )
#define regtype_full_resource_descriptor   ( 9 )
#define regtype_resource_requirements_list   ( 10 )
#define STR_P_HKCU_SHORT   "\x04" "HKCU"
#define STR_P_HKCU_LONG   "\x11" "HKEY_CURRENT_USER"
#define STR_P_HKLM_SHORT   "\x04" "HKLM"
#define STR_P_HKLM_LONG   "\x12" "HKEY_LOCAL_MACHINE"
#define STR_P_HKCR_SHORT   "\x04" "HKCR"
#define STR_P_HKCR_LONG   "\x11" "HKEY_CURRENT_USER"
#define STR_P_HKU_SHORT   "\x03" "HKU"
#define STR_P_HKU_LONG   "\x0a" "HKEY_USERS"
#define STR_P_HKCC_SHORT   "\x04" "HKCC"
#define STR_P_HCC_LONG   "\x13" "HKEY_CURRENT_CONFIG"
#define STR_P_REG_BINARY   "\x0a" "REG_BINARY"
#define STR_P_REG_DWORD   "\x09" "REG_DWORD"
#define STR_P_REG_DWORD_LITTLE_ENDIAN   "\x13" "DWORD_LITTLE_ENDIAN"
#define STR_P_REG_DWORD_BIG_ENDIAN   "\x10" "DWORD_BIG_ENDIAN"
#define STR_P_REG_EXPAND_SZ   "\x09" "EXPAND_SZ"
#define STR_P_REG_LINK   "\x08" "REG_LINK"
#define STR_P_REG_MULTI_SZ   "\x0c" "REG_MULTI_SZ"
#define STR_P_REG_NONE   "\x08" "REG_NONE"
#define STR_P_REG_QWORD   "\x09" "REG_QWORD"
#define STR_P_REG_QWORD_LITTLE_ENDIAN   "\x13" "QWORD_LITTLE_ENDIAN"
#define STR_P_REG_RESOURCE_LIST   "\x11" "REG_RESOURCE_LIST"
#define STR_P_REG_SZ   "\x06" "REG_SZ"
#define STR_P_UNKNOWNTYPE   "\x07" "UNKNOWN"

Functions

boolean registerFileType (bigstring extension, bigstring filetype, bigstring contenttype, bigstring filedescription, bigstring iconfile, short iconid, bigstring shellopen)
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)
boolean winreggettype (Handle h, bigstring bstype)
boolean winregread (Handle h, tyvaluerecord *v)
boolean winregdelete (Handle h)
boolean winregwrite (Handle h, tyvaluerecord *val, bigstring bstype)


Define Documentation

#define regtype_binary   ( 3 )
 

Definition at line 54 of file winregistry.h.

#define regtype_expand_string   ( 2 )
 

Definition at line 52 of file winregistry.h.

#define regtype_full_resource_descriptor   ( 9 )
 

Definition at line 61 of file winregistry.h.

#define regtype_link   ( 6 )
 

Definition at line 58 of file winregistry.h.

#define regtype_none   ( 0 )
 

Definition at line 50 of file winregistry.h.

#define regtype_resource_list   ( 8 )
 

Definition at line 60 of file winregistry.h.

#define regtype_resource_requirements_list   ( 10 )
 

Definition at line 62 of file winregistry.h.

#define regtype_string   ( 1 )
 

Definition at line 51 of file winregistry.h.

#define regtype_ulong   ( 4 )
 

Definition at line 55 of file winregistry.h.

#define regtype_ulong_big_endian   ( 5 )
 

Definition at line 57 of file winregistry.h.

#define regtype_ulong_little_endian   ( 4 )
 

Definition at line 56 of file winregistry.h.

#define regtype_unicode   ( 7 )
 

Definition at line 59 of file winregistry.h.

#define STR_P_HCC_LONG   "\x13" "HKEY_CURRENT_CONFIG"
 

Definition at line 74 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKCC_SHORT   "\x04" "HKCC"
 

Definition at line 73 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKCR_LONG   "\x11" "HKEY_CURRENT_USER"
 

Definition at line 70 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKCR_SHORT   "\x04" "HKCR"
 

Definition at line 69 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKCU_LONG   "\x11" "HKEY_CURRENT_USER"
 

Definition at line 66 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKCU_SHORT   "\x04" "HKCU"
 

Definition at line 65 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKLM_LONG   "\x12" "HKEY_LOCAL_MACHINE"
 

Definition at line 68 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKLM_SHORT   "\x04" "HKLM"
 

Definition at line 67 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKU_LONG   "\x0a" "HKEY_USERS"
 

Definition at line 72 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_HKU_SHORT   "\x03" "HKU"
 

Definition at line 71 of file winregistry.h.

Referenced by winregpullhkeyfromtext().

#define STR_P_REG_BINARY   "\x0a" "REG_BINARY"
 

Definition at line 76 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_DWORD   "\x09" "REG_DWORD"
 

Definition at line 77 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_DWORD_BIG_ENDIAN   "\x10" "DWORD_BIG_ENDIAN"
 

Definition at line 79 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_DWORD_LITTLE_ENDIAN   "\x13" "DWORD_LITTLE_ENDIAN"
 

Definition at line 78 of file winregistry.h.

#define STR_P_REG_EXPAND_SZ   "\x09" "EXPAND_SZ"
 

Definition at line 80 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_LINK   "\x08" "REG_LINK"
 

Definition at line 81 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_MULTI_SZ   "\x0c" "REG_MULTI_SZ"
 

Definition at line 82 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_NONE   "\x08" "REG_NONE"
 

Definition at line 83 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_QWORD   "\x09" "REG_QWORD"
 

Definition at line 84 of file winregistry.h.

#define STR_P_REG_QWORD_LITTLE_ENDIAN   "\x13" "QWORD_LITTLE_ENDIAN"
 

Definition at line 85 of file winregistry.h.

#define STR_P_REG_RESOURCE_LIST   "\x11" "REG_RESOURCE_LIST"
 

Definition at line 86 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_REG_SZ   "\x06" "REG_SZ"
 

Definition at line 87 of file winregistry.h.

Referenced by winregtypestringtotype(), and winregtypetostring().

#define STR_P_UNKNOWNTYPE   "\x07" "UNKNOWN"
 

Definition at line 88 of file winregistry.h.

Referenced by winregtypetostring().


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:

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:

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:

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:

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:44:31 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6