registry access cleanup

log system drives and whether DMA is enabled (for skip diagnostics)
This commit is contained in:
Glenn Maynard
2004-04-25 03:49:05 +00:00
parent a2a7ae6e8e
commit 18167e013e
3 changed files with 125 additions and 57 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
#include "windows.h"
#include "shellapi.h"
LONG GetRegKey(HKEY key, CString subkey, LPTSTR retdata)
/* This is called from the crash handler; don't use RegistryAccess, since it's
* not crash-conditions safe. */
static LONG GetRegKey(HKEY key, CString subkey, LPTSTR retdata)
{
HKEY hkey;
LONG retval = RegOpenKeyEx(key, subkey, 0, KEY_QUERY_VALUE, &hkey);