Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
00a3dceb
Commit
00a3dceb
authored
Feb 25, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Feb 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement the IUnknown interface for IEnumBackgroundCopyJobs.
parent
28e7c3b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
0 deletions
+132
-0
Makefile.in
dlls/qmgr/Makefile.in
+1
-0
enum_jobs.c
dlls/qmgr/enum_jobs.c
+122
-0
qmgr.h
dlls/qmgr/qmgr.h
+9
-0
No files found.
dlls/qmgr/Makefile.in
View file @
00a3dceb
...
...
@@ -7,6 +7,7 @@ IMPORTS = advpack ole32 advapi32 kernel32
EXTRALIBS
=
-luuid
C_SRCS
=
\
enum_jobs.c
\
factory.c
\
job.c
\
qmgr.c
\
...
...
dlls/qmgr/enum_jobs.c
0 → 100644
View file @
00a3dceb
/*
* Queue Manager (BITS) Job Enumerator
*
* Copyright 2007 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 "qmgr.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
qmgr
);
static
void
EnumBackgroundCopyJobsDestructor
(
EnumBackgroundCopyJobsImpl
*
This
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
static
ULONG
WINAPI
BITS_IEnumBackgroundCopyJobs_AddRef
(
IEnumBackgroundCopyJobs
*
iface
)
{
EnumBackgroundCopyJobsImpl
*
This
=
(
EnumBackgroundCopyJobsImpl
*
)
iface
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_QueryInterface
(
IEnumBackgroundCopyJobs
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
EnumBackgroundCopyJobsImpl
*
This
=
(
EnumBackgroundCopyJobsImpl
*
)
iface
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IEnumBackgroundCopyJobs
))
{
*
ppvObject
=
&
This
->
lpVtbl
;
BITS_IEnumBackgroundCopyJobs_AddRef
(
iface
);
return
S_OK
;
}
*
ppvObject
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
BITS_IEnumBackgroundCopyJobs_Release
(
IEnumBackgroundCopyJobs
*
iface
)
{
EnumBackgroundCopyJobsImpl
*
This
=
(
EnumBackgroundCopyJobsImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
EnumBackgroundCopyJobsDestructor
(
This
);
return
ref
;
}
/*** IEnumBackgroundCopyJobs methods ***/
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_Next
(
IEnumBackgroundCopyJobs
*
iface
,
ULONG
celt
,
IBackgroundCopyJob
**
rgelt
,
ULONG
*
pceltFetched
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_Skip
(
IEnumBackgroundCopyJobs
*
iface
,
ULONG
celt
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_Reset
(
IEnumBackgroundCopyJobs
*
iface
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_Clone
(
IEnumBackgroundCopyJobs
*
iface
,
IEnumBackgroundCopyJobs
**
ppenum
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_GetCount
(
IEnumBackgroundCopyJobs
*
iface
,
ULONG
*
puCount
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
const
IEnumBackgroundCopyJobsVtbl
BITS_IEnumBackgroundCopyJobs_Vtbl
=
{
BITS_IEnumBackgroundCopyJobs_QueryInterface
,
BITS_IEnumBackgroundCopyJobs_AddRef
,
BITS_IEnumBackgroundCopyJobs_Release
,
BITS_IEnumBackgroundCopyJobs_Next
,
BITS_IEnumBackgroundCopyJobs_Skip
,
BITS_IEnumBackgroundCopyJobs_Reset
,
BITS_IEnumBackgroundCopyJobs_Clone
,
BITS_IEnumBackgroundCopyJobs_GetCount
};
dlls/qmgr/qmgr.h
View file @
00a3dceb
...
...
@@ -39,6 +39,13 @@ typedef struct
GUID
jobId
;
}
BackgroundCopyJobImpl
;
/* Enum background copy jobs vtbl and related data */
typedef
struct
{
const
IEnumBackgroundCopyJobsVtbl
*
lpVtbl
;
LONG
ref
;
}
EnumBackgroundCopyJobsImpl
;
/* Background copy manager vtbl and related data */
typedef
struct
{
...
...
@@ -56,6 +63,8 @@ extern ClassFactoryImpl BITS_ClassFactory;
HRESULT
BackgroundCopyManagerConstructor
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
HRESULT
BackgroundCopyJobConstructor
(
LPCWSTR
displayName
,
BG_JOB_TYPE
type
,
GUID
*
pJobId
,
LPVOID
*
ppObj
);
HRESULT
EnumBackgroundCopyJobsConstructor
(
LPVOID
*
ppObj
,
IBackgroundCopyManager
*
copyManager
);
/* Little helper functions */
static
inline
char
*
...
...
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