---
name: "I_RpcGetBuffer"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/I_RpcGetBuffer"
---

# 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)](/I_RpcFreeBuffer/3w.md)** to unbind from the server and free the message buffer.

## SEE ALSO

I\_RpcFreeBuffer(), **[I\_RpcSend(3w)](/I_RpcSend/3w.md)**, **I\_RpcReceive(3w)**, **[I\_RpcSendReceive(3w)](/I_RpcSendReceive/3w.md)**.

## IMPLEMENTATION

Declared in **"rpcdcep.h"**.

Implemented in **"dlls/rpcrt4/rpc\_message.c"**.

Debug channel **"rpc"**.
