NtReplyWaitReceivePort on Win 2008 R2 IA64

Hello all,

I am facing a problem with the API NtReplyWaitReceivePort(Seems to be an undocumented one!) on Windows 2008 R2 IA 64 platform. This API returns 0x80000002(STATUS_DATATYPE_MISALIGNMENT) . I tried #pragma push/pop but it didnt help. Same API works well and good in other platforms (x64,x86). Even for IA 64, it works fine on a Windows 2003 machine.

Please note that I am running my program which is calling NtReplyWaitReceivePort in WOW mode. Any help in this regard is highly appreciable.

Thanks in Advance,
-Mani.

The buffer itself is not aligned. Are you using your own allocator (which may be adding a header before the “real” pointer begins or something like that) or just using a provided allocator (malloc, new, heapalloc, etc) as is?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@gmail.com
Sent: Wednesday, June 17, 2009 6:20 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NtReplyWaitReceivePort on Win 2008 R2 IA64

Hello all,

I am facing a problem with the API NtReplyWaitReceivePort(Seems to be an undocumented one!) on Windows 2008 R2 IA 64 platform. This API returns 0x80000002(STATUS_DATATYPE_MISALIGNMENT) . I tried #pragma push/pop but it didnt help. Same API works well and good in other platforms (x64,x86). Even for IA 64, it works fine on a Windows 2003 machine.

Please note that I am running my program which is calling NtReplyWaitReceivePort in WOW mode. Any help in this regard is highly appreciable.

Thanks in Advance,
-Mani.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer