wpQueryCoreRecord
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns a pointer to a MINIRECORDCORE structure associated with a given object.
Syntax
_wpQueryCoreRecord(somSelf)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
Returns
- pMiniRecord (PMINIRECORDCORE) - returns
- Pointer to an object's container control record.
How to Override
This method is generally not overridden.
Remarks
When an object is created, the Workplace Shell automatically allocates memory for a MINIRECORDCORE structure and stores a pointer to it in the object's instance data. Every object has an associated MINIRECORDCORE structure so it can be placed into the container. This method is used to obtain a pointer to the MINIRECORDCORE structure when the pointer to the object is known.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ PMINIRECORDCORE pMiniRecord; /* Pointer to an object's container control record. */ pMiniRecord = _wpQueryCoreRecord(somSelf);