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

# RtlFormatMessage(3w)

## NAME

**RtlFormatMessage** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlFormatMessage\
  (\
   LPWSTR        *Message*,\
   UCHAR         *MaxWidth*,\
   BOOLEAN       *IgnoreInserts*,\
   BOOLEAN       *Ansi*,\
   BOOLEAN       *ArgumentIsArray*,\
   \_\_ms\_va\_list\* *Arguments*,\
   LPWSTR        *Buffer*,\
   ULONG         *BufferSize*\
  )

## DESCRIPTION

Formats a message (similar to sprintf).

## PARAMS

*Message* **\[In\]**  *Message* to format.

*MaxWidth* **\[In\]**  Maximum width in characters of each output line.

*IgnoreInserts* **\[In\]**  Whether to copy the message without processing inserts.

*Ansi* **\[In\]**  Whether *Arguments* may have **ANSI** strings.

ArgumentsIsArray **\[In\]**  Whether *Arguments* is actually an array rather than a va\_list \*.

*Buffer* **\[Out\]**  *Buffer* to store processed message in.

*BufferSize* **\[In\]**  Size of *Buffer* (in bytes?).

## RETURNS

**NTSTATUS** code.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/resource.c"**.

Debug channel **"resource"**.
