Is something wrong here? A call to NtBuildNumber in my DriverEntry
results in Kernel Exception with STATUS_ACCESS_DENIED.
extern PSHORT NtBuildNumber; // defined as global.
if ( *NtBuildNumber == 2195 ) { // Win2K
return XXX;
} else if ( *NtBuildNumber == 2600 ) { // WinXP
return YYY;
} else return 0;
Regards,
-Mike
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
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
Maybe PsGetVersion is better idea?
----- Original Message -----
From: “Mike Zirolli”
To: “NT Developers Interest List”
Sent: Monday, November 05, 2001 1:59 AM
Subject: [ntdev] NtBuildNumber
Is something wrong here? A call to NtBuildNumber in my DriverEntry
results in Kernel Exception with STATUS_ACCESS_DENIED.
extern PSHORT NtBuildNumber; // defined as global.
if ( *NtBuildNumber == 2195 ) { // Win2K
return XXX;
} else if ( *NtBuildNumber == 2600 ) { // WinXP
return YYY;
} else return 0;
Regards,
-Mike
____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.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
In some old drivers for NT4 DDK I used following:
__declspec(dllimport) DWORD NtBuildNumber; // internal NT build number
BuildNumber = NtBuildNumber & 0xffff;
It probably won’t work with later DDKs; I’ve read about some change there
but can’t remember what it was…
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]
From: xxxxx@usa.net[SMTP:xxxxx@usa.net]
Reply To: xxxxx@lists.osr.com
Sent: Sunday, November 04, 2001 11:59 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] NtBuildNumber
Is something wrong here? A call to NtBuildNumber in my DriverEntry
results in Kernel Exception with STATUS_ACCESS_DENIED.
extern PSHORT NtBuildNumber; // defined as global.
if ( *NtBuildNumber == 2195 ) { // Win2K
return XXX;
} else if ( *NtBuildNumber == 2600 ) { // WinXP
return YYY;
} else return 0;
Regards,
-Mike
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
You are currently subscribed to ntdev as: michal.vodicka@st.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
How about RtlGetVersion? This is doc’ed in the DDK…
“Mike Zirolli” wrote in message news:xxxxx@ntdev…
Is something wrong here? A call to NtBuildNumber in my DriverEntry
results in Kernel Exception with STATUS_ACCESS_DENIED.
extern PSHORT NtBuildNumber; // defined as global.
if ( *NtBuildNumber == 2195 ) { // Win2K
return XXX;
} else if ( *NtBuildNumber == 2600 ) { // WinXP
return YYY;
} else return 0;
Regards,
-Mike
____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
—
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 are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Jean,
Yes it is doc’d in the ddk, unfortunately it is not available to drivers
built with the w2k ddk. Check dumpbin /exports of the ntoskrnl.lib in the
2195 ddk. I think that the last time this came up it was explained as a
build error in ntoskrnl.lib. That is why the other suggestion was to use
PsGetVersion, which is available in both w2k and xp.
-----Original Message-----
From: Jean Valentine [MS] [mailto:xxxxx@microsoft.com]
Sent: Wednesday, November 07, 2001 12:58 AM
To: NT Developers Interest List
Subject: [ntdev] Re: NtBuildNumber
How about RtlGetVersion? This is doc’ed in the DDK…
“Mike Zirolli” wrote in message news:xxxxx@ntdev…
Is something wrong here? A call to NtBuildNumber in my DriverEntry results
in Kernel Exception with STATUS_ACCESS_DENIED.
extern PSHORT NtBuildNumber; // defined as global.
if ( *NtBuildNumber == 2195 ) { // Win2K
return XXX;
} else if ( *NtBuildNumber == 2600 ) { // WinXP
return YYY;
} else return 0;
Regards,
-Mike
____________________________________________________________________
Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
—
You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: xxxxx@stratus.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