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
Pastor Dave

External


Since: May 25, 2009
Posts: 2



(Msg. 2) Posted: Mon May 25, 2009 2:19 am
Post subject: Re: 64 bit structure alignment? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 13 Aug 2008 15:38:09 -0400, "Richard Lewis Haggard"
<haggard.DeleteThis@msn.com> spake thusly:

>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?

Is there any way you could do another one?
Please see the new thread, "ACPI Driver".

I have both the XP 32 bit & Vista 64 bit drivers
already, but neither will work in XP 64 bit.

Thanks for taking the time to read, if you do!!!

--

Pastor Dave

"The difference between stupidity and genius is that
genius has its limits." - Albert Einstein
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
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support