WinQueryTaskTitle: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinQueryTaskTitle to WinQueryTaskTitle |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; sessionId - [[ | ; sessionId - [[ULONG]] - input : The session identifier or zero for the caller's session. | ||
; titleReceived - [[ | ; titleReceived - [[PSZ]]- output : Title of the application as specified with the session identifier. | ||
; titleLength - | ; titleLength - ULONG - input : Maximum length of title, in bytes. | ||
=== Constants === | === Constants === | ||
Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
[[ | [[APIRET]] with values of: | ||
;Zero : Success | ;Zero : Success | ||
;Nonzero : Error. | ;Nonzero : Error. | ||
[[ | [[WinGetLastError]] possible returns: | ||
* [[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_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
=== Calling conversion === | === Calling conversion === | ||
Line 30: | Line 26: | ||
=== Example Code === | === Example Code === | ||
ULONG sessionId; | |||
PSZ titleReceived; | |||
ULONG titleLngth; | |||
APIRET rc; | |||
... | ... | ||
rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); | rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); | ||
Line 39: | Line 35: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinAddSwitchEntry]] | ||
[[ | *[[WinChangeSwitchEntry]] | ||
[[ | *[[WinCreateSwitchEntry]] | ||
[[ | *[[WinQuerySessionTitle]] | ||
[[ | *[[WinQuerySwitchEntry]] | ||
[[ | *[[WinQuerySwitchHandle]] | ||
[[ | *[[WinQuerySwitchList]] | ||
[[ | *[[WinTaskSizePos]] | ||
[[ | *[[WinRemoveSwitchEntry]] | ||
[[ | *[[WinSwitchToProgram]] | ||
=== Notes === | === Notes === | ||
[[ | [[WinQuerySessionTitle]] is the preferred API call. | ||
[[Category: | [[Category:Win]] |
Revision as of 03:09, 14 January 2017
WinQueryTaskTitle
- WinQueryTaskTitle(sessionId, titleReceived, titleLngth)
- Get the task list entry.
Parameters
- sessionId - ULONG - input
- The session identifier or zero for the caller's session.
- titleReceived - PSZ- output
- Title of the application as specified with the session identifier.
- titleLength - ULONG - input
- Maximum length of title, in bytes.
Constants
None
Returns
APIRET with values of:
- Zero
- Success
- Nonzero
- Error.
WinGetLastError possible returns:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Calling conversion
Example Code
ULONG sessionId; PSZ titleReceived; ULONG titleLngth; APIRET rc; ... rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); ...
Related Functions
- WinAddSwitchEntry
- WinChangeSwitchEntry
- WinCreateSwitchEntry
- WinQuerySessionTitle
- WinQuerySwitchEntry
- WinQuerySwitchHandle
- WinQuerySwitchList
- WinTaskSizePos
- WinRemoveSwitchEntry
- WinSwitchToProgram
Notes
WinQuerySessionTitle is the preferred API call.