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
723aceb2
Commit
723aceb2
authored
Jun 28, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a test for CoCreateInstance doing object hosting by
automatically creating an appropriate apartment for the object and returning a proxy to it.
parent
b0efdcbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
marshal.c
dlls/ole32/tests/marshal.c
+23
-0
No files found.
dlls/ole32/tests/marshal.c
View file @
723aceb2
...
...
@@ -26,6 +26,7 @@
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "shlguid.h"
#include "wine/test.h"
...
...
@@ -59,6 +60,26 @@ static void test_CoGetPSClsid(void)
hr
);
}
static
void
test_cocreateinstance_proxy
(
void
)
{
IUnknown
*
pProxy
;
IMultiQI
*
pMQI
;
HRESULT
hr
;
pCoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
hr
=
CoCreateInstance
(
&
CLSID_ShellDesktop
,
NULL
,
CLSCTX_INPROC
,
&
IID_IUnknown
,
(
void
**
)
&
pProxy
);
ok_ole_success
(
hr
,
CoCreateInstance
);
hr
=
IUnknown_QueryInterface
(
pProxy
,
&
IID_IMultiQI
,
(
void
**
)
&
pMQI
);
todo_wine
ok
(
hr
==
S_OK
,
"created object is not a proxy, so was created in the wrong apartment
\n
"
);
if
(
hr
==
S_OK
)
IMultiQI_Release
(
pMQI
);
IUnknown_Release
(
pProxy
);
CoUninitialize
();
}
static
const
LARGE_INTEGER
ullZero
;
static
LONG
cLocks
;
...
...
@@ -2214,6 +2235,8 @@ START_TEST(marshal)
wndclass
.
lpszClassName
=
"WineCOMTest"
;
RegisterClass
(
&
wndclass
);
test_cocreateinstance_proxy
();
pCoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
/* FIXME: test CoCreateInstanceEx */
...
...
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