Scroll to navigation

I_RpcGetBuffer(3w) Wine API I_RpcGetBuffer(3w)

NAME

I_RpcGetBuffer (RPCRT4.@)

SYNOPSIS

RPC_STATUS I_RpcGetBuffer
(
PRPC_MESSAGE pMsg
)
 

DESCRIPTION

Allocates a buffer for use by I_RpcSend or I_RpcSendReceive and binds to the server interface.
 

PARAMS

pMsg [In/Out] RPC message information.
 

RETURNS

Success: RPC_S_OK.
Failure: RPC_S_INVALID_BINDING if pMsg->Handle is invalid. RPC_S_SERVER_UNAVAILABLE if unable to connect to server. ERROR_OUTOFMEMORY if buffer allocation failed.
 

NOTES

The pMsg->BufferLength field determines the size of the buffer to allocate, in bytes.
Use I_RpcFreeBuffer(3w) to unbind from the server and free the message buffer.
 

SEE ALSO

I_RpcFreeBuffer(), I_RpcSend(3w), I_RpcReceive(3w), I_RpcSendReceive(3w).
 

IMPLEMENTATION

Declared in "rpcdcep.h".
Implemented in "dlls/rpcrt4/rpc_message.c".
Debug channel "rpc".
Oct 2012 Wine API