Exemplo n.º 1
0
 // All of the Marshal.Copy methods copy to arrays. We need to copy between IntPtrs.
 // Provide a friendly wrapper over a raw pinvoke to RtlMoveMemory.
 // Note that we actually want a copy, but RtlCopyMemory is a macro and compiler intrinisic
 // that we can't pinvoke to.
 private static void RawCopy(IntPtr src, IntPtr dest, uint numBytes)
 {
     DumpReader.RtlMoveMemory(dest, src, new IntPtr(numBytes));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="owner">owning DumpReader</param>
 /// <param name="raw">unmanaged dump structure describing the module</param>
 internal DumpModule(DumpReader owner, MINIDUMP_MODULE raw)
 {
     Raw    = raw;
     _owner = owner;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor for DumpThread
 /// </summary>
 /// <param name="owner">owning DumpReader object</param>
 /// <param name="raw">unmanaged structure in dump describing the thread</param>
 internal DumpThread(DumpReader owner, MINIDUMP_THREAD raw)
 {
     _raw   = raw;
     _owner = owner;
 }