HWND trafficDlg = NULL;
FileStream fs;
+bool jumpListEnabled = false; // jumplist flag (only for win7 or later)
+
// \83v\83\8d\83g\83^\83C\83v\90é\8c¾
void createGUI(HWND);
LRESULT CALLBACK TrafficDlgProc(HWND, UINT, WPARAM, LPARAM);
WIN32_FIND_DATA fd; //JP-EX
HANDLE hFind; //JP-EX
- OSVERSIONINFO osInfo; //JP-EX
- osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); //JP-EX
- GetVersionEx(&osInfo);
+ OSVERSIONINFOEX osInfo; //JP-EX
+ osInfo.dwOSVersionInfoSize = sizeof(osInfo); //JP-EX
+ GetVersionEx(reinterpret_cast<LPOSVERSIONINFO>(&osInfo));
if (osInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
winDistinctionNT = true;
else
winDistinctionNT = false;
+ // for Windows7 or later
+ if ((osInfo.wProductType == VER_NT_WORKSTATION
+ && osInfo.dwMajorVersion == 6
+ && osInfo.dwMinorVersion == 1)
+ ||
+ (osInfo.dwMajorVersion == 6
+ && osInfo.dwMinorVersion > 1)
+ ||
+ osInfo.dwMajorVersion > 6)
+ {
+ jumpListEnabled = true;
+ }
+
// off by default now
showGUI = false;
WINDOWPLACEMENT winPlace;
bool guiFlg = false;
+extern bool jumpListEnabled;
+
using namespace Gdiplus;
#include <comdef.h>
img_broad_ok = ::new Image(bstr);
bstr = L"ST_BROAD_FULL.bmp";
img_broad_full = ::new Image(bstr);
+
+ // jumplist
+ if (jumpListEnabled)
+ {
+ }
}
void WmPaintProc(HWND hwnd){
HWND trafficDlg = NULL;
FileStream fs;
+bool jumpListEnabled = false; // jumplist flag (only for win7 or later)
+
// \83v\83\8d\83g\83^\83C\83v\90é\8c¾
void createGUI(HWND);
LRESULT CALLBACK TrafficDlgProc(HWND, UINT, WPARAM, LPARAM);
WIN32_FIND_DATA fd; //JP-EX
HANDLE hFind; //JP-EX
- OSVERSIONINFO osInfo; //JP-EX
- osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); //JP-EX
- GetVersionEx(&osInfo);
+ OSVERSIONINFOEX osInfo; //JP-EX
+ osInfo.dwOSVersionInfoSize = sizeof(osInfo); //JP-EX
+ GetVersionEx(reinterpret_cast<LPOSVERSIONINFO>(&osInfo));
if (osInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
winDistinctionNT = true;
else
winDistinctionNT = false;
+ // for Windows7 or later
+ if ((osInfo.wProductType == VER_NT_WORKSTATION
+ && osInfo.dwMajorVersion == 6
+ && osInfo.dwMinorVersion == 1)
+ ||
+ (osInfo.dwMajorVersion == 6
+ && osInfo.dwMinorVersion > 1)
+ ||
+ osInfo.dwMajorVersion > 6)
+ {
+ jumpListEnabled = true;
+ }
+
// off by default now
showGUI = false;
WINDOWPLACEMENT winPlace;
bool guiFlg = false;
+extern bool jumpListEnabled;
+
using namespace Gdiplus;
#include <comdef.h>
img_broad_ok = ::new Image(bstr);
bstr = L"ST_BROAD_FULL.bmp";
img_broad_full = ::new Image(bstr);
+
+ // jumplist
+ if (jumpListEnabled)
+ {
+ }
}
void WmPaintProc(HWND hwnd){