I am writing code in C++ and I need to detect if I am on Windows 11. IsWindowsVersionOrGreater is an API I got that is to detects windows versions.
VERSIONHELPERAPI IsWindowsVersionOrGreater(
WORD wMajorVersion,
WORD wMinorVersion,
WORD wServicePackMajor
);
What should be the argument to detect windows 11 from this API?
Need:
Windows 11 UI is different than Windows 10. Our code needs to detect windows 11 and use different UI elements and if it's below use different UI elements. We don't use windows UI elements directly but our own custom UI elements. We need to detect wins 11 and then make conscious decisions based on that. Kindly help me detect if its win 11 – Hence we need to detect.