* registry.cc (reg_key::get_int): Add alternative implementation

taking WCHAR strings.
	(reg_key::set_int): Ditto.
	(reg_key::get_string): Ditto.
	(reg_key::set_string): Ditto.
	* registry.h (struct reg_key): Add prototypes for added methods.
This commit is contained in:
Corinna Vinschen
2009-10-20 14:54:47 +00:00
parent c94a1006c6
commit a4f31f1b1b
3 changed files with 80 additions and 10 deletions

View File

@@ -30,10 +30,17 @@ public:
int killvalue (const char *name);
HKEY get_key ();
int get_int (const char *,int def);
int get_string (const char *, char *buf, size_t len, const char *def);
int set_string (const char *,const char *);
int set_int (const char *, int val);
int get_int (const char *, int);
int get_int (const PWCHAR, int);
int get_string (const char *, char *, size_t, const char *);
int get_string (const PWCHAR, PWCHAR, size_t, const PWCHAR);
int set_int (const char *, int);
int set_int (const PWCHAR, int);
int set_string (const char *, const char *);
int set_string (const PWCHAR, const PWCHAR);
bool created () const {return _disposition & REG_CREATED_NEW_KEY;}
~reg_key ();