Win2000 and WinXP

Hi,
We have a driver which runs on Windows 2000. We want to use the same driver for XP. I’ve two questions:

  1. Can the .sys file build from Win2000 DDK be used directly?why?
  2. What are the changes that might be required to build it for XP. Actually in our 2000 versions we have a few warnings. Now if I compile the same code under WinXP I see message “warning Treated as error”. I changed the MSC_WARNING_LEVEL from /WX to /W3 but the problem remains. What else i may need to do?

Regards,
Rajeev

>What else i may need to do?

Fix the warnings.

Loren

Well first of all Loren is absolutely right, fix your bloody warnings.
Secondly (and to answer your first question :slight_smile: your w2k-ddk .sys file will
execute on wxp as wxp is backwards compatible with the 2000 ddk. (The wxp
ddk is a superset.)


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Loren Wilton
Sent: Monday, December 01, 2003 5:06 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: Win2000 and WinXP

What else i may need to do?

Fix the warnings.

Loren


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I used to work with one of those fellows with a doctorate in computer science who had tons of initials after his name. His solution to warnings messages was to turn warnings off. How sweetly I remember the hours I spent debunking his code containing hundreds of warnings about a mis-managed pointer that would have been fixed if he had FIXED THE GOD DAMNED WARNINGS instead of turning them off.

If you avoid Server 2003 and/or XP specific functions in your source, you can probably compile for .NET and use one binary across all 3 platforms. Of course this will limit your use of some of the newer spinlocks and queues.


Gary G. Little
Seagate Technologies, LLC
“Rajeev Gaba” wrote in message news:xxxxx@ntdev…
Hi,
We have a driver which runs on Windows 2000. We want to use the same driver for XP. I’ve two questions:
1) Can the .sys file build from Win2000 DDK be used directly?why?
2) What are the changes that might be required to build it for XP. Actually in our 2000 versions we have a few warnings. Now if I compile the same code under WinXP I see message “warning Treated as error”. I changed the MSC_WARNING_LEVEL from /WX to /W3 but the problem remains. What else i may need to do?

Regards,
Rajeev

>1) Can the .sys file build from Win2000 DDK be used directly?why?

Yes it can for sure.

  1. What are the changes that might be required to build it for XP. Actually in
    our 2000

If you want your binary to run on both OSes - then use only the w2k build
environment and forget the new-to-XP features.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

> I used to work with one of those fellows with a doctorate in
> computer science who had tons of initials after his name. His solution to
> warnings messages was to turn warnings off. How sweetly I remember the
> hours I spent debunking his code containing hundreds of warnings about a
> mis-managed pointer that would have been fixed if he had FIXED THE GOD
> DAMNED WARNINGS instead of turning them off.
>
Gary, I know people who do the same thing, seldom check function return
codes and the best one can do with code they barf is complete rewrite. As
far as I know, none of them has CS doctorate. There are good and bad
developers and the relation to CS education is weak at least (if any).

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]