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
49e1a1a5
Commit
49e1a1a5
authored
Jan 16, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Simple tests for IApplicationAssociationRegistration.
parent
2d4d571f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
assoc.c
dlls/shell32/tests/assoc.c
+37
-0
No files found.
dlls/shell32/tests/assoc.c
View file @
49e1a1a5
...
...
@@ -23,6 +23,7 @@
#include "shlwapi.h"
#include "shlguid.h"
#include "shobjidl.h"
#include "wine/test.h"
...
...
@@ -61,11 +62,47 @@ static void test_IQueryAssociations_QueryInterface(void)
}
static
void
test_IApplicationAssociationRegistration_QueryInterface
(
void
)
{
IApplicationAssociationRegistration
*
appreg
;
IApplicationAssociationRegistration
*
appreg2
;
IUnknown
*
unk
;
HRESULT
hr
;
/* this works since Vista */
hr
=
CoCreateInstance
(
&
CLSID_ApplicationAssociationRegistration
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IApplicationAssociationRegistration
,
(
LPVOID
*
)
&
appreg
);
if
(
FAILED
(
hr
))
{
skip
(
"IApplicationAssociationRegistration not created: 0x%x
\n
"
,
hr
);
return
;
}
hr
=
IUnknown_QueryInterface
(
appreg
,
&
IID_IApplicationAssociationRegistration
,
(
void
**
)
&
appreg2
);
ok
(
hr
==
S_OK
,
"QueryInterface (IApplicationAssociationRegistration) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
appreg2
);
}
hr
=
IUnknown_QueryInterface
(
appreg
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface (IUnknown) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
unk
);
}
hr
=
IUnknown_QueryInterface
(
appreg
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%x (expected E_POINTER)
\n
"
,
hr
);
IApplicationAssociationRegistration_Release
(
appreg
);
}
START_TEST
(
assoc
)
{
CoInitialize
(
NULL
);
test_IQueryAssociations_QueryInterface
();
test_IApplicationAssociationRegistration_QueryInterface
();
CoUninitialize
();
}
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