Windows apps
Collapse the table of content
Expand the table of content

VARIANT_UserSize Function

Calculates the wire size of the VARIANT object, and gets the VARIANT handle and data.

ULONG __RPC_USER VARIANT_UserSize(
  ULONG  *pFlags,
  ULONG Offset,
  VARIANT  *pVariant
);

Parameter

Description

pFlags

[in] Points to data used by RPC.

Offset

[in] Represents the current buffer offset where the object will be marshaled. The method has to account for any padding needed for the VARIANT object to be properly aligned when it will be marshaled to the buffer.

pVariant

[in] Points to the VARIANT object.

The return value obtained from the returned HRESULT is one of the following.

Return value

Meaning

S_OK

Success.

E_INVALIDARG

pVariant is invalid.

RPC_X_NULL_REF_POINTER

pVariant is NULL.

DISP_E_BADVARTYPE

The input parameter is not a valid type of variant.

Show:
© 2016 Microsoft