怎么获取WIMGPAI.DLL中函数的消息、执行结果

Alin------ Alin------ 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
谁做过WINDOWS wim 的程序?
有个wimgapi.dll
可以引用后使用,
请问怎么获取WIMGPAI.DLL中函数的消息,
就是怎么知道执行到哪里了,进度怎样。


[DllImport("wimgapi.dll", EntryPoint = "WIMCreateFile", SetLastError = true)]
public static extern IntPtr WIMCreateFile(
[MarshalAs(UnmanagedType.LPWStr)] string lpszWimPath,
UInt32 dwDesiredAccess,
Int32 dwCreationDisposition, Int32 dwFlagsAndAttributes, Int32 dwCompressionType, out Int32 lpdwCreationResult);

// WIMApplyImage - Applies an image to a directory path from a Windows image (.wim) file.

[DllImport("wimgapi.dll", EntryPoint = "WIMApplyImage", SetLastError = true)]
public static extern int WIMApplyImage(IntPtr hImage, [MarshalAs(UnmanagedType.LPWStr)] string lpszPath, Int32 dwApplyFlags);

// WIMCaptureImage - Captures an image from a directory path and stores it in an image file.

[DllImport("wimgapi.dll", EntryPoint = "WIMCaptureImage", SetLastError = true)]
public static extern IntPtr WIMCaptureImage(IntPtr hWim, [MarshalAs(UnmanagedType.LPWStr)] string lpszPath, Int32 dwApplyFlags);

// WIMCloseHandle - Closes an open Windows Imaging (.wim) file or image handle.

[DllImport("wimgapi.dll", EntryPoint = "WIMCloseHandle", SetLastError = true)]
public static extern int WIMCloseHandle( IntPtr hObject );
...全文
评论
收藏 已收藏
分享
返回顶部
Alin------
C# 111,129 成员 642,540 内容