Jump to content

WinQueryTaskSizePos: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
No edit summary
Line 18: Line 18:
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN


=== Calling conversion ===
=== Calling Convention ===
[[Cdecl32]]
[[Cdecl32]]



Revision as of 19:13, 18 January 2017

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.

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

Cdecl32

Example Code

HAB   anchorBlockHndl;
ULONG sessionId;
SWP   swpStruct;
BOOL  rc;
...
rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct);
...

Related Functions