cookie CmListRemoteUpdate2

Description

CmListRemoteUpdate2 parses an Update File *.WibuCmRaU and determines the serial numbers of all CmContainers listed in this file.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmListRemoteUpdate2(CMUINT flCtrl, void *pvRauFile, CMSERIAL *pcmSerials, CMUINT cbSerials)

Parameter

flCtrl contains one of the following flags:

nav_open CM_RMT_LOCAL_ENCODING uses local encoding for the given filename.

nav_open CM_RMT_UTF8_ENCODING uses UTF8 encoding for the given filename.

nav_open CM_RMT_WCHAR_ENCODING uses wchar encoding for the given filename.

If no encoding flag is set, the local encoding is used.

pvRauFile contains a pointer to the NULL-terminated filename of the Update File *.WibuCmRaU in the encoding that is defined in flCtrl.

pcmSerials contains a pointer to an allocated array of hmtoggle_plus1 CMSERIAL structures which receives the result.

cbSerials contains the length of the array (number of CMSERIAL structures) in pcmSerials.

Return

Returns the number of found serial numbers in the Update File *.WibuCmRaU. If this number is equal or smaller than cbSerials, all found serial numbers are copied to the array at pcmSerials. If the number of found serial numbers is larger than cbSerials, cbSerials elements are copied to the array at pcmSerials.

No method available.

 

Syntax

import cmapi
 
cmapi.CodeMeter().CmListRemoteUpdate2(flCtrl: int, pvRauFile: bytes)
 -> List[cmapi.CMSERIAL]

Parameter

flCtrl contains one of the following flags:

nav_open cmapi.CM_RMT_LOCAL_ENCODING uses local encoding for the given filename.

nav_open cmapi.CM_RMT_UTF8_ENCODING uses UTF8 encoding for the given filename.

nav_open cmapi.CM_RMT_WCHAR_ENCODING uses wchar encoding for the given filename.

If no encoding flag is set, the local encoding is used.

pvRauFile contains a pointer to the NULL-terminated filename of the Update File *.WibuCmRaU in the encoding that is defined in flCtrl.

Return

Returns the list of found serial numbers in the Update File *.WibuCmRaU. The list is made of hmtoggle_plus1 cmapi.CMSERIAL classes.