Expand Minimize

LPSAFEARRAY_UserMarshal64 function

Marshals data from the specified SAFEARRAY object to the user's RPC buffer on the client or server side.

Syntax


unsigned char* __stdcall LPSAFEARRAY_UserMarshal64(
  _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]

The safe array that contains the data to marshal.

Return value

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

Return codeDescription
S_OK

Success.

E_INVALIDARG

The ppSafeArray parameter is not a valid safe array.

E_UNEXPECTED

The array could not be locked.

 

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:
© 2014 Microsoft