This topic has not yet been rated - Rate this topic

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 only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Rpcndr.h (include Rpc.h)

Library

RpcRT4.lib

DLL

RpcRT4.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/23/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.