Creates an object that a client can access in a preferred character format.
[in] Flags that characterize the unwrapped initial object. It must be one or more of the following values:
Unwrapped object is ANSI.
Unwrapped object is UNICODE.
[in] Flags for the preferred character format. It must be one or more of the following values:
Wrapped object will be exposed as ANSI.
Wrapped object will be exposed as UNICODE.
[in] The identifier of the interface supported by the unwrapped object; set it to NULL if this is unknown.
[in] This parameter is not used. It must be NULL.
[in] Set this parameter to True if pvUnwrapped should be checked for its format before wrapping; set it to False if the object should be wrapped without checking.
[out] A pointer to the requested object, wrapped in the requested character format.
The function call is successful.
Passing in a wrapped object with fCheckWrap set to True will result in an unwrapped object. Regardless of whether or not the returned object is wrapped, the client is responsible for releasing the reference on the returned object.
When using GetProcAddress to look for the address of this function in msmapi32.dll, specify HrCreateNewWrappedObject@28 as the procedure name.