1 /* registry.h: shared info for cygwin
3 Copyright 2000, 2001, 2004, 2006, 2008 Red Hat, Inc.
5 This file is part of Cygwin.
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
21 reg_key (HKEY toplev, REGSAM access, ...);
22 reg_key (bool isHKLM, REGSAM access, ...);
24 void *operator new (size_t, void *p) {return p;}
25 void build_reg (HKEY key, REGSAM access, va_list av);
27 int error () {return key == (HKEY) INVALID_HANDLE_VALUE;}
29 int kill (const char *child);
30 int killvalue (const char *name);
34 int get_int (const char *, int);
35 int get_int (const PWCHAR, int);
36 int get_string (const char *, char *, size_t, const char *);
37 int get_string (const PWCHAR, PWCHAR, size_t, const PWCHAR);
39 int set_int (const char *, int);
40 int set_int (const PWCHAR, int);
41 int set_string (const char *, const char *);
42 int set_string (const PWCHAR, const PWCHAR);
44 bool created () const {return _disposition & REG_CREATED_NEW_KEY;}
49 /* Evaluates path to the directory of the local user registry hive */
50 PWCHAR __stdcall get_registry_hive_path (const PWCHAR name, PWCHAR path);
51 void __stdcall load_registry_hive (const PWCHAR name);