RtlGetVersion or PsGetVersion or ???

RtlGetVersion or PsGetVersion or ???

Post by Dan Heimso » Sat, 30 Aug 2003 05:11:28


I have a single driver that is used for both Windows 2000
and Windows Server 2003. This driver need to determine
which version of the OS it is running on. The new call,
RtlGetVersion, seems to cause a bluescreen if I try to
use in in a driver running in Windows 2000. The old
call, PsGetVersion, seems to work on both versions of
Windows, but it listed as "obsolete" for Windows versions
XP and above, so I am concerned that it may stop working
on some future version or service pack. Is there a safe
and reliable method for a driver that can run on both
Windows 2000 and Windows Server 2003 to query the version
of the OS, and if so what is it?
 
 
 

RtlGetVersion or PsGetVersion or ???

Post by Mark Rodd » Sat, 30 Aug 2003 08:52:15

On Thu, 28 Aug 2003 13:11:28 -0700, "Dan Heimsoth"




See MmGetSystemRoutineAddress.



=====================
Mark Roddy
Windows XP/2000/NT Consulting, Microsoft DDK MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
XXXX@XXXXX.COM
For Windows Device Driver Training: see www.azius.com