NdrClientCall2 Function

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

Syntax

C++
CLIENT_CALL_RETURN RPC_VAR_ENTRY NdrClientCall2(
  __in     PMIDL_STUB_DESC pStubDescriptor,
  __in     PFORMAT_STRING pFormat,
  __inout   ...
);

Parameters

pStubDescriptor [in]

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

pFormat [in]

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

... [in, out]

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 NdrClientCall2 function is used by all /Oicf mode client-side stubs. The NdrClientCall2 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

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderRpcndr.h (include Rpc.h)
LibraryRpcRT4.lib
DLLRpcRT4.dll

 

 

Send comments about this topic to Microsoft

Build date: 1/14/2010

Tags :


Page view tracker