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.
- Returns one of the following values:
S_OK The operation was successful. E_INVALIDARG The arguments are not valid. E_OUTOFMEMORY Not enough memory is available. SCHED_E_NO_SECURITY_SERVICES Security services are available only on Windows NT®.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.