This method is specific to version 3 of the OS/2 operating system.
This instance method returns the screen group ID of the running application for a given object.
#define INCL_WINWORKPLACE
#include <os2.h>
WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
USHORT usPrevSgId; /* Previous screen group ID. */
USHORT usScreenId; /* Screen group ID. */
usScreenId = _wpQueryScreenGroupID(somSelf,
usPrevSgId);