Board index » delphi » How do I know DOS program is under Win 95 or Win NT

How do I know DOS program is under Win 95 or Win NT

I have a DOS driver, written in Pascal , and I put some extra
instructions under Win NT, these instructions will cause problem under
Win 95. Since we don't want to ship two different versions of drivers to
our customer, so  I need to set a "flag" to avoid executing these
instructions under Win 95. Now the problem is, Inside my DOS program,
how do I know I am in Win NT or Win 95?

Is it something like "int 21h" calls to catch the "flag"?

I can't find any documented help. Is anybody got some answers? That will

help me a lot.

Harold

 

Re:How do I know DOS program is under Win 95 or Win NT


Quote
harold wrote:

> I have a DOS driver, written in Pascal , and I put some extra
> instructions under Win NT, these instructions will cause problem under
> Win 95. Since we don't want to ship two different versions of drivers to
> our customer, so  I need to set a "flag" to avoid executing these
> instructions under Win 95. Now the problem is, Inside my DOS program,
> how do I know I am in Win NT or Win 95?

> Is it something like "int 21h" calls to catch the "flag"?

> I can't find any documented help. Is anybody got some answers? That will

> help me a lot.

> Harold

Timo's FAQ # 126
How do I detect if my program is running under Windows?

You find it (and plenty more!) on the TP-links site in
the FAQ - chapter. You can download it then.

Franz Glaser
http://www.geocities.com/SiliconValley/2926/tp.html

Other Threads