From 864da5dc23a70ccb0e5ccc84b5843883a2872edc Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Tue, 31 Mar 2015 15:32:41 -0600 Subject: New loader_get_registry_value() function reads 32/64 registry ... This version should be able to find a key/value if it exists in either the 32 or 64 bit hive. Also, it also doesn't allocate any string data until it knows what size is needed. Changed the "xcv_nvidia.cpp" file to also use the new registry approach. --- loader/loader_platform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'loader/loader_platform.h') diff --git a/loader/loader_platform.h b/loader/loader_platform.h index b4f711af..d2299e3d 100644 --- a/loader/loader_platform.h +++ b/loader/loader_platform.h @@ -278,6 +278,11 @@ static void loader_platform_thread_delete_mutex(loader_platform_thread_mutex* pM DeleteCriticalSection(pMutex); } +// Windows Registry: +char *loader_get_registry_string(const HKEY hive, + const LPCTSTR sub_key, + const char *value); + #else // defined(_WIN32) #error The "loader_platform.h" file must be modified for this OS. -- cgit v1.2.3