RtlGetVersion in DriverEntry

Is there an issue with RtlGetVersion not working correctly during driver
load? I have a version dependent situation that works fine running under
the debugger but fails when not running under the debugger which makes it
difficult to investigate the problem. I am trying to determine when I am
running on Windows 2003 Server with SP1.

> Is there an issue with RtlGetVersion not working correctly during driver

load?
The function should be fully supported, but there’s of course a problem on
OS versions before XP, where you have to use: PsGetVersion()

If it works under the debugger but not on a live system it may boil down to
a timing problem.

Have a nice weekend,

Oliver

May the source be with you, stranger :wink:

ICQ: #281645
URL: http://assarbad.net

the calling has to work, check if you set dwOSVersionInfoSize value in the
input structure

“Joe Stivaletta” wrote in message news:xxxxx@ntdev…
> Is there an issue with RtlGetVersion not working correctly during driver
> load? I have a version dependent situation that works fine running under
> the debugger but fails when not running under the debugger which makes it
> difficult to investigate the problem. I am trying to determine when I am
> running on Windows 2003 Server with SP1.
>
>

> Is there an issue with RtlGetVersion not working correctly during driver

load? I have a version dependent situation that works fine running under
the debugger but fails when not running under the debugger which makes it
difficult to investigate the problem. I am trying to determine when I am
running on Windows 2003 Server with SP1.

How did you define PRTL_OSVERSIONINFOW lpVersionInformation
in your code ?

C.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compaqnet.be
To unsubscribe send a blank email to xxxxx@lists.osr.com