PC Review


Reply
Thread Tools Rate Thread

64 bit structure alignment?

 
 
Richard Lewis Haggard
Guest
Posts: n/a
 
      13th Aug 2008
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
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Cell alignment, how do I update the default vertical alignment How to update default cell alignment Microsoft Excel Setup 2 4th Feb 2009 02:25 PM
Structure alignment struggle. A n g l e r Microsoft C# .NET 9 24th Jun 2008 11:20 PM
Structure Alignment Mike C# Microsoft VC .NET 2 26th Jun 2006 07:34 PM
Using a structure as a property in a class gives error when accessing properties of structure D Witherspoon Microsoft Dot NET Framework Forms 6 5th Mar 2005 06:43 AM
Re: Copying unmanaged memory pointer of structure to managed structure array Mattias Sjögren Microsoft VC .NET 0 28th Aug 2004 03:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:14 PM.