File Content Extraction 26.2
Viewing SDK Programming Guide

# VAPIMWP_DRAW_SHUTDOWN

Before a new document is opened, this frees up any data from a previously opened document. This is a parameter of the `VAPIM_DRAW` message.

## Syntax

    SendMessage(g_hWndVAPI, VAPIM_DRAW, DRAW_SHUTDOWN, 0L );

## Arguments

Argument | Description
--- | ---
`g_hWndVapi` | The handle of the VAPI window
`uMsg` | `VAPIM_DRAW`
`wParam` | `VAPIMWP_DRAW_SHUTDOWN`
`lParam` | Not used, set to `0`

## Returns

`SendMessage()` returns:

- `VAPI_RETURN_SUCCESS` (or `TRUE`, value `1`) if the call succeeds.
- `VAPI_RETURN_NOT_INITIALIZED` (value `5`) if the drawing routines have not been initialized.
- `VAPI_RETURN_ERROR` (or `FALSE`, value `0`) if the call fails.

## Discussion

`VAPIM_DRAW` messages are used in the sample `drawdemo` program.

Copyright 2016-2026 Open Text
Version 26.2 | Last updated April 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.2

Topic Title: VAPIMWP_DRAW_SHUTDOWN