mirror of https://github.com/dahall/Vanara.git
Added OSVersion enum value for Win11
parent
612f854e74
commit
b4c96c6572
|
@ -34,7 +34,10 @@ namespace Vanara.PInvoke
|
||||||
Windows81 = 0xFF,
|
Windows81 = 0xFF,
|
||||||
|
|
||||||
/// <summary>Windows 10</summary>
|
/// <summary>Windows 10</summary>
|
||||||
Windows10 = 0x1FF
|
Windows10 = 0x1FF,
|
||||||
|
|
||||||
|
/// <summary>Windows 11</summary>
|
||||||
|
Windows11 = 0x2FF
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Captures information about P/Invoke calls.</summary>
|
/// <summary>Captures information about P/Invoke calls.</summary>
|
||||||
|
@ -100,6 +103,8 @@ namespace Vanara.Extensions
|
||||||
return osVer >= new Version(6, 3);
|
return osVer >= new Version(6, 3);
|
||||||
case PInvoke.PInvokeClient.Windows10:
|
case PInvoke.PInvokeClient.Windows10:
|
||||||
return osVer.Major >= 10;
|
return osVer.Major >= 10;
|
||||||
|
case PInvoke.PInvokeClient.Windows11:
|
||||||
|
return osVer >= new Version(10, 0, 22000);
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue