Skip to main content

MstrPreprocess

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Preprocess a String Reader context.

Syntax

void MstrPreprocess(
AIL_ID ContextId, //in
AIL_INT64 ControlFlag //in
)

Description

This function prepares the specified String Reader context, font, and string model to be read.

This function must be called before the first call to MstrRead. Changes to control settings, the String Reader context, one of its font or string models often require you to re-preprocess the context. To inquire if you need to preprocess or re-preprocess the context, use MstrInquire with M_PREPROCESSED.

In a typical application, MstrPreprocess is called once. To preprocess a String Reader context without error, the context must have at least one font, one character, and one string model.

When you save a String Reader context, the preprocessing changes are not saved. Upon restoration, you must preprocess the context again.

Parameters

ContextId (in, AIL_ID)

Specifies the String Reader context to preprocess. The String Reader context must have been previously allocated on the system using MstrAlloc.

ControlFlag (in, AIL_INT64)

Specifies whether to preprocess the String Reader context. Set this parameter to one of the following values:

For specifying whether to preprocess the context

ValueDescription
M_DEFAULTPreprocesses the String Reader context.
M_RESETUn-preprocesses the String Reader context.

Un-preprocessing the String Reader context can be useful if you want to conserve system memory within an application and preserve String Reader context settings. |

Copyright © 2026 Zebra Technologies.