mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
[BUG_FIXED] Fix Window7 SetWindowsHookEx() failed issue for the dockable windows. (by recognizing windows7 environment)
Signed-off-by: Don HO <don.h@free.fr> git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@503 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
5d20ba21a8
commit
b02de751e9
@ -29,7 +29,7 @@ enum LangType {L_TXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\
|
|||||||
L_CMAKE, L_YAML,\
|
L_CMAKE, L_YAML,\
|
||||||
// The end of enumated language type, so it should be always at the end
|
// The end of enumated language type, so it should be always at the end
|
||||||
L_EXTERNAL};
|
L_EXTERNAL};
|
||||||
enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA};
|
enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7};
|
||||||
|
|
||||||
|
|
||||||
//#include "deprecatedSymbols.h"
|
//#include "deprecatedSymbols.h"
|
||||||
|
@ -417,6 +417,11 @@ winVer getWindowsVersion()
|
|||||||
{
|
{
|
||||||
case VER_PLATFORM_WIN32_NT:
|
case VER_PLATFORM_WIN32_NT:
|
||||||
{
|
{
|
||||||
|
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1 )
|
||||||
|
{
|
||||||
|
return WV_WIN7;
|
||||||
|
}
|
||||||
|
|
||||||
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0 )
|
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0 )
|
||||||
{
|
{
|
||||||
return WV_VISTA;
|
return WV_VISTA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user