WinQueryTaskTitle: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinQueryTaskTitle to WinQueryTaskTitle |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Get the task list entry. | |||
== | ==Syntax== | ||
WinQueryTaskTitle(sessionId, titleReceived, titleLngth) | |||
=== Constants | == 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 | None | ||
== Returns == | |||
[[ | [[APIRET]] with values of: | ||
;Zero : Success | ;Zero : Success | ||
;Nonzero : Error. | ;Nonzero : Error. | ||
[[ | [[WinGetLastError]] possible returns: | ||
* [[ | *[[PM Error Codes#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[ | *[[PM Error Codes#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | ||
== Define (C/C++) == | |||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
== Calling Convention == | |||
[[Cdecl32]] | [[Cdecl32]] | ||
== Example Code == | |||
ULONG sessionId; | |||
PSZ titleReceived; | |||
ULONG titleLngth; | |||
APIRET rc; | |||
... | ... | ||
rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); | rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); | ||
... | ... | ||
== Related Functions == | |||
[[ | *[[WinAddSwitchEntry]] | ||
[[ | *[[WinChangeSwitchEntry]] | ||
[[ | *[[WinCreateSwitchEntry]] | ||
[[ | *[[WinQuerySessionTitle]] | ||
[[ | *[[WinQuerySwitchEntry]] | ||
[[ | *[[WinQuerySwitchHandle]] | ||
[[ | *[[WinQuerySwitchList]] | ||
*[[WinRemoveSwitchEntry]] | |||
[[ | *[[WinSwitchToProgram]] | ||
[[ | |||
== Notes == | |||
[[WinQuerySessionTitle]] is the preferred API call. | |||
[[Category: | [[Category:Win]] |
Latest revision as of 19:04, 14 May 2025
Get the task list entry.
Syntax
WinQueryTaskTitle(sessionId, titleReceived, titleLngth)
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 Convention
Example Code
ULONG sessionId; PSZ titleReceived; ULONG titleLngth; APIRET rc; ... rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth); ...
Related Functions
- WinAddSwitchEntry
- WinChangeSwitchEntry
- WinCreateSwitchEntry
- WinQuerySessionTitle
- WinQuerySwitchEntry
- WinQuerySwitchHandle
- WinQuerySwitchList
- WinRemoveSwitchEntry
- WinSwitchToProgram
Notes
WinQuerySessionTitle is the preferred API call.