Jump to content

wpQueryType

From EDM2

This instance method is called to allow the object to query the type of its file.

Syntax

_wpQueryType(somSelf)

Parameters

somSelf (WPFileSystem *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFileSystem.

Returns

ptype (PSZ) - returns
Pointer to a buffer containing the file type.
This string can contain a list of types delineated by a line-feed character; for example, "Plain Text\nC Code".

Remarks

This method returns the type of a file-system-based object. The type of a file is designated by its .TYPE extended attribute value.

Usage

This method can be called at any time in order to determine the type of the file object.

How to Override

This method is generally not overridden.

Example Code

Declaration:

#define INCL_WINWORKPLACE
#include <os2.h>

WPFileSystem     *somSelf;  /* Pointer to the object on which the method is being invoked. */
PSZ               ptype;    /* Pointer to a buffer containing the file type. */

ptype = _wpQueryType(somSelf);

Related Methods