据我所知,我试图转储的特定进程是以低权限运行的,并且我的外部进程是从Administrator CMD窗口执行的。
[DllImport("dbghelp.dll",
EntryPoint = "MiniDumpWriteDump",
CallingConvention = CallingConvention.Winapi,
CharSet = CharSet.Unicode,
ExactSpelling = true,
SetLastError = true)]
private static extern bool MiniDumpWriteDump(IntPtr hProcess,
uint processId,
SafeHandle hFile,
uint dumpType,
IntPtr expParam,
IntPtr userStreamParam,
IntPtr callbackParam);备注:
发布于 2015-11-23 14:18:40
好的..。找到了解决办法..。
外部流程项目是为"AnyCPU“平台构建的(由于它不只是执行-64位命令,所以它运行了32位)。将其设置为x64可以转储另一个64位进程。
我建议任何遇到这个问题的人创建独立的项目,一个是32位,另一个是64位。
https://stackoverflow.com/questions/33868483
复制相似问题