[This is preliminary documentation and subject to change.]
The MprInfoBlockFind function locates a specified block in an information header, and retrieves information about the block.
DWORD MprInfoBlockFind(
LPVOID lpInfoBlock, // info header to search
DWORD dwInfoType, // block type to search for
LPDWORD lpdwItemSize, // size of data items in found block
LPDWORD lpdwItemCount, // number of data items in found block
LPBYTE * lplpItemData // data in found block
);
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value will be one of the following values.
Value | Description |
ERROR_INVALID_PARAMETER | The lpInfoBlock is NULL. |
ERROR_NOT_FOUND | No block of type dwInfoType exists in the header. |
Other | The call failed. Use FormatMessage to retrieve the error message corresponding to the returned error code. |