The wpQueryCoreRecord method is used to obtain a pointer to the MINIRECORDCORE structure associated with a given object. 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. The following shows the syntax of wpQueryCoreRecord:
#define INCL_WINWORKPLACE #include <os2.h> PMINIRECORDCORE wpQueryCoreRecord (WPObject *self);
The self (WPObject *) paramter is the pointer to the object on which the method is being invoked. It points to an object of class WPObject.
The pRecord (PMINIRECORDCORE) parameter is returned. It points to the MINIRECORDCORE structure for the object.
Every object has a MINIRECORDCORE structure associated with it so it can be placed into a container. This method is used to obtain the PMINIRECORDCORE when the pointer to the object is known. The following figure shows how to obtain a pointer to the MINIRECORDCORE structure associated with an object:
PMINIRECORDCORE pRecord; WPObject *self; pRecord = _wpQueryCoreRecord(self);