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. |
Syntax
int CMAPIENTRY CmExtendedDiscControl(HCMSysEntry hcmse, CMULONG flCtrl, const CMBYTE *data, CMUINT cbData);
Parameter
hcmse contains a handle opened by CmAccess2 (can be Box Access, Entry Access or Firm Item access).
flCtrl contains the flags available for obtaining 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