115 TRACE(
"(%p, %p, %p)\n", iface, piNewTrigger, ppTrigger);
123 FIXME(
"(%p, %d): stub\n", iface, iTrigger);
131 FIXME(
"(%p, %p): stub\n", iface, plCount);
140 FIXME(
"(%p, %d, %p): stub\n", iface, iTrigger, ppTrigger);
149 FIXME(
"(%p, %d, %p): stub\n", iface, iTrigger, ppwszTrigger);
160 FIXME(
"(%p, %p, %p, %p, %p): stub\n", iface, pstBegin, pstEnd, pCount,
169 FIXME(
"(%p, %p): stub\n", iface, pstNextRun);
176 WORD wDeadlineMinutes)
178 FIXME(
"(%p, %d, %d): stub\n", iface, wIdleMinutes, wDeadlineMinutes);
185 WORD *pwDeadlineMinutes)
187 FIXME(
"(%p, %p, %p): stub\n", iface, pwIdleMinutes, pwDeadlineMinutes);
194 FIXME(
"(%p): stub\n", iface);
201 FIXME(
"(%p): stub\n", iface);
218 FIXME(
"(%p, %p): stub\n", iface, pstLastRun);
226 FIXME(
"(%p, %p): stub\n", iface, phrStatus);
234 FIXME(
"(%p, %p): stub\n", iface, pdwExitCode);
249 if (pwszComment[0] == 0)
263 This->comment = tmp_comment;
275 TRACE(
"(%p, %p)\n", iface, ppwszComment);
283 *ppwszComment[0] = 0;
294 FIXME(
"(%p, %p): stub\n", iface, pwszCreator);
302 FIXME(
"(%p, %p): stub\n", iface, ppwszCreator);
311 FIXME(
"(%p, %d, %p): stub\n", iface, cBytes, rgbData);
320 FIXME(
"(%p, %p, %p): stub\n", iface, pcBytes, ppBytes);
328 FIXME(
"(%p, %d): stub\n", iface, wRetryCount);
336 FIXME(
"(%p, %p): stub\n", iface, pwRetryCount);
344 FIXME(
"(%p, %d): stub\n", iface, wRetryInterval);
350 WORD *pwRetryInterval)
352 FIXME(
"(%p, %p): stub\n", iface, pwRetryInterval);
368 FIXME(
"(%p, %p): stub\n", iface, pdwFlags);
381 TRACE(
"(%p, %s, %s): partial stub\n", iface,
debugstr_w(pwszAccountName),
385 FIXME(
"Partial stub ignores passwords\n");
389 if (!tmp_account_name)
391 lstrcpyW(tmp_account_name, pwszAccountName);
393 This->accountName = tmp_account_name;
404 TRACE(
"(%p, %p): partial stub\n", iface, ppwszAccountName);
408 if (!
This->accountName)
413 if (!*ppwszAccountName)
430 if (pwszApplicationName[0] == 0)
468 LPWSTR *ppwszApplicationName)
473 TRACE(
"(%p, %p)\n", iface, ppwszApplicationName);
477 if (!*ppwszApplicationName)
480 if (!
This->applicationName)
481 *ppwszApplicationName[0] = 0;
499 if (pwszParameters[0] == 0)
511 lstrcpyW(tmp_parameters, pwszParameters);
513 This->parameters = tmp_parameters;
524 TRACE(
"(%p, %p)\n", iface, ppwszParameters);
528 if (!*ppwszParameters)
531 if (!
This->parameters)
532 *ppwszParameters[0] = 0;
549 LPWSTR *ppwszWorkingDirectory)
551 FIXME(
"(%p, %p): stub\n", iface, ppwszWorkingDirectory);
559 FIXME(
"(%p, 0x%08x): stub\n", iface, dwPriority);
567 FIXME(
"(%p, %p): stub\n", iface, pdwPriority);
583 FIXME(
"(%p, %p): stub\n", iface, pdwFlags);
593 TRACE(
"(%p, %d)\n", iface, dwMaxRunTime);
595 This->maxRunTime = dwMaxRunTime;
601 DWORD *pdwMaxRunTime)
605 TRACE(
"(%p, %p)\n", iface, pdwMaxRunTime);
607 *pdwMaxRunTime =
This->maxRunTime;
647 FIXME(
"(%p, %p): stub\n", iface, pClassID);
654 FIXME(
"(%p): stub\n", iface);
673 WARN(
"Returning S_OK but not writing to disk: %s %d\n",
690 FIXME(
"(%p, %p): stub\n", iface, ppszFileName);
784 This->maxRunTime = 259200000;
786 *ppObj = &
This->ITask_iface;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
DWORD WINAPI SearchPathW(IN LPCWSTR lpPath OPTIONAL, IN LPCWSTR lpFileName, IN LPCWSTR lpExtension OPTIONAL, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart OPTIONAL)
static HRESULT WINAPI MSTASK_ITask_SetComment(ITask *iface, LPCWSTR pwszComment)
static HRESULT WINAPI MSTASK_IPersistFile_SaveCompleted(IPersistFile *iface, LPCOLESTR pszFileName)
static TaskImpl * impl_from_IPersistFile(IPersistFile *iface)
HRESULT TaskConstructor(LPCWSTR pwszTaskName, LPVOID *ppObj)
static HRESULT WINAPI MSTASK_ITask_Terminate(ITask *iface)
static HRESULT WINAPI MSTASK_IPersistFile_Load(IPersistFile *iface, LPCOLESTR pszFileName, DWORD dwMode)
static TaskImpl * impl_from_ITask(ITask *iface)
static HRESULT WINAPI MSTASK_ITask_GetMostRecentRunTime(ITask *iface, SYSTEMTIME *pstLastRun)
static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR pszFileName, BOOL fRemember)
static HRESULT WINAPI MSTASK_ITask_GetErrorRetryInterval(ITask *iface, WORD *pwRetryInterval)
static HRESULT WINAPI MSTASK_IPersistFile_IsDirty(IPersistFile *iface)
static HRESULT WINAPI MSTASK_ITask_GetMaxRunTime(ITask *iface, DWORD *pdwMaxRunTime)
static HRESULT WINAPI MSTASK_ITask_QueryInterface(ITask *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI MSTASK_ITask_GetApplicationName(ITask *iface, LPWSTR *ppwszApplicationName)
static HRESULT WINAPI MSTASK_ITask_SetPriority(ITask *iface, DWORD dwPriority)
static HRESULT WINAPI MSTASK_ITask_SetWorkItemData(ITask *iface, WORD cBytes, BYTE rgbData[])
static HRESULT WINAPI MSTASK_ITask_SetWorkingDirectory(ITask *iface, LPCWSTR pwszWorkingDirectory)
static HRESULT WINAPI MSTASK_ITask_GetAccountInformation(ITask *iface, LPWSTR *ppwszAccountName)
static HRESULT WINAPI MSTASK_ITask_GetFlags(ITask *iface, DWORD *pdwFlags)
static ULONG WINAPI MSTASK_ITask_AddRef(ITask *iface)
static HRESULT WINAPI MSTASK_ITask_SetApplicationName(ITask *iface, LPCWSTR pwszApplicationName)
static HRESULT WINAPI MSTASK_ITask_SetErrorRetryCount(ITask *iface, WORD wRetryCount)
static HRESULT WINAPI MSTASK_IPersistFile_QueryInterface(IPersistFile *iface, REFIID riid, void **ppvObject)
static const IPersistFileVtbl MSTASK_IPersistFileVtbl
static ULONG WINAPI MSTASK_IPersistFile_Release(IPersistFile *iface)
static HRESULT WINAPI MSTASK_ITask_GetExitCode(ITask *iface, DWORD *pdwExitCode)
static HRESULT WINAPI MSTASK_ITask_SetIdleWait(ITask *iface, WORD wIdleMinutes, WORD wDeadlineMinutes)
static ULONG WINAPI MSTASK_IPersistFile_AddRef(IPersistFile *iface)
static HRESULT WINAPI MSTASK_ITask_GetTaskFlags(ITask *iface, DWORD *pdwFlags)
static HRESULT WINAPI MSTASK_ITask_GetNextRunTime(ITask *iface, SYSTEMTIME *pstNextRun)
static HRESULT WINAPI MSTASK_ITask_GetTriggerCount(ITask *iface, WORD *plCount)
static HRESULT WINAPI MSTASK_ITask_SetCreator(ITask *iface, LPCWSTR pwszCreator)
static HRESULT WINAPI MSTASK_ITask_SetAccountInformation(ITask *iface, LPCWSTR pwszAccountName, LPCWSTR pwszPassword)
static HRESULT WINAPI MSTASK_ITask_DeleteTrigger(ITask *iface, WORD iTrigger)
static ULONG WINAPI MSTASK_ITask_Release(ITask *iface)
static void TaskDestructor(TaskImpl *This)
static HRESULT WINAPI MSTASK_ITask_GetParameters(ITask *iface, LPWSTR *ppwszParameters)
static HRESULT WINAPI MSTASK_ITask_GetWorkingDirectory(ITask *iface, LPWSTR *ppwszWorkingDirectory)
static HRESULT WINAPI MSTASK_ITask_GetStatus(ITask *iface, HRESULT *phrStatus)
static HRESULT WINAPI MSTASK_ITask_GetTriggerString(ITask *iface, WORD iTrigger, LPWSTR *ppwszTrigger)
static HRESULT WINAPI MSTASK_ITask_SetParameters(ITask *iface, LPCWSTR pwszParameters)
static HRESULT WINAPI MSTASK_ITask_SetErrorRetryInterval(ITask *iface, WORD wRetryInterval)
static HRESULT WINAPI MSTASK_ITask_CreateTrigger(ITask *iface, WORD *piNewTrigger, ITaskTrigger **ppTrigger)
static HRESULT WINAPI MSTASK_ITask_EditWorkItem(ITask *iface, HWND hParent, DWORD dwReserved)
static HRESULT WINAPI MSTASK_ITask_Run(ITask *iface)
static HRESULT WINAPI MSTASK_ITask_GetErrorRetryCount(ITask *iface, WORD *pwRetryCount)
static HRESULT WINAPI MSTASK_ITask_GetTrigger(ITask *iface, WORD iTrigger, ITaskTrigger **ppTrigger)
static HRESULT WINAPI MSTASK_ITask_SetTaskFlags(ITask *iface, DWORD dwFlags)
static HRESULT WINAPI MSTASK_ITask_GetPriority(ITask *iface, DWORD *pdwPriority)
static HRESULT WINAPI MSTASK_ITask_GetRunTimes(ITask *iface, const LPSYSTEMTIME pstBegin, const LPSYSTEMTIME pstEnd, WORD *pCount, LPSYSTEMTIME *rgstTaskTimes)
static HRESULT WINAPI MSTASK_IPersistFile_GetCurFile(IPersistFile *iface, LPOLESTR *ppszFileName)
static const ITaskVtbl MSTASK_ITaskVtbl
static HRESULT WINAPI MSTASK_ITask_GetCreator(ITask *iface, LPWSTR *ppwszCreator)
static HRESULT WINAPI MSTASK_ITask_GetComment(ITask *iface, LPWSTR *ppwszComment)
static HRESULT WINAPI MSTASK_ITask_SetFlags(ITask *iface, DWORD dwFlags)
static HRESULT WINAPI MSTASK_ITask_GetIdleWait(ITask *iface, WORD *pwIdleMinutes, WORD *pwDeadlineMinutes)
static HRESULT WINAPI MSTASK_IPersistFile_GetClassID(IPersistFile *iface, CLSID *pClassID)
static HRESULT WINAPI MSTASK_ITask_SetMaxRunTime(ITask *iface, DWORD dwMaxRunTime)
static HRESULT WINAPI MSTASK_ITask_GetWorkItemData(ITask *iface, WORD *pcBytes, BYTE **ppBytes)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
#define ERROR_FILE_NOT_FOUND
HRESULT TaskTriggerConstructor(LPVOID *ppObj) DECLSPEC_HIDDEN
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
const GUID IID_IPersistFile
#define IsEqualGUID(rguid1, rguid2)
IPersistFile IPersistFile_iface
#define CONTAINING_RECORD(address, type, field)
WORD WORD PSZ PSZ pszFileName
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define HRESULT_FROM_WIN32(x)