Jump to content

WinQuerySessionTitle: Difference between revisions

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


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



Revision as of 04:40, 17 January 2017

WinQuerySessionTitle

WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen)
Get the task list entry title.

Parameters

anchorBlockHndl - HAB - input
The anchor block handle.
sessionId - ULONG - input
Session identity of the application whose title is requested or zero for the caller's session.
titleStr - PSZ - output
Task list title to be returned.
titleStrLen - ULONG - input
Maximum length of the title to be returned.

Returns

ULONG with values of:

Zero
Success
Non-zero
Unsuccessful

WinGetLastError could return:

Define (C/C++)

INCL_WINSWITCHLIST or INCL_WIN or INCL_PM

Calling Convention

Cdecl32

Example Code

HAB   anchorBlockHndl;
ULONG sessionId;
PSZ   titleStr;
ULONG titleStrLen;
ULONG rc;
...
rc = WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen);
...

Related Functions