MprInfoCreate function (mprapi.h)

The MprInfoCreate function creates a new information header.

Syntax

DWORD MprInfoCreate(
  [in]  DWORD  dwVersion,
  [out] LPVOID *lplpNewHeader
);

Parameters

[in] dwVersion

Specifies the version of the information header structure to be created. The only value currently supported is RTR_INFO_BLOCK_VERSION, as declared in Mprapi.h.

[out] lplpNewHeader

Pointer to the allocated and initialized header.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following values.

Value Description
ERROR_INVALID_PARAMETER
The lplpNewHeader parameter is NULL.
ERROR_NOT_ENOUGH_MEMORY
The requested memory allocation could not be completed.
Other
The call failed. Use FormatMessage to retrieve the error message that corresponds to the returned error code.
 
 

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mprapi.h
Library Mprapi.lib
DLL Mprapi.dll

See also

FormatMessage

MprInfo Functions and Information Headers