Jump to content

wpQueryFilename

From EDM2
Revision as of 22:07, 24 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryFilename}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method copies the fully-qualified or unqualified file name to a buffer. ==Syntax== _wpQueryFilename(somSelf, pszFilename, fQualified) ==Parameters== ;''somSelf'' (WPFileSystem *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFileSystem. ;''pszFilename'' (PSZ) - output :Pointer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method copies the fully-qualified or unqualified file name to a buffer.

Syntax

_wpQueryFilename(somSelf, pszFilename, fQualified)

Parameters

somSelf (WPFileSystem *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFileSystem.
pszFilename (PSZ) - output
Pointer to the buffer containing the output file name.
This buffer must be at least **CCHMAXPATH** characters in length.
fQualified (BOOL) - input
Qualification requested flag.
Possible values are as follows:
  • TRUE Output file name is fully qualified.
  • FALSE Output file name is unqualified.

Returns

pszBuf (PSZ) - returns
Pointer to the buffer containing the output filename.
If the file exists, **pszFilename** is returned. If the file does not exist, **NULL** is returned.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFileSystem *somSelf; /* Pointer to the object on which the method is being invoked. */
PSZ pszFilename; /* Pointer to the buffer containing the output file name. */
BOOL fQualified; /* Qualification requested flag. */
PSZ pszBuf; /* Pointer to the buffer containing the output filename. */

pszBuf = _wpQueryFilename(somSelf, pszFilename,
          fQualified);