MIL_ID SysId, | //in |
MIL_INT64 ContextType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextCodeIdPtr | //out |
This function allocates a code context. The code context contains the models of the codes to read, verify, or write.
To add code models to the context, use McodeModel(). A code context can contain multiple 1D code models of various types (excluding GS1 databar, Planet, and Postnet), but for 2D code types, a context can contain at most one model. To adjust code model settings, use McodeControl().
When the code context is no longer needed, you should free it, using McodeFree().
Specifies the system on which to allocate the context. This parameter should be set to one of the following values:
For specifying the system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the context type. Reserved for future expansion. This parameter must be set to M_DEFAULT.
Header | Include mil.h. |
Library | Use mil.lib; milcode.lib. |
DLL | Requires mil.dll; milcode.dll. |