| Customize Help
| Save Settings


Function Map
Link one buffer or container to another.
void MbufLink(
MIL_ID SrcContainerOrBufId, //in
MIL_ID TargetContainerOrBufId, //in
MIL_INT64 LinkOperation, //in
MIL_INT ControlFlag //in

This function links two buffers or containers so that subsequent modifications in the source are copied to the target until the buffers/containers are unlinked. For instance, when using the Distributed MIL monitoring configuration, you can link a publishing application's image buffer to the monitoring application's image buffer. Any modifications to the published buffer will be copied to the local buffer.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
This function is not supported on the selected boards.

Specifies the identifier of the source buffer or container. This buffer or container remains independent and can be modified as per the application's standard mechanisms.


Specifies the identifier of the target buffer or container. The contents of this buffer or container will have the same modifications applied to it as are applied to SrcContainerOrBufId.


Specifies the link operation to perform.

function map To specify the link operation
Click to summarizeValue Description
Click to summarize M_LINK

Specifies to link the two specified buffers.

Click to summarize M_UNLINK

Specifies to unlink the two specified buffers.


Specifies whether to convert 3D information copied from the source container. If unused, this parameter must be set to M_DEFAULT.

function map For specifying to compensate for missing information in the source container
Click to summarizeValue Description
Click to summarize M_COMPENSATE

Specifies to automatically convert the information copied from the source container to the destination container so that the destination container is 3D-processable (if the destination container has the attribute M_PROC) and/or 3D-displayable (if the destination container has the attribute M_DISP). This is equivalent to using MbufConvert3d() with M_COMPENSATE.

An error will be generated any time the source container is modified and its contents cannot be copied because it cannot be converted.

Note that this setting is only available when mil3d.dll is present.

Compilation information
Header Include mil.h.
Library Use mil.lib;.
DLL Requires mil.dll, mil3d.dll for 3D compensation.