hi friends,
is there a way to detect the current os in the “sources” file?
i need to maintain my sources across win98, 2000 and me.
thanks in advance,
anubhav.
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
hello,
assuming you r working on x86 processor
Using a key point u can detect the current os ie,
win98 supports wdm version 1.0
where as win2k supports wdm version 1.10
so U can use a code something like this,
BOOLEAN IsitWin98()
{
return IoIsWdmVersionAvailable(1,0x10);
}
if(IsitWin98())
KdPrint((“The OS is Win98”));
else
KdPrint((“The OS is Win2K”));
regards,
shiv
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
Try
! IF “$(MIDL_OPTIMIZATION_NT5)” != “”
Max
----- Original Message -----
From: “anubhav”
To: “NT Developers Interest List”
Sent: Thursday, January 31, 2002 5:24 AM
Subject: [ntdev] detecting the os
> hi friends,
>
> is there a way to detect the current os in the “sources” file?
> i need to maintain my sources across win98, 2000 and me.
>
> thanks in advance,
> anubhav.
>
> —
> 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
thanks for the help.
Shiv, i am not sure how to use this code in "SOURCES’ file.
Max, how do i detect Windows ME.
thanks and regards,
anubhav.
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
$(OS) maybe (environment variable)?
Stephan
On Thu, 31 Jan 2002 5:24:59, "anubhav"
wrote:
>
>hi friends,
>
>is there a way to detect the current os in the "sources" file?
>i need to maintain my sources across win98, 2000 and me.
>
>thanks in advance,
>anubhav.
---
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