当前位置:编程学习 > C#/ASP.NET >>

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

谁做过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 );
wimimage wim GIMAGEX
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,