cookie 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.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

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 hmtoggle_plus1 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 hmtoggle_plus1 CmEnablingAppContext).

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.