WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

64 bit structure alignment?

 
   Home -> Windows -> Device Driver RSS
Next:  Which drivers are needed for 3 Base System Device..  
Author Message
Richard Lewis Haggard

External


Since: Aug 13, 2008
Posts: 1



(Msg. 1) Posted: Wed Aug 13, 2008 3:38 pm
Post subject: 64 bit structure alignment?
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

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
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows -> Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
  Windows XP
 Windows Vista
 Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET