From 9ba9987d1fae9de120ee19ac93655efe9ed6566b Mon Sep 17 00:00:00 2001 From: David Skoland Date: Mon, 23 Jan 2017 12:21:58 +0100 Subject: added cleaner frame for cross-platform hdid implementation --- win32_functions.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 win32_functions.cpp (limited to 'win32_functions.cpp') 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 - -} -- cgit