mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Remove Platform version helpers and use <VersionHelpers.h> per http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v=vs.85%29.aspx
This commit is contained in:
@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "PluginFileView.h"
|
||||
#include "../../Common/Platform.h"
|
||||
#include "../../Common/StringUtil.h"
|
||||
|
||||
#define MAX_LINE_LENGTH 4096
|
||||
@ -82,7 +81,7 @@ PLUGIN_EXPORT void Initialize(void** data, void* rm)
|
||||
{
|
||||
std::wstring dir = RmReplaceVariables(rm, L"%WINDIR%");
|
||||
dir.append(L"\\system32\\control.exe");
|
||||
dir.append(Platform::IsAtLeastWinVista() ? L" system" : L" sysdm.cpl");
|
||||
dir.append(IsWindowsVistaOrGreater() ? L" system" : L" sysdm.cpl");
|
||||
|
||||
g_SysProperties = StringUtil::Narrow(dir);
|
||||
}
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <Shellapi.h>
|
||||
#include <Shlwapi.h>
|
||||
#include <ShlObj.h>
|
||||
#include <VersionHelpers.h>
|
||||
|
||||
// STL
|
||||
#include <string>
|
||||
|
Reference in New Issue
Block a user