# 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.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm