File Content Extraction 25.1
Viewing SDK Programming Guide

# VAPIMWP_INIT_GETCHARSET

Gets the character set of the VAPI window. This is a parameter of the `VAPIM_INIT` message.

## Syntax

    SendMessage(g_hWndFocus, VAPIM_INIT, VAPIMWP_INIT_GETCHARSET, 0)

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`uMsg` | `VAPIM_INIT`
`wParam` | `VAPIMWP_INIT_GETCHARSET`
`lParam` | Not used, set to `0`

## Returns

This message returns a value from the `KVCharSet` type (see the `kvcharset.h` file for a description) corresponding to the character set that VAPI is using for viewing the document. You can use this message to control the state of a menu item or toolbar button that allows a user to select a character encoding for viewing.

## Discussion

- `vapidemo.cpp` demonstrates how to use the message.

- A relevant message is `VAPIMWP_INIT_GETAUTOSELECT`.

Copyright 2016-2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 25.1

Topic Title: VAPIMWP_INIT_GETCHARSET