diff options
| author | David Skoland <davidskoland@gmail.com> | 2017-01-23 12:21:58 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2017-01-23 12:21:58 +0100 |
| commit | 9ba9987d1fae9de120ee19ac93655efe9ed6566b (patch) | |
| tree | 016190f6157cbb0bff5dfce17a6195155d851118 /win32_functions.cpp | |
| parent | 7b7315005329266c26facb1885dc6483c081fabb (diff) | |
added cleaner frame for cross-platform hdid implementation
Diffstat (limited to 'win32_functions.cpp')
| -rw-r--r-- | win32_functions.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/win32_functions.cpp b/win32_functions.cpp deleted file mode 100644 index 76ca18a..0000000 --- a/win32_functions.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "win32_functions.h" - -DWORD dwVolSerial; -BOOL bIsRetrieved; - -QString get_hdid() -{ - bIsRetrieved = GetVolumeInformation(TEXT("C:\\"), NULL, NULL, &dwVolSerial, NULL, NULL, NULL, NULL); - - if (bIsRetrieved) - return QString::number(dwVolSerial, 16); - else - return "invalidhd"; //what could possibly go wrong - -} |
