WinQuerySessionTitle: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinQuerySessionTitle to WinQuerySessionTitle |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; anchorBlockHndl - [[ | ;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ||
;sessionId - [[ | ;sessionId - [[ULONG]] - input : Session identity of the application whose title is requested or zero for the caller's session. | ||
;titleStr - [[ | ;titleStr - [[PSZ]] - output : Task list title to be returned. | ||
;titleStrLen - | ;titleStrLen - ULONG - input : Maximum length of the title to be returned. | ||
=== Returns === | === Returns === | ||
[[ | [[ULONG]] with values of: | ||
; Zero : Success | ; Zero : Success | ||
; Non-zero : Unsuccessful | ; Non-zero : Unsuccessful | ||
[[ | [[WinGetLastError]] could return: | ||
* [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | * [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | * [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINSWITCHLIST or INCL_WIN or INCL_PM | INCL_WINSWITCHLIST or INCL_WIN or INCL_PM | ||
=== Calling conversion === | === Calling conversion === | ||
Line 30: | Line 23: | ||
=== Example Code === | === Example Code === | ||
HAB anchorBlockHndl; | |||
ULONG sessionId; | |||
PSZ titleStr; | |||
ULONG titleStrLen; | |||
ULONG rc; | |||
... | ... | ||
rc = WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen); | rc = WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen); | ||
Line 40: | Line 33: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinAddSwitchEntry]] | ||
[[ | *[[WinChangeSwitchEntry]] | ||
[[ | *[[WinCreateSwitchEntry]] | ||
[[ | *[[WinQuerySwitchEntry]] | ||
[[ | *[[WinQuerySwitchHandle]] | ||
[[ | *[[WinQuerySwitchList]] | ||
[[ | *[[WinQueryTaskTitle]] | ||
[[ | *[[WinRemoveSwitchEntry]] | ||
[[ | *[[WinSwitchToProgram]] | ||
[[Category: | [[Category:Win]] |
Revision as of 03:13, 14 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 conversion
Example Code
HAB anchorBlockHndl; ULONG sessionId; PSZ titleStr; ULONG titleStrLen; ULONG rc; ... rc = WinQuerySessionTitle(anchorBlockHndl, sessionId, titleStr, titleStrLen); ...