Hi All,
I am writing an Ndis Miniport driver for Win98 and Win2k
and trying to make one binary for both of them. Is there any way to
distinguish between Win98 and Win2k at run time.
thanx in advance
Ashish
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,
In NT and W2k you can check the registry setting:
HKLM\System\CurrentControlSet\Control\ProductOptions\ProductType. The walue
should be “WinNT” for the NT or 2k workstation and “LanmanNT” or “ServerNT”
for the server version. In W98 there are no settings like those.
Regards,
Stas
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ashish Singh
Sent: Monday, March 05, 2001 7:34 PM
To: NT Developers Interest List
Subject: [ntdev] distinguish os at run time
Hi All,
I am writing an Ndis Miniport driver for Win98 and Win2k
and trying to make one binary for both of them. Is there any way to
distinguish between Win98 and Win2k at run time.
thanx in advance
Ashish
You are currently subscribed to ntdev as: xxxxx@powernetsys.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
There is a function:
BOOLEAN PsGetVersion( PULONG pulMajor, PULONG pulMinor, PULONG pulBuild,
UNCODE_STRING *puniCSDVersion );
available to NT KMD Drivers, not sure if it’s available to WDMs. Basically
you provide valid pointers for the values you want, NULL pointers for those
you don’t.
Alun Carp
Driver Development Team Leader
-----Original Message-----
From: Stas Desy [mailto:xxxxx@powernetsys.com]
Sent: 06 March 2001 08:08
To: NT Developers Interest List
Subject: [ntdev] RE: distinguish os at run time
Hi,
In NT and W2k you can check the registry setting:
HKLM\System\CurrentControlSet\Control\ProductOptions\ProductType. The walue
should be “WinNT” for the NT or 2k workstation and “LanmanNT” or “ServerNT”
for the server version. In W98 there are no settings like those.
Regards,
Stas
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ashish Singh
Sent: Monday, March 05, 2001 7:34 PM
To: NT Developers Interest List
Subject: [ntdev] distinguish os at run time
Hi All,
I am writing an Ndis Miniport driver for Win98 and Win2k
and trying to make one binary for both of them. Is there any way to
distinguish between Win98 and Win2k at run time.
thanx in advance
Ashish
You are currently subscribed to ntdev as: xxxxx@powernetsys.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