detect OS Version in WinNT4.0 for SCSI Miniport Driver

Hi all!

is there a way to detect the OS version (Including the service pack) under
windows NT4.0 for SCSI Miniport driver? the PsGetOsVersion() is documented
in win2K DDK. I could not find anything like PsGetOsVersion() in the NT4
DDK.
Any help would be appreciated!

Thank You

Vu


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

See RtlGetVersion documentation. U may get some help

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@ureach.com
Sent: Friday, August 24, 2001 2:12 PM
To: NT Developers Interest List
Subject: [ntdev] detect OS Version in WinNT4.0 for SCSI Miniport Driver

Hi all!

is there a way to detect the OS version (Including the service pack) under
windows NT4.0 for SCSI Miniport driver? the PsGetOsVersion() is documented
in win2K DDK. I could not find anything like PsGetOsVersion() in the NT4
DDK.
Any help would be appreciated!

Thank You

Vu


You are currently subscribed to ntdev as: xxxxx@cmoschips.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

BOOLEAN
PsGetVersion(
PULONG MajorVersion OPTIONAL,
PULONG MinorVersion OPTIONAL,
PULONG BuildNumber OPTIONAL,
PUNICODE_STRING CSDVersion OPTIONAL
);

Zolee

Ps:
PsGetVersion for NT4/ Win200
RtlGetVersion for XP


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You can use PsGetVersion on Nt4.0. It’s exported.

http://support.microsoft.com/support/kb/articles/Q193/8/24.ASP

-Eliyas

-----Original Message-----
From: xxxxx@ureach.com [mailto:xxxxx@ureach.com]
Sent: Friday, August 24, 2001 7:12 AM
To: NT Developers Interest List
Subject: [ntdev] detect OS Version in WinNT4.0 for SCSI Miniport Driver

Hi all!

is there a way to detect the OS version (Including the service pack)
under
windows NT4.0 for SCSI Miniport driver? the PsGetOsVersion() is
documented
in win2K DDK. I could not find anything like PsGetOsVersion() in the
NT4
DDK.
Any help would be appreciated!

Thank You

Vu


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Eliyas and Zolee!

Thank you very much for your help. However, there is a comment
in the NTxDDK saying as follows:

“When the registry is initialized, a driver cannot obtain this
string from PsGetVersion, but must read the CmCSDVersionString
value from the registry.”

In our case We need to know if the OS has been installed with
Service Pack or not. How do we get the CmCSDVersionString from
the registry?

Thank you very much
Vu

---- On Fri, 24 Aug 2001, Zoltan Csizmadia
(xxxxx@yahoo.com) wrote:

BOOLEAN
PsGetVersion(
PULONG MajorVersion OPTIONAL,
PULONG MinorVersion OPTIONAL,
PULONG BuildNumber OPTIONAL,
PUNICODE_STRING CSDVersion OPTIONAL
);

Zolee

Ps:
PsGetVersion for NT4/ Win200
RtlGetVersion for XP


Do You Yahoo!?
Make international calls for as low as $.04/minute with
Yahoo! Messenger
http://phonecard.yahoo.com/


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


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You should try this registry key:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion

Actually, you can find all the version info in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion.

Zolee


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com