怎么获取WIMGPAI.DLL中函数的消息、执行结果
谁做过WINDOWS wim 的程序?有个wimgapi.dll
可以引用后使用,
请问怎么获取WIMGPAI.DLL中函数的消息,
就是怎么知道执行到哪里了,进度怎样。
[DllImport("wimgapi.dll", EntryPoint = "WIMCreateFile", SetLastError = true)]wimimage wim GIMAGEX
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 );
补充:.NET技术 , C#