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
9c76a0b3
Commit
9c76a0b3
authored
Jan 25, 2007
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement IDispatch->CreateInstance() for the msi server dll.
parent
c63d21bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
msi_main.c
dlls/msi/msi_main.c
+29
-8
No files found.
dlls/msi/msi_main.c
View file @
9c76a0b3
...
...
@@ -80,8 +80,15 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
typedef
struct
tagIClassFactoryImpl
{
const
IClassFactoryVtbl
*
lpVtbl
;
HRESULT
(
*
create_object
)(
IUnknown
*
,
LPVOID
*
);
}
IClassFactoryImpl
;
static
HRESULT
create_msiserver
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
{
FIXME
(
"
\n
"
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
MsiCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -115,9 +122,18 @@ static HRESULT WINAPI MsiCF_CreateInstance(LPCLASSFACTORY iface,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IUnknown
*
unk
=
NULL
;
HRESULT
r
;
FIXME
(
"%p %p %s %p
\n
"
,
This
,
pOuter
,
debugstr_guid
(
riid
),
ppobj
);
return
E_FAIL
;
TRACE
(
"%p %p %s %p
\n
"
,
This
,
pOuter
,
debugstr_guid
(
riid
),
ppobj
);
r
=
This
->
create_object
(
pOuter
,
ppobj
);
if
(
SUCCEEDED
(
r
))
{
r
=
IUnknown_QueryInterface
(
unk
,
riid
,
ppobj
);
IUnknown_Release
(
unk
);
}
return
r
;
}
static
HRESULT
WINAPI
MsiCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
dolock
)
...
...
@@ -141,7 +157,7 @@ static const IClassFactoryVtbl MsiCF_Vtbl =
MsiCF_LockServer
};
static
IClassFactoryImpl
Msi
_CF
=
{
&
MsiCF_Vtbl
};
static
IClassFactoryImpl
Msi
Server_CF
=
{
&
MsiCF_Vtbl
,
create_msiserver
};
/******************************************************************
* DllGetClassObject [MSI.@]
...
...
@@ -150,15 +166,20 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
TRACE
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServer
)
||
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerMessage
)
||
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerX2
)
)
{
*
ppv
=
(
LPVOID
)
&
MsiServer_CF
;
return
S_OK
;
}
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerMessage
)
||
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServer
)
||
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerX1
)
||
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerX2
)
||
IsEqualCLSID
(
rclsid
,
&
CLSID_IMsiServerX3
)
)
{
*
ppv
=
(
LPVOID
)
&
Msi_CF
;
return
S_OK
;
FIXME
(
"create %s object
\n
"
,
debugstr_guid
(
rclsid
));
}
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