15 #ifndef WINDOWSREGISTRY_H
16 #define WINDOWSREGISTRY_H
18 #include "pandabase.h"
31 class EXPCL_PANDAEXPRESS WindowsRegistry
39 static bool set_string_value(
const string &key,
const string &name,
40 const string &value, RegLevel rl = rl_machine);
41 static bool set_int_value(
const string &key,
const string &name,
int value, RegLevel rl = rl_machine);
48 static Type get_key_type(
const string &key,
const string &name, RegLevel rl = rl_machine);
49 static string get_string_value(
const string &key,
const string &name,
50 const string &default_value, RegLevel rl = rl_machine);
51 static int get_int_value(
const string &key,
const string &name,
52 int default_value, RegLevel rl = rl_machine);
55 static bool do_set(
const string &key,
const string &name,
56 int data_type,
const void *data,
int data_length,
const RegLevel rl);
57 static bool do_get(
const string &key,
const string &name,
58 int &data_type,
string &data,
const RegLevel rl);
59 static string format_message(
int error_code);