cookie CmSetRemoteUpdateBuffer

This function is deprecated, please use function CmExecuteRemoteUpdate instead.

Description

This function operates like CmSetRemoteUpdate() but uses a pre-allocated memory buffer instead of a file pointer.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmSetRemoteUpdateBuffer(HCMSysEntry hcmBox, CMUINT flCtrl, void* pvMemBuffer, CMUINT cbMemBuffer);

Parameter

hcmBox contains a handle opened by CmAccess / CmAccess2.

flCtrl reserved for future purposes.

pvMemBuffer pointer to memory to hold the data.

cbMemBuffer holds the size of pvMemBuffer.

Return

Returns TRUE, if the update was successful, FALSE if otherwise.

Syntax

public bool CmSetRemoteUpdateBuffer(HCMSysEntry hcmBox, string Buffer)

Parameter

hcmBox contains a handle opened by CmAccess / CmAccess2.

Buffer hold the updating data.

Return

Returns true, if the update was successful, false if otherwise.

 

Syntax

import cmapi
 
handle.CmSetRemoteUpdateBuffer(pvMemBuffer: bytes) -> bool
throws CodeMeterApiFailedException()

Parameter

handle is the handle opened by CmAccess2.

pvMemBuffer memory holding the data.

Return

Returns True, if the update was successful, otherwise an exception is thrown.