WinQuerySessionTitle: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
[[OS2 API:DataType:PSZ|PSZ]] titleStr; | [[OS2 API:DataType:PSZ|PSZ]] titleStr; | ||
[[OS2 API:DataType:ULONG|ULONG]] titleStrLen; | [[OS2 API:DataType:ULONG|ULONG]] titleStrLen; | ||
[[OS2 API:DataType:ULONG|ULONG]] rc; | [[OS2 API:DataType:ULONG|ULONG]] rc; | ||
... | ... | ||
Line 60: | Line 52: | ||
=== Notes === | === Notes === | ||
=== OS Version Introduced === | |||
[[Category:The OS/2 API Project]] |
Revision as of 10:34, 20 April 2016
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.
Constants
None
Returns
ULONG with values of:
- Zero
- Success
- Non-zero
- Unsuccessful
WinGetLastError could return:
Module
Define (C/C++)
INCL_WINSWITCHLIST or INCL_WIN or INCL_PM
Export name/Ordinal
Calling conversion
Example Code
HAB anchorBlockHndl; ULONG sessionId; PSZ titleStr; ULONG titleStrLen; ULONG rc; ... rc = WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen); ...
Related Functions
WinAddSwitchEntry WinChangeSwitchEntry WinCreateSwitchEntry WinQuerySwitchEntry WinQuerySwitchHandle WinQuerySwitchList WinQueryTaskTitle WinRemoveSwitchEntry WinSwitchToProgram