USB Bulk Driver & Windows 2000?

I have a USB driver, based on the WDM - USB Bulk Transfer Driver Sample, it work fine on XP and Vista.

I recently got a request to support W2K, but I when I tried to build the DDK samples with the WDK 1.7 Windows 2000 build window, none of the WDM USB samples get built.

It is the same for all three DDK versions:

WDK 6001.18000 - Windows Server 2008 WDK
DDK 3790.1830 - Windows Server 2003 SP1 DDK
DDK 2600.1106 - Windows® XP Service Pack 1 DDK

Can I use this driver on Windows 2000?

Thanks
Robert

xxxxx@hotmail.com wrote:

I have a USB driver, based on [BulkUSB]

I recently got a request to support W2K, but I when I tried to build
the DDK samples with the WDK 1.7 Windows 2000 build window, none of
the WDM USB samples get built.

Yes, I had the same problem. You need to build in the WinXP environment,
the BulkUSB binary compiled there will also run on Win2000.

If you added to the BulkUSB driver by introducing calls that did not
exist on Win2000, you’ll have to find a way around linking to them.
Dynamic loading is fine (you have to do it OS-dependent, of course, as
demonstrated by some PnP code in the sample).

Can I use this driver on Windows 2000?

Out of the “box” (WDK 6000 RTM) the BulkUSB.sys file will work on
everything from Win2K up to Vista32.
(Up to Vista64 if you build it and sign it.)

With extremely minor tweaking (scrapping one macro definition introduced
with WinXP), it will run on Windows ME, too.

To also support Windows 98 SE, buy the book from Walter Oney (you need
wdmstub.sys and the redistribution license for it) and a tiny little
more tweaking.

The hardest remaining part is in fact the INF file. :slight_smile:

Hagen Patzke wrote:

(Up to Vista64 if you build it and sign it.)

Should read:
(Up to Vista64 if you build it for x64 and sign it.)