# bcfBuildBearerControlMessage

Builds a Bearer Control Message.

### Prototype

DWORD bcfBuildBearerControlMessage(U8 *outBuf, U32 outBufSize, SiBearerControlEvnt *inBearerControl, U32 *actualBcfSize)

Argument | Description
outBuf | Output buffer to contain the BCF message.
outBufSize | Size (in bytes) of the output buffer used to contain the BCF message.
inBearerControl | Input Bearer Control Evnt structure used to build the BCF message.
actualBcfSize | Actual size (in bytes) of BCF message.

### Return Values

Argument | Description
BCF_SUCCESS |
BCF_PARAM_ERROR | Parameter error.
BCF_ERROR | Error occurred while building the BCF message.
BCF_BUFFER_TOO_SMALL | The output buffer is too small.

### Details

bcfBuildBearerControlMessage builds an outbound Bearer Control message based on SiBearerControlEvnt structure.

APM’2000 Originating Address and Destination Address are set with Length = 0.