Jump to content

wpQueryFolder

From EDM2

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

This instance method returns the folder that this object resides in.

Syntax

_wpQueryFolder(somSelf)

Parameters

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

Returns

Object (WPObject *) - returns
Pointer to the container object that contains the given object.
All objects are contained by a folder except for a drive object (root directory folder) for which this method returns **NULL**.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time to query the folder which contains the current object.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
WPObject *Object; /* Pointer to the container object that contains the given object. */

Object = _wpQueryFolder(somSelf);

Related Methods