KeyView 23.3

# VAPIMWP_INIT_GETFILENAME

Gets the file name of the current document. This is a parameter of the `VAPIM_INIT` message.

## Syntax

    #include <kvvapi.h>
    SendMessage(hWndVAPI, VAPIM_INIT, VAPIMWP_INIT_GETFILENAME,
               (LPARAM) (char*) lpstzFileName );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`lpstzFileName` | A pointer to a Pascal string that returns the file name string.

## Returns

`SendMessage()` returns `TRUE` on success; otherwise it returns `FALSE`.

## Discussion

This message returns the file name (not the full path), so the file name can be used in the window title. This message must be sent after the document is opened, otherwise the file name does not exist yet. If the file is a container file, such as a ZIP, TAR, or PST file, this file name is the name of an extracted subfile.

Copyright 2016-2023 Open Text
Version 23.3 | Last updated June 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.3

Topic Title: VAPIMWP_INIT_GETFILENAME