IScheduledWorkItem::GetAccountInformationIScheduledWorkItem::GetAccountInformation*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IScheduledWorkItem::EditWorkItem
*Next Topic: IScheduledWorkItem::GetComment

IScheduledWorkItem::GetAccountInformation

HRESULT GetAccountInformation(
    LPWSTR * ppwszAccountName
);

Retrieves the account name for the task. This method is for Windows NT®; on Windows® 9x, this method will return SCHED_E_NO_SECURITY_SERVICES, indicating the Task Scheduler security services are not available. The Task Scheduler service must be running for this method to succeed.

ppwszAccountName
Address of an LPWSTR that contains the account name for the current task.

The method that invokes GetAccountInformation is responsible for freeing the string using the CoTaskMemFree function.

See also IScheduledWorkItem::SetAccountInformation


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.