WinQueryTaskSizePos: Difference between revisions
Appearance
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
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++) == | == Define (C/C++) == | ||
Line 35: | Line 35: | ||
== Related Functions == | == Related Functions == | ||
*[[WinCreateStdWindow]] | *[[WinCreateStdWindow]] | ||
*WinRestoreWindowPos | *[[WinRestoreWindowPos]] | ||
*WinSetWindowPos | *[[WinSetWindowPos]] | ||
*WinStoreWindowPos | *[[WinStoreWindowPos]] | ||
[[Category:Win]] | [[Category:Win]] |
Latest revision as of 21:54, 6 August 2023
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:
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); ...