KeyView 23.4

# VAPIMWP_INIT_GETDOCCLASS

Indicates the general class to which the currently opened document belongs. This is a parameter of the `VAPIM_INIT` message.

## Syntax

    #include <kvvapi.h>
    SendMessage(hWndVAPI, VAPIM_INIT, VAPIMWP_INIT_GETDOCCLASS,
               (LPARAM) (int*) lpnClass );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`lpnClass` | A pointer to an integer that returns the document class: `1` - Text document (ASCII) `2` - Word processor document (WP) `3` - Spreadsheet document (SS) `4` - Image (Image) `5` - Multimedia document (MM) `6` - Fax document (FAX) `7` - Presentation (PG) `8` - Archive `9` - Other

## Returns

`SendMessage()` returns `TRUE` if successful (that is, if `lpnClass` contains valid information); otherwise it returns `FALSE`.

Copyright 2016-2023 Open Text
Version 23.4 | Last updated September 2023

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.4

Topic Title: VAPIMWP_INIT_GETDOCCLASS