LPSAFEARRAY_UserMarshal 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_UserMarshal( _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 code | Description |
|---|---|
|
Success. |
|
The ppSafeArray parameter is not a valid safe array. |
|
The array could not be locked. |
Requirements
|
Library |
|
|---|---|
|
DLL |
|