Windows Dev Center

Expand Minimize

VARIANT_UserUnmarshal function

Unmarshals a VARIANT object from the RPC buffer.

Syntax


unsigned char* __stdcall VARIANT_UserUnmarshal(
  _In_  unsigned long *pFlags,
  _In_  unsigned char *pBuffer,
  _Out_ VARIANT       *pVariant
);

Parameters

pFlags [in]

The data used by RPC.

pBuffer [in]

The current buffer. This pointer may or may not be aligned on entry.

pVariant [out]

The object.

Return value

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

Return codeDescription
S_OK

Success.

E_INVALIDARG

The pVariant parameter is not valid.

RPC_X_BAD_STUB_DATA

The stub data for the buffer size is incorrect.

DISP_E_BADVARTYPE

The input parameter is not a valid type of variant.

E_OUTOFMEMORY

Insufficient memory for this function to perform.

 

Remarks

Windows Phone 8.1: This API is supported.

Requirements

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft