CmSecureDiscRead
Description
CmSecureDiscRead is used to read one or several sectors of a Secure Disk partition of a CmContainer.
|
For more details on the Secure Disk feature, please contact Wibu-Systems support. |
|
Triple Mode Redundancy-related information (TMR)
|
Syntax
int CMAPIENTRY CmSecureDiscRead(HCMSysEntry hcmse, CMULONG flCtrl, CM_DISC_STATUS *status, const CM_DISC_SECTOR *sector, CMBYTE *data, CMUINT cbData);
Parameter
hcmse contains a handle opened by CmAccess / CmAccess2 (can be Box Access, Entry Access or Firm Item access).
flCtrl contains the flags available for reading operation of a secure disk partition:
CM_SECURE_DISC_READ reads sector(s) of a secure disk partition (0x00000201).
status contains contains information on the secure disk partition (see structure
CM_DISC_STATUS).
|
CM_DISC_STATUS contains information on the secure disk partition. Syntax
Parameter mulErrorCode contains the error code after a read or write operation. mulEnablingBits contains the enabling bits set for the Secure Disk partition. mulDiscSectorsTotal contains the total number of sectors (each 512 byte). mulWriteOnceCount contains the number of the block following a block which is one-time written, mabReserved[64] is reserved for future purpose.
|
sector contains the sector specification of the secure disk partition (see structure
CM_DISC_SECTOR).
|
CM_DISC_SECTOR contains sector information on the secure disk partition. Syntax
Parameter mulNumberOfRequestedSectors contains the number of sectors (at least 1). mulSectorOffset contains the start sector. mabReserved[56] must be NULLed and is reserved for future purposes.
|
data contains the sector information.
cbData contains the length of data in bytes .
Return
If the functions fails, a value of 0 is returned.
Notes
Not implemented.
Syntax
import cmapi
handle.CmSecureDiscRead(status: cmapi.CM_DISC_STATUS,
sector: CM_DISC_SECTOR) -> bytes
throws CodeMeterApiFailedException()
Parameter
handleis the handle opened by CmAccess2 (can be Box Access, Entry Access or Firm Item access).
flCtrl contains the flags available for reading operation of a secure disk partition:
cmapi.CM_SECURE_DISC_READ reads sector(s) of a secure disk partition (0x00000201).
status contains contains information on the secure disk partition (see structure
cmapi.CM_DISC_STATUS).
|
CM_DISC_STATUS contains information on the secure disk partition. Syntax
Parameter mulErrorCode contains the error code after a read or write operation. mulEnablingBits contains the enabling bits set for the Secure Disk partition. mulDiscSectorsTotal contains the total number of sectors (each 512 byte). mulWriteOnceCount contains the number of the block following a block which is one-time written, mabReserved[64] is reserved for future purpose.
|
sector contains the sector specification of the secure disk partition (see structure
cmapi.CM_DISC_SECTOR).
|
cmapi.CM_DISC_SECTOR contains sector information on the secure disk partition. Syntax
Parameter mulNumberOfRequestedSectors contains the number of sectors (at least 1). mulSectorOffset contains the start sector. mabReserved[56] must be NULLed and is reserved for future purposes.
|
Return
The sector information. If the functions fails, an exception is thrown.
Notes
Not implemented.