Windows OS Product name

Hi,

Is there any method to know Windows OS product name in kernel mode.
There is a registry setting at
“HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version”.
But I am not sure if this same across diffent languages. Please give
your feedback on this.

regards
Prasanna Kumar

This isn’t exactly what you asked for, but maybe it will help you.

You can use the kernel variable NtBuildNumber to determine which build of NT
you are running on.

__declspec(dllimport) ULONG NtBuildNumber

The high word indicates if it is the free 0xF000 or checked 0xC000 build of
NT. The low word is the build number: 1381 = NT4, 2195 = W2k, 2600 = XP
etc… This does not tell you any information about service packs.

Jon

“Prasanna Kumar V V” wrote in message
news:xxxxx@ntfsd…
>
>
> Hi,
>
> Is there any method to know Windows OS product name in kernel mode.
> There is a registry setting at
> “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version”.
> But I am not sure if this same across diffent languages. Please give
> your feedback on this.
>
> regards
> Prasanna Kumar
>
>
>
>
>
>

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

If it returns TRUE, you are running under the checked build otherwise
the release build. Thi is far easier than trying to mask the ULONG
itself; since this is more portable.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jon Anglin
Sent: Friday, May 10, 2002 8:06 AM
To: File Systems Developers
Subject: [ntfsd] Re: Windows OS Product name

This isn’t exactly what you asked for, but maybe it will help you.

You can use the kernel variable NtBuildNumber to determine which build
of NT you are running on.

__declspec(dllimport) ULONG NtBuildNumber

The high word indicates if it is the free 0xF000 or checked 0xC000 build
of NT. The low word is the build number: 1381 = NT4, 2195 = W2k, 2600 =
XP etc… This does not tell you any information about service packs.

Jon

“Prasanna Kumar V V” wrote in message
news:xxxxx@ntfsd…
>
>
> Hi,
>
> Is there any method to know Windows OS product name in kernel mode.
> There is a registry setting at
> “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version”. But I

> am not sure if this same across diffent languages. Please give your
> feedback on this.
>
> regards
> Prasanna Kumar
>
>
>
>
>
>


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%