MfuncStart()函数

Synopsis

Signal the start of a pseudo-MIL function.

Format

long MfuncStart(FunctionId)

MIL_ID FunctionId; Function identifier

Description

This function signals to MIL the actual start of the specified pseudo-MIL function. When this function is called, MIL will treat your function start as a standard MIL function start. If trace reporting is enabled, the trace message will be printed. You can control the trace behavior using the normal MIL trace function (MappControl).

Note that if a MIL identifier was registered in the function parameter list with MfuncParamId, the validity of that identifier will be checked during MfuncStart execution, and a MIL error will be reported if that identifier is not valid.

The FunctionId parameter is the MIL identifier of the pseudo-MIL function to start.

Returned value

The returned value is M_NULL if an error occurred; otherwise, not null.

See also

MfuncAlloc, MfuncFreeAndEnd, MfuncParamId, MappControl