PERWAPI.PEReader.GetGUID C# (CSharp) Méthode

GetGUID() public méthode

public GetGUID ( ) : System.Guid
Résultat System.Guid
        public Guid GetGUID()
        {
            uint ix;
            if (md.largeGUID) ix = ReadUInt32();
            else ix = ReadUInt16();
            return new Guid(guid.GetBlob(((ix-1)*16),16));
        }

Usage Example

Exemple #1
0
 internal void Read(PEReader buff)
 {
     buff.ReadZeros(2);
     name = buff.GetString();
     mvid = buff.GetGUID();
     uint junk = buff.GetGUIDIx();
     junk = buff.GetGUIDIx();
     if (Diag.DiagOn) Console.WriteLine("Reading module with name " + name + " and Mvid = " + mvid);
     ismscorlib = name.ToLower() == "mscorlib.dll";
 }