Export (0) Print
Expand All

NdrConvert function

The NdrConvert function converts the network buffer from the data representation of the sender to the data representation of the receiver if they are different.

Syntax


RPCRTAPI void RPC_ENTRY NdrConvert(
  _In_ PMIDL_STUB_MESSAGE pStubMsg,
  _In_ PFORMAT_STRING     pFormat
);

Parameters

pStubMsg [in]

Pointer to a MIDL_STUB_MESSAGE structure that maintains the current status of the RPC stub. The pRpcMsg member points to a structure whose Buffer member contains the data to convert. This structure is for internal use only and should not be modified.

pFormat [in]

Pointer to type format of the data to convert.

Return value

This function has no return values. If an error occurs, the function throws one of the following exception codes.

ErrorDescription
RPC_BAD_STUB_DATA or RPC_X_INVALID_BOUNDThe network buffer is incorrect.
STATUS_ACCESS_VIOLATIONAn access violation occurred.
RPC_S_INTERNAL_ERRORAn error occurred in RPC.

 

Remarks

The NdrConvert function is used by all /Oi, /Oic, and /Os mode stubs.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Rpcndr.h (include Rpc.h)

Library

RpcRT4.lib

DLL

RpcRT4.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft