I have gotten this far:

  [DllImport("DbgHelp.dll")]
  private static extern bool MiniDumpWriteDump(IntPtr hProcess,
    int processId, IntPtr fileHandle, int dumpType,
    IntPtr excepInfo, IntPtr userInfo, IntPtr extInfo);

However, the following WIN32 struct definition for the 5th parameter seems
to be required to make MiniDumpWriteDump useful (using IntPtr.Zero results
in not very useful dumps).  Unfortunately I am not sure if it can be
filled in from managed code:

typedef struct _MINIDUMP_EXCEPTION_INFORMATION {
  DWORD ThreadId;
  PEXCEPTION_POINTERS ExceptionPointers;
  BOOL ClientPointers;
} MINIDUMP_EXCEPTION_INFORMATION, *PMINIDUMP_EXCEPTION_INFORMATION;


Specifically, how could I get a pointer to EXCEPTION_POINTERS from managed
code?

--
Keith

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to