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
f3ff3e50
Commit
f3ff3e50
authored
Apr 20, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inseng: Added CLSID_ActiveSetupEng class factory.
parent
2c59f6fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
3 deletions
+60
-3
Makefile.in
dlls/inseng/Makefile.in
+1
-2
inseng_main.c
dlls/inseng/inseng_main.c
+59
-1
No files found.
dlls/inseng/Makefile.in
View file @
f3ff3e50
MODULE
=
inseng.dll
IMPORTS
=
uuid ole32 advapi32
C_SRCS
=
\
inseng_main.c
C_SRCS
=
inseng_main.c
IDL_SRCS
=
inseng.idl
dlls/inseng/inseng_main.c
View file @
f3ff3e50
...
...
@@ -30,6 +30,7 @@
#include "ole2.h"
#include "rpcproxy.h"
#include "initguid.h"
#include "inseng.h"
#include "wine/debug.h"
...
...
@@ -37,6 +38,59 @@ WINE_DEFAULT_DEBUG_CHANNEL(inseng);
static
HINSTANCE
instance
;
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IClassFactory
,
riid
))
{
TRACE
(
"(%p)->(IID_IClassFactory %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
}
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
FIXME
(
"(%p)->(%s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
ClassFactory_AddRef
(
IClassFactory
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
ClassFactory_Release
(
IClassFactory
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
fLock
)
{
return
S_OK
;
}
static
HRESULT
WINAPI
ActiveSetupEngCF_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
outer
,
REFIID
riid
,
void
**
ppv
)
{
FIXME
(
"(%p %s %p)
\n
"
,
outer
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
const
IClassFactoryVtbl
ActiveSetupEngCFVtbl
=
{
ClassFactory_QueryInterface
,
ClassFactory_AddRef
,
ClassFactory_Release
,
ActiveSetupEngCF_CreateInstance
,
ClassFactory_LockServer
};
static
IClassFactory
ActiveSetupEngCF
=
{
&
ActiveSetupEngCFVtbl
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
...
...
@@ -56,8 +110,12 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
*/
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
iid
,
LPVOID
*
ppv
)
{
FIXME
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
),
ppv
);
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_ActiveSetupEng
))
{
TRACE
(
"(CLSID_ActiveSetupEng %s %p)
\n
"
,
debugstr_guid
(
iid
),
ppv
);
return
IClassFactory_QueryInterface
(
&
ActiveSetupEngCF
,
iid
,
ppv
);
}
FIXME
(
"(%s %s %p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
),
ppv
);
return
CLASS_E_CLASSNOTAVAILABLE
;
}
...
...
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