I have a .net app which is designed to run in a 32 bit environment and it runs in 64 bit OS in wow64 environment.
Now i am creating an utility(32 bit) to create dump for the application.
I use the following code to create a dump.
[DllImport("dbghelp.dll", EntryPoint = "MiniDumpWriteDump", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
static extern bool MiniDumpWriteDump(IntPtr hProcess, uint processId, SafeHandle hFile, uint dumpType, ref MiniDumpExceptionInformation expParam, IntPtr userStreamParam, IntPtr callbackParam);
This API call executes fine in 32bit OS but fails in 64 bit OS.
Any one has created a dump for a 32 bit app in 64 bit OS?Pls help.