| Author |
Message |
Sam Hobbs
Joined: 13 Apr 2010 Posts: 2 Location: California
|
Posted: Thu Feb 28, 2013 5:56 pm Post subject: IMAGE_DOS_HEADER (Structures) |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Mon Mar 04, 2013 11:00 am Post subject: |
|
|
I suppose the best thing to do would be to put this under "Notes" for the function... _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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