Red Gate forums :: View topic - IMAGE_DOS_HEADER (Structures)
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

IMAGE_DOS_HEADER (Structures)

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
Sam Hobbs



Joined: 13 Apr 2010
Posts: 2
Location: California

PostPosted: Thu Feb 28, 2013 5:56 pm    Post subject: IMAGE_DOS_HEADER (Structures) Reply with quote

I think the previous definition of the IMAGE_DOS_HEADER Structure will not work. I added an "unsafe" C# definition. The other one will not work because it uses "char" and since the data is ASCII the char will use 16 bytes. The unsafe version uses "fixed" which allows use when references are not allowed.

I do not know how to add a note explaining that the unsafe version will work in situations where the other one will not.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Mar 04, 2013 11:00 am    Post subject: Reply with quote

I suppose the best thing to do would be to put this under "Notes" for the function...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group