Prev Previous Post   Next Post Next

64 bit structure alignment?

Posted: 08-13-2008, 08:38 PM
I've just started working on a port of a driver from 32 bit to 64 bit XP and
I think I'm having trouble with alignment in my structures. For example, a
UNICODE_STRING is two shorts and 32 bit pointer. Using WinDbg, I can see
that a pointer to a UNICODE_STRING being supplied by the system to a call
back in my code is using two shorts, four padding bytes and then an 8 byte
pointer to a wide character buffer. My code is not reading this structure
correctly. What settings should I be using at compile time to get my code to
properly interpret structures?
--
Rick


Reply With Quote

Responses to "64 bit structure alignment?"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alignment out when fax through XP Lee Lee Windows XP Printers / Scanners / Fax 2 08-06-2004 02:37 AM
web page alignment Arlen Windows XP Help & Support 3 11-14-2003 04:10 AM
Alignment grid JEff Customize Windows XP 1 11-06-2003 03:31 AM
ALIGNMENT FAILED Jamie Windows XP Printers / Scanners / Fax 1 08-21-2003 12:41 PM
printer alignment denise Windows XP 2 08-08-2003 05:33 AM