Gopi Krishna Komanduri wrote: > Hi , > According to my knowledge , windows maintain > exe's in PE format (exception for .net I think). So > the first two characters (dos header )will be MZ. So I > opened an exe in txt format and deleted those two MZ > characters. Then again I appended those 2 characters > at the original opsition (first characters) and tried > to run that exe. It failed to run. > Can any one please suggest what may went > wrong .
.NET still uses PE to initiate the .NET runtime. Specifically, "Data Directory" 15 (of 16) is used to declare the CLI header. The base of the code does a jump into the .NET runtime (_CorExeMain()) and then .NET DLLs read in the CLI header directory, make sure the right .NET runtime got loaded and then proceed to execute the code. Not sure about details past that point but those are more or less the basics. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.0 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
