NdrClientCall function (rpcndr.h)

The NdrClientCall function is the client-side entry point for the /Oicf mode stub.

Syntax

CLIENT_CALL_RETURN RPC_VAR_ENTRY NdrClientCall(
  [in] PMIDL_STUB_DESC pStubDescriptor,
  [in] PFORMAT_STRING  pFormat,
       ...             
);

Parameters

[in] pStubDescriptor

Pointer to the MIDL-generated MIDL_STUB_DESC structure that contains information about the description of the remote interface.

[in] pFormat

Pointer to the MIDL-generated procedure format string that describes the method and parameters.

...

Pointer to the client-side calling stack.

Return value

Return value of the remote call. The maximum size of a return value is equivalent to the register size of the system. MIDL switches to the /Os mode stub if the return value size is larger than the register size.

Depending on the method definition, this function can throw an exception if there is a network or server failure.

Remarks

The NdrClientCall function is used by the /Oicf /robust client-side stub. The /Oi and /Oic client-side stubs are obsolete as of MIDL version 6.0.359 and should not be used. The NdrClientCall function transmits all [in] data to the remote server, and upon receipt of the response packet, returns the [out] value to the client-side application.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcndr.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

/Oicf

/robust