I know all the trick on the subject that i have already posted.
They don't work with asm Under WINDOWS 10.
If you have a full application who can be tested,post it here.
RtlGetNtVersionNumbers returns hardcoded version numbers.
The issue here is whether you really want to know the OS version, then RtlGetNtVersionNumbers is the way to go, or whether you want to tell your app "you are running in xyz, believe it or not". The other options rely on the TIB, and Windows will set it based on compatibility modes.
RtlGetNtVersionNumbers returns hardcoded version numbers.
The issue here is whether you really want to know the OS version, then RtlGetNtVersionNumbers is the way to go, or whether you want to tell your app "you are running in xyz, believe it or not". The other options rely on the TIB, and Windows will set it based on compatibility modes.
RtlGetNtVersionNumbers returns hardcoded version numbers.
The issue here is whether you really want to know the OS version, then RtlGetNtVersionNumbers is the way to go, or whether you want to tell your app "you are running in xyz, believe it or not". The other options rely on the TIB, and Windows will set it based on compatibility modes.
RtlGetNtVersionNumbers returns hardcoded version numbers.
The issue here is whether you really want to know the OS version, then RtlGetNtVersionNumbers is the way to go, or whether you want to tell your app "you are running in xyz, believe it or not". The other options rely on the TIB, and Windows will set it based on compatibility modes.
(I know it's difficult to understand, so I repeated it a few times 8))
Output for Win7-64, no compatibility mode:RtlGetVersion 6.1 SP 1.0 build 7601
Suite mask 0300: SINGLEUSERTS PERSONAL
ProductType WORKSTATION
CSDVersion Service Pack 1
RtlGetNtVersionNumbers (same for all 'compatibility modes'):
major 6
minor 1
build 7601Output for Win7-64 but compatibility mode 'server 2008':
RtlGetVersion 6.
0 SP 1.0 build
6001Suite mask 0300: SINGLEUSERTS PERSONAL
ProductType WORKSTATION
CSDVersion Service Pack 1
RtlGetNtVersionNumbers:
major 6
minor 1
build 7601
Output for Win7-64 but compatibility mode 'Vista SP2':
RtlGetVersion 6.
0 SP
2.0 build
6002Suite mask 0300: SINGLEUSERTS PERSONAL
ProductType WORKSTATION
CSDVersion Service Pack
2RtlGetNtVersionNumbers:
major 6
minor 1
build 7601
Output for Win7-64 but compatibility mode 'Vista':
RtlGetVersion 6.0 SP 0.0 build 6000
Output for Win7-64 but compatibility mode 'Windows 7':
RtlGetVersion 6.1 SP 0.0 build 7600