Windows Dev Center

Expand Minimize

LPSAFEARRAY_UserUnmarshal64 function

Unmarshals a SAFEARRAY object from the RPC buffer.

Syntax


unsigned char* __stdcall LPSAFEARRAY_UserUnmarshal64(
  _In_    unsigned long *pFlags,
  _Inout_ unsigned char *pBuffer,
  _In_    LPSAFEARRAY   *ppSafeArray
);

Parameters

pFlags [in]

The data used by RPC.

pBuffer [in, out]

The current buffer. This pointer may or may not be aligned on entry. The function aligns the buffer pointer, marshals the data, and returns the new buffer position, which is the address of the first byte after the marshaled object.

ppSafeArray [in]

Receives the safe array that contains the data.

Return value

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

Return codeDescription
S_OK

Success.

RPC_X_BAD_STUB_DATA

The stub has received bad data.

E_UNEXPECTED

The array could not be found.

E_OUTOFMEMORY

Insufficient memory for this function to perform.

DISP_E_BADCALLEE

The SAFEARRAY object does not have the correct dimensions, does not have the correct features, or memory cannot be reallocated.

 

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft