diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-03 17:44:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-03 17:44:26 +0000 |
commit | adcff8d159698ea0ff59505ada74fc7243738e68 (patch) | |
tree | 8efd16e71fdef6a230dcb316dbca01a4127fad0d /winsup/cygwin/registry.h | |
parent | 825d0b93850125861ebefa6925ada44fe8f93f92 (diff) | |
download | cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.tar.gz cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.tar.bz2 cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.zip |
* dir.cc (readdir_worker): Minor code cleanup.
* fhandler_console.cc (beep): Use a more Windows-generic wav file if the beep
is missing. Use a more foolproof way to find out whether we should be
recreating the missing key.
* registry.h (reg_key::_disposition): New field.
(reg_key::created): New function.
* registry.cc (reg_key::reg_key): Set _disposition to zero by default.
(reg_key::build_key): Fill in _disposition field.
Diffstat (limited to 'winsup/cygwin/registry.h')
-rw-r--r-- | winsup/cygwin/registry.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/registry.h b/winsup/cygwin/registry.h index 785a80e2a..3d1aea65d 100644 --- a/winsup/cygwin/registry.h +++ b/winsup/cygwin/registry.h @@ -1,6 +1,6 @@ /* registry.h: shared info for cygwin - Copyright 2000, 2001 Red Hat, Inc. + Copyright 2000, 2001, 2004, 2006 Red Hat, Inc. This file is part of Cygwin. @@ -14,6 +14,7 @@ private: HKEY key; LONG key_is_invalid; + DWORD _disposition; public: @@ -33,6 +34,7 @@ public: 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); + bool created () const {return _disposition & REG_CREATED_NEW_KEY;} ~reg_key (); }; |