Event and Ioctl DDK Samples not run in WinXP 64

Hi all,

Have anyone tried Sample DDK ioctl and event in AMD64 bit machine ?

On my development machine (Pentium 4) with latest Windows DDK, I have built
these 2 samples using “WinXP Checked 64 bits build Environment”.

When I bring exe files to test machine (AMD64 chip) WinXP Professional 64
Os I have the following error:

“The image C:\TEMP\sioctl.exe is valid, but is for a machine type other than
the current machine”

What is wrong ?

Another thing I notice is, once they are built, the sys and exe files are
found in objchk_wxp_ia64\ia64 directory.
Im very confuse. I though ia64 is for Itanium machine right ?

Why “WinXP Checked 64 bits build Environment” produces something for ia64 ?
(I expect the result should be found in folder amd64 …)

Please help,

QUANG

If I build these 2 samples using “Win2003 Checked AMD64 bits build
Environment”.
then they will work on my test machine WinXp64.

My target isWinXP 64, why I have to use Win Server 2003 build environment ?

Thanks for help,
QUANG

“Quang Vu” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> Have anyone tried Sample DDK ioctl and event in AMD64 bit machine ?
>
> On my development machine (Pentium 4) with latest Windows DDK, I have
built
> these 2 samples using “WinXP Checked 64 bits build Environment”.
>
> When I bring exe files to test machine (AMD64 chip) WinXP Professional 64
> Os I have the following error:
>
> “The image C:\TEMP\sioctl.exe is valid, but is for a machine type other
than
> the current machine”
>
> What is wrong ?
>
>
> Another thing I notice is, once they are built, the sys and exe files are
> found in objchk_wxp_ia64\ia64 directory.
> Im very confuse. I though ia64 is for Itanium machine right ?
>
> Why “WinXP Checked 64 bits build Environment” produces something for ia64
?
> (I expect the result should be found in folder amd64 …)
>
>
> Please help,
>
> QUANG
>
>
>

Unfortunately, the naming is confusing.

Windows XP 64 bit build environment is for the now-obsolete ia64 Windows
XP platform.

To build for Windows XP x64 build environment, you must use the Windows
Server 2003 x64 build environments. That is because the amd64/em64t
version of Windows XP is really built from the Windows Server 2003 code
base, not the older Windows XP code base.

So, to build your Windows XP amd64 driver, use the Windows Server 2003
x64 (checked or free) build environment.

Confusing? Oh, yeah…

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Quang Vu
Sent: Tuesday, July 26, 2005 9:38 AM
To: ntdev redirect
Subject: [ntdev] Event and Ioctl DDK Samples not run in WinXP 64

Hi all,

Have anyone tried Sample DDK ioctl and event in AMD64 bit machine ?

On my development machine (Pentium 4) with latest Windows DDK, I have
built
these 2 samples using “WinXP Checked 64 bits build Environment”.

When I bring exe files to test machine (AMD64 chip) WinXP Professional
64
Os I have the following error:

“The image C:\TEMP\sioctl.exe is valid, but is for a machine type other
than
the current machine”

What is wrong ?

Another thing I notice is, once they are built, the sys and exe files
are
found in objchk_wxp_ia64\ia64 directory.
Im very confuse. I though ia64 is for Itanium machine right ?

Why “WinXP Checked 64 bits build Environment” produces something for
ia64 ?
(I expect the result should be found in folder amd64 …)

Please help,

QUANG


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

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

More about that in the article

A description of the x64-based versions of Windows Server 2003 and of
Windows XP Professional x64 Edition

http://support.microsoft.com/kb/888733

> Have anyone tried Sample DDK ioctl and event in AMD64 bit machine ?

On my development machine (Pentium 4) with latest Windows DDK, I have
built
these 2 samples using “WinXP Checked 64 bits build Environment”.

This builds for Itanium.

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