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
1f1f190b
Commit
1f1f190b
authored
Feb 18, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add a basic test for NewMenu object creation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
237ec648
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
shlview.c
dlls/shell32/tests/shlview.c
+30
-0
shlguid.h
include/shlguid.h
+1
-0
No files found.
dlls/shell32/tests/shlview.c
View file @
1f1f190b
...
@@ -1476,6 +1476,35 @@ if (0)
...
@@ -1476,6 +1476,35 @@ if (0)
IShellFolder_Release
(
desktop
);
IShellFolder_Release
(
desktop
);
}
}
static
void
test_newmenu
(
void
)
{
IUnknown
*
unk
,
*
unk2
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_NewMenu
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to create NewMenu object, hr %#x.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
skip
(
"NewMenu is not supported.
\n
"
);
return
;
}
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IShellExtInit
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"Failed to get IShellExtInit, hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk2
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IContextMenu3
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"Failed to get IContextMenu3, hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk2
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IObjectWithSite
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"Failed to get IObjectWithSite, hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk2
);
IUnknown_Release
(
unk
);
}
START_TEST
(
shlview
)
START_TEST
(
shlview
)
{
{
OleInitialize
(
NULL
);
OleInitialize
(
NULL
);
...
@@ -1491,6 +1520,7 @@ START_TEST(shlview)
...
@@ -1491,6 +1520,7 @@ START_TEST(shlview)
test_IOleCommandTarget
();
test_IOleCommandTarget
();
test_SHCreateShellFolderView
();
test_SHCreateShellFolderView
();
test_SHCreateShellFolderViewEx
();
test_SHCreateShellFolderViewEx
();
test_newmenu
();
OleUninitialize
();
OleUninitialize
();
}
}
include/shlguid.h
View file @
1f1f190b
...
@@ -146,6 +146,7 @@ DEFINE_GUID(CLSID_DragDropHelper, 0x4657278a, 0x411b, 0x11d2, 0x83, 0x9a, 0x00,
...
@@ -146,6 +146,7 @@ DEFINE_GUID(CLSID_DragDropHelper, 0x4657278a, 0x411b, 0x11d2, 0x83, 0x9a, 0x00,
DEFINE_GUID
(
CLSID_ProgressDialog
,
0xf8383852
,
0xfcd3
,
0x11d1
,
0xa6
,
0xb9
,
0x0
,
0x60
,
0x97
,
0xdf
,
0x5b
,
0xd4
);
DEFINE_GUID
(
CLSID_ProgressDialog
,
0xf8383852
,
0xfcd3
,
0x11d1
,
0xa6
,
0xb9
,
0x0
,
0x60
,
0x97
,
0xdf
,
0x5b
,
0xd4
);
DEFINE_GUID
(
CLSID_ShellItem
,
0x2fe352ea
,
0xfd1f
,
0x11d2
,
0xb1
,
0xf4
,
0x00
,
0xc0
,
0x4f
,
0x8e
,
0xeb
,
0x3e
);
DEFINE_GUID
(
CLSID_ShellItem
,
0x2fe352ea
,
0xfd1f
,
0x11d2
,
0xb1
,
0xf4
,
0x00
,
0xc0
,
0x4f
,
0x8e
,
0xeb
,
0x3e
);
DEFINE_GUID
(
CLSID_NewMenu
,
0xd969a300
,
0xe7ff
,
0x11d0
,
0xa9
,
0x3b
,
0x0
,
0xa0
,
0xc9
,
0xf
,
0x27
,
0x19
);
#define PSGUID_SHELLDETAILS {0x28636aa6, 0x953d, 0x11d2, 0xb5, 0xd6, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0}
#define PSGUID_SHELLDETAILS {0x28636aa6, 0x953d, 0x11d2, 0xb5, 0xd6, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0}
DEFINE_GUID
(
FMTID_ShellDetails
,
0x28636aa6
,
0x953d
,
0x11d2
,
0xb5
,
0xd6
,
0x0
,
0xc0
,
0x4f
,
0xd9
,
0x18
,
0xd0
);
DEFINE_GUID
(
FMTID_ShellDetails
,
0x28636aa6
,
0x953d
,
0x11d2
,
0xb5
,
0xd6
,
0x0
,
0xc0
,
0x4f
,
0xd9
,
0x18
,
0xd0
);
...
...
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