This topic has not yet been rated - Rate this topic

VARIANT_UserMarshal function

Applies to: desktop apps | Metro style apps

Marshals a VARIANT object into the RPC buffer.

Syntax

unsigned char* __stdcall VARIANT_UserMarshal(
  __in     unsigned long *pFlags,
  __inout  unsigned char *pBuffer,
  __in     VARIANT *pVariant
);

Parameters

pFlags [in]

The data used by RPC.

pBuffer [in, out]

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

pVariant [in]

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_NULL_REF_POINTER

The pVariant parameter is null.

DISP_E_BADVARTYPE

The input parameter is not a valid type of variant.

 

Requirements

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ