# VAPIM_SETINDEXBUFCHARSET

Sets the character set for the returned indexed text buffer.

## Syntax

    #include <kvvapi.h>
    SendMessage (g_hWndVAPI, VAPIM_SETINDEXBUFCHARSET, kvcharset, 0 );

## Arguments

Argument | Description
--- | ---
`g_hWndVAPI` | The handle of the VAPI window.
`kvcharset` | A value from the `KVCharSet` enumerated type in `kvcharset.h`.

## Returns

`SendMessage()` returns `TRUE` if the call succeeds.

## Discussion

If `kvcharset` is `KVCS_UNKNOWN`, the character set of the returned buffer is the Windows native character set (for example, `KVCS_1252` for an English machine). This is also the default character set on an English machine when `VAPIM_SETINDEXBUFCHARSET` message is not sent.

_FT_HTML5_bannerTitle.htm