Skip to content

Latest commit

 

History

History
118 lines (96 loc) · 3.21 KB

nf-mstask-itask-getapplicationname.md

File metadata and controls

118 lines (96 loc) · 3.21 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mstask.ITask.GetApplicationName
ITask::GetApplicationName (mstask.h)
This method retrieves the name of the application that the task is associated with.
GetApplicationName
GetApplicationName method [Task Scheduler]
GetApplicationName method [Task Scheduler]
ITask interface
ITask interface [Task Scheduler]
GetApplicationName method
ITask.GetApplicationName
ITask::GetApplicationName
_msb_itask_getapplicationname
mstask/ITask::GetApplicationName
taskschd.itask_getapplicationname
taskschd\itask_getapplicationname.htm
taskschd
79a8c324-1191-412b-be2b-eb5935337925
12/05/2018
GetApplicationName, GetApplicationName method [Task Scheduler], GetApplicationName method [Task Scheduler],ITask interface, ITask interface [Task Scheduler],GetApplicationName method, ITask.GetApplicationName, ITask::GetApplicationName, _msb_itask_getapplicationname, mstask/ITask::GetApplicationName, taskschd.itask_getapplicationname
mstask.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Mstask.lib
Mstask.dll
Windows
Internet Explorer 4.0 or later on Windows NT 4.0 and Windows 95
19H1
ITask::GetApplicationName
mstask/ITask::GetApplicationName
c++
APIRef
kbSyntax
COM
Mstask.dll
ITask.GetApplicationName

ITask::GetApplicationName

-description

[[This API may be altered or unavailable in subsequent versions of the operating system or product. Please use the Task Scheduler 2.0 Interfaces instead.] ]

This method retrieves the name of the application that the task is associated with.

-parameters

-param ppwszApplicationName [out]

A pointer to a null-terminated string that contains the name of the application the current task is associated with. After processing this name, call CoTaskMemFree to free resources.

-returns

The GetApplicationName method returns one of the following values.

Return code Description
S_OK
The operation was successful.
E_INVALIDARG
The arguments are not valid.
E_OUTOFMEMORY
Not enough memory is available.

-see-also

ITask

ITask::SetApplicationName

SetParameters