diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2010-11-09 20:52:52 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@redhat.com> | 2010-11-09 20:52:52 +0200 |
commit | 875cc052921f7d8f613f62e72eac920c3ce2bf9f (patch) | |
tree | e5e7e965b15a6bd3e4cfc1e867a65a3e6b526272 /common | |
parent | 35d1b7c835561d44f631e2e1777a13b3573c3ccf (diff) |
Revert "vdservice: add missing vdcommon.cpp"
This reverts commit 53b32d4db33af4422382fbe629bb0314e252bdda which becomes irrelevant due to previous revert.
Diffstat (limited to 'common')
-rw-r--r-- | common/vdcommon.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/vdcommon.cpp b/common/vdcommon.cpp deleted file mode 100644 index 372d9bb..0000000 --- a/common/vdcommon.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "vdcommon.h" - -bool get_qxl_device_id(TCHAR* device_key, DWORD* device_id) -{ - DWORD type = REG_BINARY; - DWORD size = sizeof(*device_id); - bool key_found = false; - HKEY key; - - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, wcsstr(device_key, L"System"), - 0L, KEY_QUERY_VALUE, &key) == ERROR_SUCCESS) { - if (RegQueryValueEx(key, L"QxlDeviceID", NULL, &type, (LPBYTE)device_id, &size) == - ERROR_SUCCESS) { - key_found = true; - } - RegCloseKey(key); - } - return key_found; -} |