Look for EntryPointToken in CLR Header (offset 20 from the start of the header). If it's a MethodDef token, then it's your baby. If it's a File token (happens only in a multi-module assembly), then look for EntryPointToken in the CLR Header of respective file.
Thanks, Serge -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] Behalf Of Miguel Tomás Sent: Thursday, June 05, 2003 4:09 AM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Main method token Hi! I hope you can help me with a little problem I'm having with SSCLI. I am trying to get the token from main while I'm in the jitCompile method. I thought Main was always 0x06000001 but this doesn't seem to be true so I need to get it from somewhere. Does anybody know how to obtain it? Thank you. --------------------------------- Yahoo! Sorteos Juega a la Lotería Primitiva sin salir decasa