aboutsummaryrefslogtreecommitdiff
path: root/loader/loader_platform.h
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-03-31 15:32:41 -0600
committerIan Elliott <ian@LunarG.com>2015-03-31 17:33:39 -0600
commit864da5dc23a70ccb0e5ccc84b5843883a2872edc (patch)
tree6049f3e392ae79a537bbac37418acce3dd87619c /loader/loader_platform.h
parent849b3273e7d36a9cdcd288bc4be731ab768cddca (diff)
downloadusermoji-864da5dc23a70ccb0e5ccc84b5843883a2872edc.tar.xz
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.
Diffstat (limited to 'loader/loader_platform.h')
-rw-r--r--loader/loader_platform.h5
1 files changed, 5 insertions, 0 deletions
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.