CmEnablingGetApplicationContext
Description
CmEnablingGetApplicationContext gets the context of the application to be enabled/disabled. If there is no disabled Enable Block Item in the CmContainer or no Enable Block Item attached to the given CmContainer or CmContainer entry, then no context is returned.
|
Triple Mode Redundancy-related information (TMR)
|
Syntax
int CMAPIENTRY CmEnablingGetApplicationContext(HCMSysEntry hcmse, CMENABLING_APPCONTEXT *pcmAppContext)
Parameter
hcmse contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
pcmappcontext receives all information needed to enable/disable a CmContainer/entry (see
CMENABLING_APPCONTEXT).
Return
The length of the returned data is returned, if the disabled Enable Block Item attached to the specified CmContainer or CmContainer entry is found. FALSE, if not. Usually, it is the length of the CMENABLING_APPCONTEXT structure.
Notes
The FC:PC stored in the CMENABLING_APPCONTEXT structure can differ from the FC:PC accessed by the HCMSysEntry handle, because the
•FC:PC is stored in the CMENABLING_APPCONTEXT containing the Enable Block, which must be enabled/disabled to have free access to the CmContainer or the CmContainer Entry.
•FC:PC is related to the handle containing the Enable Lookup Item to the Enable Block of the FC:PC stored in CMENABLING_APPCONTEXT so that it is enabled or disabled.
Syntax
public bool CmEnablingGetApplicationContext(HCMSysEntry hcmse, out CmEnablingAppContext AppContext)
Parameter
hcmse contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
AppContext receives all information needed to enable/disable a CmContainer/entry (see
CmEnablingAppContext).
|
CmEnablingAppContext contains basic data of a Enable Block Item (EBI). Syntax
Parameter BoxInfo contains the data of the CmContainer using a
FirmCode contains the Firm Code containing the EBI. ProductCode contains the Product Code containing the EBI. CmEnablingAppContext.Option specifies the following flags.
EnableBlockItem contains the number of the EBI. Reserve is reserved for future purposes. FirmUpdateCounter contains the Firm Update Counter of the Firm Item containing the EBI. Identity obsolete. CompanyName contains the company owning the Firm Code to enable.
|
Return
true is returned, if the disabled Enable Block Item attached to the specified CmContainer or CmContainer entry is found. false, if not.
Notes
The FC:PC stored in the CmEnablingAppContext class can differ from the FC:PC accessed by the HCMSysEntry handle, because the
•FC:PC is stored in theCmEnablingAppContext containing the Enable Block, which must be enabled/disabled to have free access to the CmContainer or the CmContainer Entry.
•FC:PC is related to the handle containing the Enable Lookup Item to the Enable Block of the FC:PC stored in CmEnablingAppContext so that it is enabled or disabled.
Not implemented.