win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQueryTaskSizePos (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINSWITCHLIST
 
USHORT WinQueryTaskSizePos(hab, usSession, pswp)
HAB hab;             /* anchor-block handle               */
USHORT usSession;    /* screen session                    */
PSWP pswp;           /* pointer to structure for defaults */
 
The WinQueryTaskSizePos function retrieves the default size, position, and
status for the first frame window of a newly started application.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies the anchor block.
 
usSession  Specifies the screen session. For MS OS/2 version 1.2, this value
           can be 0 or 1; 0 specifies the screen session of the caller.
 
pswp       Points to the SWP structure that receives the default size,
           position, and status for the first frame window of the
           application.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
 
     PMERR_INVALID_SESSION_ID
 
See Also
 
WinQueryWindowPos, SWP