ImDiskDeviceSaveImageFile Method (SafeFileHandle, UInt32, ActionActionBoolean) |
Saves contents of disk device to an image file while pumping window messages between reads and writes.
Namespace: LTR.IO.ImDiskAssembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax [ComVisibleAttribute(false)]
public void SaveImageFile(
SafeFileHandle ImageFile,
uint BufferSize,
Action<Action<bool>> CancelAction
)
<ComVisibleAttribute(false)>
Public Sub SaveImageFile (
ImageFile As SafeFileHandle,
BufferSize As UInteger,
CancelAction As Action(Of Action(Of Boolean))
)
public:
[ComVisibleAttribute(false)]
void SaveImageFile(
SafeFileHandle^ ImageFile,
unsigned int BufferSize,
Action<Action<bool>^>^ CancelAction
)
[<ComVisibleAttribute(false)>]
member SaveImageFile :
ImageFile : SafeFileHandle *
BufferSize : uint32 *
CancelAction : Action<Action<bool>> -> unit
Parameters
- ImageFile
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Native file handle opened for writing where disk contents will be written. - BufferSize
- Type: SystemUInt32
Buffer size to use when transferring data from disk device to file. - CancelAction
- Type: SystemActionActionBoolean
A boolean flag that will be checked between buffer reads/writes. If flag is set to True
operation will be cancelled and an exception thrown.
See Also