CmExtendedDiscControl
Description
CmExtendedDiscControl is used to obtain information 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 CmExtendedDiscControl(HCMSysEntry hcmse, CMULONG flCtrl, void *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 optaining information of a secure disk partition.
CM_SECURE_DISC_STATUS contains information on the secure disc status (0x00000200).
CM_GET_DISC_CONFIGURATION contains information of the disk configuration (0x00000203).
data points to the structures:
|
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.
|
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.CmExtendedDiscControl(flCtrl: int) -> cmapi.CM_DISC_CONFIGURATION
throws CodeMeterApiFailedException()
Parameter
handle is the handle opened by CmAccess / CmAccess2 (can be Box Access, Entry Access or Firm Item access).
flCtrl contains the flags available for optaining information of a secure disk partition.
cmapi.CM_SECURE_DISC_STATUS contains information on the secure disc status (0x00000200).
cmapi.CM_GET_DISC_CONFIGURATION contains information of the disk configuration (0x00000203).
Return
a
cmapi.CM_DISC_CONFIGURATION) object.
Class cmapi.CM_DISC_CONFIGURATION cmapi.CM_DISC_CONFIGURATION contains information of the disk configuration. Syntax
Parameter mbMajorFirmwareRevision contains major Firmware version number of the flash controller, e.g. 9. mbMinorFirmwareRevision contains the minor Firmware version number of the flash controller, e.g. 3. musBytesPerSector contains the fixed size of the sector. Currently 512. mulLengthOfBlock0 contains block length of public disk. mulLengthOfBlock1 contains block length of private disk. mulLengthOfBlock2 contains block length of cd-rom disk. mulLengthOfBlock3 contains block length of secure disk. mulFlashSize contains size of flash memory. mulSerialNumber contains CodeMeter chip serial number without mask code. mulEnablingStatus contains the various enabling stati in the IFI (Implicit Firm Item). mabReserved is reserved for future purpose. mulArticleMinor contains. mulArticleSubcase contains.
|
Return
If the functions fails, an exception is thrown.
Notes
Not implemented