将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。

This commit is contained in:
QI Mingxuan
2026-04-16 17:31:13 +08:00
parent 6ec4c3ddaa
commit 2bd6e566c3
581 changed files with 74600 additions and 222 deletions
+25
View File
@@ -0,0 +1,25 @@
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
namespace XP.Common.Dump.Native
{
/// <summary>
/// Windows 原生方法 P/Invoke 声明 | Windows native method P/Invoke declarations
/// </summary>
internal static class NativeMethods
{
/// <summary>
/// 将进程的 Mini Dump 写入指定文件 | Write a Mini Dump of the process to the specified file
/// </summary>
[DllImport("dbghelp.dll", SetLastError = true)]
internal static extern bool MiniDumpWriteDump(
IntPtr hProcess,
uint processId,
SafeHandle hFile,
uint dumpType,
IntPtr exceptionParam,
IntPtr userStreamParam,
IntPtr callbackParam);
}
}