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
807fc8c5
Commit
807fc8c5
authored
Jan 22, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Jan 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IClassFactory methods.
parent
a12f7069
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
0 deletions
+104
-0
Makefile.in
dlls/qmgr/Makefile.in
+1
-0
factory.c
dlls/qmgr/factory.c
+96
-0
qmgr.h
dlls/qmgr/qmgr.h
+7
-0
No files found.
dlls/qmgr/Makefile.in
View file @
807fc8c5
...
@@ -7,6 +7,7 @@ IMPORTS = kernel32
...
@@ -7,6 +7,7 @@ IMPORTS = kernel32
EXTRALIBS
=
-luuid
EXTRALIBS
=
-luuid
C_SRCS
=
\
C_SRCS
=
\
factory.c
\
qmgr.c
\
qmgr.c
\
qmgr_main.c
qmgr_main.c
...
...
dlls/qmgr/factory.c
0 → 100644
View file @
807fc8c5
/*
* Class factory interface for Queue Manager (BITS)
*
* Copyright (C) 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
*/
#define COBJMACROS
#include "qmgr.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
qmgr
);
static
ULONG
WINAPI
BITS_IClassFactory_AddRef
(
LPCLASSFACTORY
iface
)
{
return
2
;
}
static
HRESULT
WINAPI
BITS_IClassFactory_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
ClassFactoryImpl
*
This
=
(
ClassFactoryImpl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IClassFactory
))
{
*
ppvObj
=
&
This
->
lpVtbl
;
return
S_OK
;
}
*
ppvObj
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
BITS_IClassFactory_Release
(
LPCLASSFACTORY
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
BITS_IClassFactory_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
HRESULT
res
;
IUnknown
*
punk
=
NULL
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
res
=
BackgroundCopyManagerConstructor
(
pUnkOuter
,
(
LPVOID
*
)
&
punk
);
if
(
FAILED
(
res
))
return
res
;
res
=
IUnknown_QueryInterface
(
punk
,
riid
,
ppvObj
);
IUnknown_Release
(
punk
);
return
res
;
}
static
HRESULT
WINAPI
BITS_IClassFactory_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
const
IClassFactoryVtbl
BITS_IClassFactory_Vtbl
=
{
BITS_IClassFactory_QueryInterface
,
BITS_IClassFactory_AddRef
,
BITS_IClassFactory_Release
,
BITS_IClassFactory_CreateInstance
,
BITS_IClassFactory_LockServer
};
ClassFactoryImpl
BITS_ClassFactory
=
{
&
BITS_IClassFactory_Vtbl
};
dlls/qmgr/qmgr.h
View file @
807fc8c5
...
@@ -34,6 +34,13 @@ typedef struct
...
@@ -34,6 +34,13 @@ typedef struct
LONG
ref
;
LONG
ref
;
}
BackgroundCopyManagerImpl
;
}
BackgroundCopyManagerImpl
;
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
}
ClassFactoryImpl
;
extern
ClassFactoryImpl
BITS_ClassFactory
;
HRESULT
BackgroundCopyManagerConstructor
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
HRESULT
BackgroundCopyManagerConstructor
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
#endif
/* __QMGR_H__ */
#endif
/* __QMGR_H__ */
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