Jump to content

WinQueryTaskTitle: Difference between revisions

From EDM2
mNo edit summary
 
Line 44: Line 44:
*[[WinQuerySwitchHandle]]
*[[WinQuerySwitchHandle]]
*[[WinQuerySwitchList]]
*[[WinQuerySwitchList]]
*WinTaskSizePos
*[[WinRemoveSwitchEntry]]
*[[WinRemoveSwitchEntry]]
*[[WinSwitchToProgram]]
*[[WinSwitchToProgram]]

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

Cdecl32

Example Code

ULONG  sessionId;
PSZ    titleReceived;
ULONG  titleLngth;
APIRET rc;
...
rc = WinQueryTaskTitle(sessionId, titleReceived, titleLngth);
...

Related Functions

Notes

WinQuerySessionTitle is the preferred API call.