mstask_private.h 1.77 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
/*
 * Copyright (C) 2008 Google (Roy Shea)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__

#include <stdarg.h>

#define COBJMACROS

#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "mstask.h"

32 33 34 35 36 37 38 39 40
extern LONG dll_ref;

typedef struct
{
    const IClassFactoryVtbl *lpVtbl;
    LONG ref;
} ClassFactoryImpl;
extern ClassFactoryImpl MSTASK_ClassFactory;

41 42 43 44
typedef struct
{
    const ITaskTriggerVtbl *lpVtbl;
    LONG ref;
45
    TASK_TRIGGER triggerCond;
46 47 48
} TaskTriggerImpl;
extern HRESULT TaskTriggerConstructor(LPVOID *ppObj);

49 50 51 52 53 54 55
typedef struct
{
    const ITaskSchedulerVtbl *lpVtbl;
    LONG ref;
} TaskSchedulerImpl;
extern HRESULT TaskSchedulerConstructor(LPVOID *ppObj);

56 57 58 59 60 61
typedef struct
{
    const ITaskVtbl *lpVtbl;
    const IPersistFileVtbl *persistVtbl;
    LONG ref;
    LPWSTR taskName;
62
    LPWSTR applicationName;
63
    LPWSTR parameters;
64
    LPWSTR comment;
65
    DWORD maxRunTime;
66
    LPWSTR accountName;
67 68 69
} TaskImpl;
extern HRESULT TaskConstructor(LPCWSTR pwszTaskName, LPVOID *ppObj);

70
#endif /* __MSTASK_PRIVATE_H__ */