WinQueryTaskSizePos: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinQueryTaskSizePos to WinQueryTaskSizePos |
mNo edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Get the size and position of the next window to be created. | |||
=== Parameters | ==Syntax== | ||
WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct) | |||
== Parameters == | |||
;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ||
;sessionId - [[ULONG]] - input : The session identifier or zero for the current session. | ;sessionId - [[ULONG]] - input : The session identifier or zero for the current session. | ||
;swpStruct - [[SWP]] - output : Window size and positioning data. | ;swpStruct - [[SWP]] - output : Window size and positioning data. | ||
== Returns == | |||
Function returns [[BOOL]] of: | Function returns [[BOOL]] of: | ||
:TRUE: Success | |||
:FALSE: Failure | |||
Possible returns from [[WinGetLastError]]: | Possible returns from [[WinGetLastError]]: | ||
* [[ | *[[PM Error Codes#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[ | *[[PM Error Codes#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | ||
== Define (C/C++) == | |||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
== Calling Convention == | |||
[[Cdecl32]] | [[Cdecl32]] | ||
== Example Code == | |||
HAB anchorBlockHndl; | HAB anchorBlockHndl; | ||
ULONG sessionId; | ULONG sessionId; | ||
| Line 30: | Line 33: | ||
... | ... | ||
== Related Functions == | |||
*[[WinCreateStdWindow]] | *[[WinCreateStdWindow]] | ||
*[[WinRestoreWindowPos]] | *[[WinRestoreWindowPos]] | ||
Latest revision as of 16:45, 26 October 2025
Get the size and position of the next window to be created.
Syntax
WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct)
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.
Returns
Function returns BOOL of:
- TRUE: Success
- FALSE: Failure
Possible returns from WinGetLastError:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Calling Convention
Example Code
HAB anchorBlockHndl; ULONG sessionId; SWP swpStruct; BOOL rc; ... rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); ...