Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9c131bb0
Commit
9c131bb0
authored
Aug 20, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: TaskTrigger stub with AddRef, QueryInterface, and Release.
parent
e8d22f02
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
2 deletions
+132
-2
Makefile.in
dlls/mstask/Makefile.in
+3
-2
mstask_private.h
dlls/mstask/mstask_private.h
+7
-0
task_trigger.c
dlls/mstask/task_trigger.c
+122
-0
No files found.
dlls/mstask/Makefile.in
View file @
9c131bb0
...
@@ -6,10 +6,11 @@ MODULE = mstask.dll
...
@@ -6,10 +6,11 @@ MODULE = mstask.dll
IMPORTS
=
uuid kernel32
IMPORTS
=
uuid kernel32
C_SRCS
=
\
C_SRCS
=
\
task.c
\
factory.c
\
factory.c
\
mstask_main.c
\
mstask_main.c
\
task_scheduler.c
task.c
\
task_scheduler.c
\
task_trigger.c
RC_SRCS
=
rsrc.rc
RC_SRCS
=
rsrc.rc
...
...
dlls/mstask/mstask_private.h
View file @
9c131bb0
...
@@ -40,6 +40,13 @@ extern ClassFactoryImpl MSTASK_ClassFactory;
...
@@ -40,6 +40,13 @@ extern ClassFactoryImpl MSTASK_ClassFactory;
typedef
struct
typedef
struct
{
{
const
ITaskTriggerVtbl
*
lpVtbl
;
LONG
ref
;
}
TaskTriggerImpl
;
extern
HRESULT
TaskTriggerConstructor
(
LPVOID
*
ppObj
);
typedef
struct
{
const
ITaskSchedulerVtbl
*
lpVtbl
;
const
ITaskSchedulerVtbl
*
lpVtbl
;
LONG
ref
;
LONG
ref
;
}
TaskSchedulerImpl
;
}
TaskSchedulerImpl
;
...
...
dlls/mstask/task_trigger.c
0 → 100644
View file @
9c131bb0
/*
* 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
*/
#include "mstask_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mstask
);
static
HRESULT
WINAPI
MSTASK_ITaskTrigger_QueryInterface
(
ITaskTrigger
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
TaskTriggerImpl
*
This
=
(
TaskTriggerImpl
*
)
iface
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
ppvObject
==
NULL
)
return
E_POINTER
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ITaskTrigger
))
{
*
ppvObject
=
&
This
->
lpVtbl
;
ITaskTrigger_AddRef
(
iface
);
return
S_OK
;
}
WARN
(
"Unknown interface: %s
\n
"
,
debugstr_guid
(
riid
));
*
ppvObject
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
MSTASK_ITaskTrigger_AddRef
(
ITaskTrigger
*
iface
)
{
TaskTriggerImpl
*
This
=
(
TaskTriggerImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedIncrement
(
&
This
->
ref
);
return
ref
;
}
static
ULONG
WINAPI
MSTASK_ITaskTrigger_Release
(
ITaskTrigger
*
iface
)
{
TaskTriggerImpl
*
This
=
(
TaskTriggerImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
InterlockedDecrement
(
&
dll_ref
);
}
return
ref
;
}
static
HRESULT
WINAPI
MSTASK_ITaskTrigger_SetTrigger
(
ITaskTrigger
*
iface
,
const
PTASK_TRIGGER
pTrigger
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_ITaskTrigger_GetTrigger
(
ITaskTrigger
*
iface
,
PTASK_TRIGGER
pTrigger
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_ITaskTrigger_GetTriggerString
(
ITaskTrigger
*
iface
,
LPWSTR
*
ppwszTrigger
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
const
ITaskTriggerVtbl
MSTASK_ITaskTriggerVtbl
=
{
MSTASK_ITaskTrigger_QueryInterface
,
MSTASK_ITaskTrigger_AddRef
,
MSTASK_ITaskTrigger_Release
,
MSTASK_ITaskTrigger_SetTrigger
,
MSTASK_ITaskTrigger_GetTrigger
,
MSTASK_ITaskTrigger_GetTriggerString
};
HRESULT
TaskTriggerConstructor
(
LPVOID
*
ppObj
)
{
TaskTriggerImpl
*
This
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
MSTASK_ITaskTriggerVtbl
;
This
->
ref
=
1
;
*
ppObj
=
&
This
->
lpVtbl
;
InterlockedIncrement
(
&
dll_ref
);
return
S_OK
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment