Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
73b6d21a
Commit
73b6d21a
authored
14 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mstask: COM cleanup for the ITaskTrigger iface.
parent
30e90c9a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/mstask/mstask_private.h
+0
-6
0 additions, 6 deletions
dlls/mstask/mstask_private.h
dlls/mstask/task_trigger.c
+20
-8
20 additions, 8 deletions
dlls/mstask/task_trigger.c
with
20 additions
and
14 deletions
dlls/mstask/mstask_private.h
+
0
−
6
View file @
73b6d21a
...
...
@@ -34,12 +34,6 @@ extern LONG dll_ref;
typedef
struct
ClassFactoryImpl
ClassFactoryImpl
;
extern
ClassFactoryImpl
MSTASK_ClassFactory
;
typedef
struct
{
const
ITaskTriggerVtbl
*
lpVtbl
;
LONG
ref
;
TASK_TRIGGER
triggerCond
;
}
TaskTriggerImpl
;
extern
HRESULT
TaskTriggerConstructor
(
LPVOID
*
ppObj
);
typedef
struct
...
...
This diff is collapsed.
Click to expand it.
dlls/mstask/task_trigger.c
+
20
−
8
View file @
73b6d21a
...
...
@@ -23,12 +23,24 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mstask
);
typedef
struct
{
ITaskTrigger
ITaskTrigger_iface
;
LONG
ref
;
TASK_TRIGGER
triggerCond
;
}
TaskTriggerImpl
;
static
inline
TaskTriggerImpl
*
impl_from_ITaskTrigger
(
ITaskTrigger
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TaskTriggerImpl
,
ITaskTrigger_iface
);
}
static
HRESULT
WINAPI
MSTASK_ITaskTrigger_QueryInterface
(
ITaskTrigger
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
TaskTriggerImpl
*
This
=
(
TaskTrigger
Impl
*
)
iface
;
TaskTriggerImpl
*
This
=
impl_from_I
TaskTrigger
(
iface
)
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
ppvObject
==
NULL
)
...
...
@@ -37,7 +49,7 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ITaskTrigger
))
{
*
ppvObject
=
&
This
->
lpVtbl
;
*
ppvObject
=
&
This
->
ITaskTrigger_iface
;
ITaskTrigger_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -50,7 +62,7 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_QueryInterface(
static
ULONG
WINAPI
MSTASK_ITaskTrigger_AddRef
(
ITaskTrigger
*
iface
)
{
TaskTriggerImpl
*
This
=
(
TaskTrigger
Impl
*
)
iface
;
TaskTriggerImpl
*
This
=
impl_from_I
TaskTrigger
(
iface
)
;
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -60,7 +72,7 @@ static ULONG WINAPI MSTASK_ITaskTrigger_AddRef(
static
ULONG
WINAPI
MSTASK_ITaskTrigger_Release
(
ITaskTrigger
*
iface
)
{
TaskTriggerImpl
*
This
=
(
TaskTrigger
Impl
*
)
iface
;
TaskTriggerImpl
*
This
=
impl_from_I
TaskTrigger
(
iface
)
;
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -76,7 +88,7 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
ITaskTrigger
*
iface
,
const
PTASK_TRIGGER
pTrigger
)
{
TaskTriggerImpl
*
This
=
(
TaskTrigger
Impl
*
)
iface
;
TaskTriggerImpl
*
This
=
impl_from_I
TaskTrigger
(
iface
)
;
TIME_FIELDS
field_time
;
LARGE_INTEGER
sys_time
;
TASK_TRIGGER
tmp_trigger_cond
;
...
...
@@ -187,7 +199,7 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_GetTrigger(
ITaskTrigger
*
iface
,
PTASK_TRIGGER
pTrigger
)
{
TaskTriggerImpl
*
This
=
(
TaskTrigger
Impl
*
)
iface
;
TaskTriggerImpl
*
This
=
impl_from_I
TaskTrigger
(
iface
)
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
pTrigger
);
...
...
@@ -274,7 +286,7 @@ HRESULT TaskTriggerConstructor(LPVOID *ppObj)
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
MSTASK_ITaskTriggerVtbl
;
This
->
ITaskTrigger_iface
.
lpVtbl
=
&
MSTASK_ITaskTriggerVtbl
;
This
->
ref
=
1
;
/* Most fields of triggerCond default to zero. Initialize other
...
...
@@ -291,7 +303,7 @@ HRESULT TaskTriggerConstructor(LPVOID *ppObj)
This
->
triggerCond
.
TriggerType
=
TASK_TIME_TRIGGER_DAILY
,
This
->
triggerCond
.
Type
.
Daily
.
DaysInterval
=
1
;
*
ppObj
=
&
This
->
lpVtbl
;
*
ppObj
=
&
This
->
ITaskTrigger_iface
;
InterlockedIncrement
(
&
dll_ref
);
return
S_OK
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment