NT or W2K?

Hi all,

I’m writing a filter driver that will work in NT and W2K. How can I
detect if this drivers is running on NT or W2K. I can’t use RtlGetVersion
because this API is suported only by XP or later.

Any help is welcome.
Thanks in advance,
Fernando.

You can use PsGetVersion on OSs before XP.

D

This posting is provided "AS IS" with no warranties, and confers no rights

-----Original Message-----
From: Fernando Roberto da Silva [mailto:xxxxx@scuasecurity.com.br]
Sent: Monday, April 14, 2003 1:00 PM
To: NT Developers Interest List
Subject: [ntdev] NT or W2K?

Hi all,
?
??? I'm writing a filter driver that will work in NT and W2K. How can I detect if this drivers is running on NT or W2K. I can't use RtlGetVersion because this API is suported only by XP or later.
?
Any help is welcome.
Thanks in advance,
Fernando.
?
?
?
?

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

PsGetVersion exists on both NT and W2K. You may also read the documentation in the MSDN ( i.e. Januari 2003 edition ) for details, especially the comments.

----- Original Message -----
From: Fernando Roberto da Silva
To: NT Developers Interest List
Sent: Monday, April 14, 2003 9:59 PM
Subject: [ntdev] NT or W2K?

Hi all,

I’m writing a filter driver that will work in NT and W2K. How can I detect if this drivers is running on NT or W2K. I can’t use RtlGetVersion because this API is suported only by XP or later.

Any help is welcome.
Thanks in advance,
Fernando.


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

PsGetVersion(&VsnappNtMajorVersion, &NtMinorVersion, NULL, NULL);

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Fernando Roberto da
Silva
Sent: Monday, April 14, 2003 1:00 PM
To: NT Developers Interest List
Subject: [ntdev] NT or W2K?

Hi all,

I’m writing a filter driver that will work in NT and W2K. How can I
detect if this drivers is running on NT or W2K. I can’t use
RtlGetVersion because this API is suported only by XP or later.

Any help is welcome.

Thanks in advance,

Fernando.


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