Hi,

I have a 32 bit driver that accesses the PCI bus and I/O registers.
I want to port this driver to X64.
Please guide me the necessary steps that need to be carried out for this.
Can we build the X64 driver using Visual studio (as we do for 32 bit driver)?
Also can we use a XP DDK or NT DDK to build this driver?

Regards,
Vikram

Re: X64 Driver Porting by Don

Don
Tue Jul 22 09:45:09 CDT 2008


"Vikram" <Vikram@discussions.microsoft.com> wrote in message
news:6015C02B-5F6B-49B7-B62B-9720CEF6FE93@microsoft.com...

> I have a 32 bit driver that accesses the PCI bus and I/O registers.
> I want to port this driver to X64.

I assume this is a plug and play compliant driver, if not it will not work
on x64 period. If your driver is not PnP then you may want to completely
rewrite it with the new KMDF framework.

> Please guide me the necessary steps that need to be carried out for this.

Get the latest WDK (the replacement for the DDK) and look at "Porting Your
Driver to 64-Bit Windows" this covers the basics.

> Can we build the X64 driver using Visual studio (as we do for 32 bit
> driver)?

It depends on what you mean by using Visual studio. If you mean using VS
with a script like DDKBUILD then yes there is no problem, if yo mean
compiling it directly never do this. I was paid a couple years ago over
$60,000 to track down a bug that in the end was using the VS compiler
instead of the current compiler that comes with the WDK.

> Also can we use a XP DDK or NT DDK to build this driver?


The only supported kits at this time is the WDK. See
http://www.microsoft.com/whdc/devtools/wdk/WDKpkg.mspx for how to get it.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr




Re: X64 Driver Porting by Maxim

Maxim
Fri Jul 25 09:15:55 CDT 2008

> Please guide me the necessary steps that need to be carried out for this.

The 64bit coding guidelines are easy to find in MSDN Library, both for user and
for kernel mode.

> Can we build the X64 driver using Visual studio (as we do for 32 bit driver)?

Unrecommended. If you will have an issue - then nearly nobody on forums will
help you until you will recompile with WDK.

> Also can we use a XP DDK or NT DDK to build this driver?

They are obsolete, use WDK 6001.18001

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