summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2010-11-09 20:52:52 +0200
committerArnon Gilboa <agilboa@redhat.com>2010-11-09 20:52:52 +0200
commit875cc052921f7d8f613f62e72eac920c3ce2bf9f (patch)
treee5e7e965b15a6bd3e4cfc1e867a65a3e6b526272 /common
parent35d1b7c835561d44f631e2e1777a13b3573c3ccf (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.cpp19
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;
-}