Does ntdll.dll come standard with windows XP and Windows Vista? I know that I have it on my windows XP machine, but am not sure that is standard with every machine.
The reason I am curious is for the NTQuerySystemInformation function to get CPU usage of a windows XP and/or Windows Vista system.
Yes, but the function you want to use
doesn’tmight not. According to MSDN, NTQuerySystemInformation may be altered or unavailable in future versions of Windows. You should use GetSystemInfo instead, which is in Kernel32.dll and available from Windows 2000 and up.You really should learn to check MSDN regarding API calls before you use them. And, if you did so, you should learn to listen, as once it’s deprecated MS is free to remove it from future NTDLL files in updates (although they don’t typically do so). Choosing to intentionally use a deprecated function when there is a viable and supported alternative is always a bad idea.