[This is preliminary documentation and subject to change.]
The MprInfoBlockSet creates a new header that is identical to an existing header with a specified block modified.
DWORD MprInfoBlockSet(
LPVOID lpInfoBlock, // pointer to existing header
DWORD dwInfoType, // info type of block to modify
DWORD dwItemSize, // new size of items in the modified block
DWORD dwItemCount, // new number of items in the modified block
LPBYTE lpItemData, // new data for the modified block
LPVOID * lplpNewInfoBlock // new header (incl. modified 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 | One (or more) required parameters is NULL, or 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. |
FormatMessage, MprInfoBlockAdd, MprInfoBlockRemove, MprInfoBlockSet