Functions | |
MLPIRESULT | mlpiContainerCreate (const MLPIHANDLE connection, const WCHAR16 *tagList, const MlpiContainerAccess accessFlag, MlpiContainerHandle *handle, ULONG *dataSize) |
MLPIRESULT | mlpiContainerUpdate (const MLPIHANDLE connection, const MlpiContainerHandle handle, void *data, const ULONG dataSize) |
MLPIRESULT | mlpiContainerDestroy (const MLPIHANDLE connection, MlpiContainerHandle *handle) |
Contains functions to create, update and destroy containers.
Before you can use any other container function, you need to create a container using the function mlpiContainerCreate provided here. Update the container by using mlpiContainerUpdate and don't forget to release the container by calling mlpiContainerDestroy when you are finished.
MLPIRESULT mlpiContainerCreate | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | tagList, | ||
const MlpiContainerAccess | accessFlag, | ||
MlpiContainerHandle * | handle, | ||
ULONG * | dataSize | ||
) |
This function creates a new container. It has to be specified if the container is a read or write container. It is not possible to read and write using the same container. To specify which data to read or write, you have to give a tag list to the function. The tag list is a formatted string of one or multiple tags which are separated by a semicolon (;). Each tag is built of multiple arguments which are again separated by comma (
,).
Please have a look at ContainerLib for an extensive introduction to the ContainerLib mechanism.
[in] | connection | Handle for multiple connections. |
[in] | tagList | Configuration description of container. This is a string with multiple tags as described above. Tags are delimited by semicolons. |
[in] | accessFlag | Configuration of container regarding read or write access. |
[out] | handle | Handle for use of container. |
[out] | dataSize | Data size of container in bytes. |
MLPIRESULT mlpiContainerUpdate | ( | const MLPIHANDLE | connection, |
const MlpiContainerHandle | handle, | ||
void * | data, | ||
const ULONG | dataSize | ||
) |
This function updates a container. If you pass a handle to a write container, then you also need to pass the data and correct data size to the data argument of the function. If you pass a handle to a read container, then you will receive the data that gets read by the function in the buffer given to the data argument.
[in] | connection | Handle for multiple connections. |
[in] | handle | Handle that specifies the container to update. Use mlpiContainerCreate to create a container. |
[in,out] | data | Data to be written in case of write-container. Data buffer to read data to in case of read-container. |
[in] | dataSize | Size in bytes of data argument. |
MLPIRESULT mlpiContainerDestroy | ( | const MLPIHANDLE | connection, |
MlpiContainerHandle * | handle | ||
) |
This function destroys a container which has been created using mlpiContainerCreate. Containers consume memory resources of the server. You should therefore destroy any containers your application no longer needs!
[in] | connection | Handle for multiple connections. |
[in] | handle | Handle of the container to destroy. Use mlpiContainerCreate to create a container. |