File Content Extraction 26.1
Viewing SDK Programming Guide

# VAPIMWP_INIT_GETDOCFORMAT

Gets document format information. This is a parameter of the `VAPIM_INIT` message.

## Syntax

    #include <kvvapi.h>
    SendMessage(hWndVAPI, VAPIM_INIT, VAPIMWP_INIT_GETDOCFORMAT,
               (LPARAM) (*ADDOCINFO) pDocInfo );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`pDocInfo` | A pointer to the ADDOCINFO structure that contains information about the document format.

## Returns

`SendMessage()` returns `TRUE` if successful (`pDocInfo` is filled in with valid information); otherwise it returns `FALSE`.

## Discussion

If you want to get format information without viewing the document, set the `VAPIDF_FLAGS_OPEN_VAPI_ONLY` flag in the `nFlags` member of the TPVAPIOpenDocumentInfo structure. This structure is supplied when you open the document by using the `VAPIMWP_INIT_OPEN_DOCUMENT` message parameter.

Copyright 2016-2025 Open Text
Version 26.1 | Last updated January 2026

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 26.1

Topic Title: VAPIMWP_INIT_GETDOCFORMAT