CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode RemoteDevice_RestoreSnapshotData_Async ( CPHOOKEDOBJECT const  hRemoteDevice,
SnapshotTypes const  snapshotType,
CPUINT32 const  dwOffset,
CPUINT32 const  dwContextData,
CPUINT16 const  wBlockSize,
CPBOOLEAN const  fLastBlock,
CPBYTE const *const  pBlockData,
CPUINT32 const  dwClientContextData,
CPHASYNC *const  phAsync 
)

Restore a Snapshot data block to the remote device.

Parameters
[in]hRemoteDeviceHandle to the remote device.
[in]snapshotTypeSnapshot information type related to this block. See SnapshotTypes
[in]dwOffsetBlock offset
[in]dwContextDataContext data. 0 for the 1st block, then value get from previous ARH_REMOTEDEVICE_RESTORESNAPSHOTDATA
[in]wBlockSizeBlock size, will be the same for each restore request
[in]fLastBlockTRUE if this is the last block
[in]pBlockDataPointer to the block data
[in]dwClientContextDataData passed back to the ARH_REMOTEDEVICE_RESTORESNAPSHOTDATA callback handler.
[out]phAsyncPointer to the handle of the async operation.
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.