WinQueryTaskSizePos: Difference between revisions
Appearance
WinQueryTaskSizePos created |
m corrected links |
||
Line 17: | Line 17: | ||
[[OS2 API:Constant:TRUE|TRUE]] on success or [[OS2 API:Constant:FALSE|FALSE]] on failure. | [[OS2 API:Constant:TRUE|TRUE]] on success or [[OS2 API:Constant:FALSE|FALSE]] on failure. | ||
Possible returns from [[OS2 API:WinGetLastError|WinGetLastError]]: | Possible returns from [[OS2 API:WinGetLastError|WinGetLastError]]: | ||
* [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS]] | * [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID]] | * [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | ||
=== Module === | === Module === |
Revision as of 15:58, 1 March 2006
WinQueryTaskSizePos
- WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct)
Get the size and position of the next window to be created.
Parameters
- anchorBlockHndl - HAB - input
The anchor block handle.
- sessionId - ULONG - input
The session identifier or zero for the current session.
- swpStruct - SWP - output
Window size and positioning data.
Constants
None
Returns
TRUE on success or FALSE on failure. Possible returns from WinGetLastError:
Module
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Export name/Ordinal
Calling conversion
Example Code
HAB anchorBlockHndl; ULONG sessionId; SWP swpStruct; BOOL rc; ... rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); ...
Related Functions
WinCreateStdWindow WinRestoreWindowPos WinSetWindowPos WinStoreWindowPos