aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/registry.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-12-02 10:49:47 +0000
committerCorinna Vinschen <corinna@vinschen.de>2014-12-02 10:49:47 +0000
commit41f77e25f11d2b152d2f4da12d1e6378c64fc78e (patch)
treebd51f7bf99de9278c427694a609c2a9e45cf3faa /winsup/cygwin/registry.h
parent195a9205e5c8d6ddded25c7dca736105ed9a1e86 (diff)
downloadnewlib-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.zip
newlib-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.tar.gz
newlib-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.tar.bz2
* autoload.cc (CreateProfile): Import.
(LoadUserProfileW): Import. * registry.cc (get_registry_hive_path): Move to sec_auth.cc. (load_registry_hive): Remove. * registry.h (get_registry_hive_path): Drop declaration. (load_registry_hive): Ditto. * sec_auth.cc (get_user_profile_directory): Moved from registry.cc and renamed. Take third parameter with buffer length. (load_user_profile): New function taking over for load_registry_hive. Use official functions to load profile. If profile is missing, create it on Vista and later. * security.h (get_user_profile_directory): Declare. (load_user_profile): Declare. * syscalls.cc (seteuid32): Replace call to load_registry_hive with call to load_user_profile. * uinfo.cc (cygheap_user::env_userprofile): Replace call to get_registry_hive_path with call to get_user_profile_directory.
Diffstat (limited to 'winsup/cygwin/registry.h')
-rw-r--r--winsup/cygwin/registry.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/registry.h b/winsup/cygwin/registry.h
index 50d6345..6a885db 100644
--- a/winsup/cygwin/registry.h
+++ b/winsup/cygwin/registry.h
@@ -1,7 +1,7 @@
/* registry.h: shared info for cygwin
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
- 2011 Red Hat, Inc.
+ 2011, 2012, 2014 Red Hat, Inc.
This file is part of Cygwin.
@@ -37,7 +37,3 @@ public:
~reg_key ();
};
-
-/* Evaluates path to the directory of the local user registry hive */
-PWCHAR __stdcall get_registry_hive_path (PCWSTR name, PWCHAR path);
-void __stdcall load_registry_hive (PCWSTR name);