Hi and welcome to my blog. Im Tasos, a software engineer working in the UK. This is where i share some of my findings related with SQL, c#, asp.net and javascript with you. I hope you find something helpful and Im looking forward to your feedback!

Recent Comments

Popular Posts

Recent Posts

Archives

Post Categories

Blog Stats

  • Posts: 15
  • Comments: 116
  • Trackbacks: 9
  • Articles: 1

Delphi

How to Determine if a file is a .Net assembly (in Delphi and C#)

posted @ Tuesday, April 17, 2007 1:01 AM | Feedback (0), Filed Under Delphi C#

Given a file, we would like to check if it is a valid .Net assembly file. How would you go about it? 1. A couple of words about the PE file format .Net assemblies are valid PE files.  A PE file consists of:     *   MS-DOS header      *   Stub Program     *   PE file signature     *   PE file header (This is where we position our stream)     *   PE optional header     *   Section headers  (This is where the RVA15 is)     *   Section bodies The PE file header is where we position our file stream at byte offset 60. The 32 bits at this position are the...