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
fd851064
Commit
fd851064
authored
Nov 29, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement the ShowGroup() command for Progman DDE.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
957da4ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
dde.c
dlls/shell32/dde.c
+15
-0
progman_dde.c
dlls/shell32/tests/progman_dde.c
+2
-8
No files found.
dlls/shell32/dde.c
View file @
fd851064
...
@@ -121,6 +121,7 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
...
@@ -121,6 +121,7 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
{
{
static
const
WCHAR
create_groupW
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
create_groupW
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
delete_groupW
[]
=
{
'D'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
delete_groupW
[]
=
{
'D'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
show_groupW
[]
=
{
'S'
,
'h'
,
'o'
,
'w'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
if
(
!
strcmpiW
(
command
,
create_groupW
))
if
(
!
strcmpiW
(
command
,
create_groupW
))
{
{
...
@@ -160,6 +161,20 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
...
@@ -160,6 +161,20 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
if
(
ret
||
shfos
.
fAnyOperationsAborted
)
return
DDE_FNOTPROCESSED
;
if
(
ret
||
shfos
.
fAnyOperationsAborted
)
return
DDE_FNOTPROCESSED
;
}
}
else
if
(
!
strcmpiW
(
command
,
show_groupW
))
{
WCHAR
*
path
;
/* Win32 requires the second parameter to be present but seems to
* ignore its actual value. */
if
(
argc
<
2
)
return
DDE_FNOTPROCESSED
;
path
=
get_programs_path
(
argv
[
0
]);
ShellExecuteW
(
NULL
,
NULL
,
path
,
NULL
,
NULL
,
SW_SHOWNORMAL
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
}
else
else
{
{
FIXME
(
"unhandled command %s
\n
"
,
debugstr_w
(
command
));
FIXME
(
"unhandled command %s
\n
"
,
debugstr_w
(
command
));
...
...
dlls/shell32/tests/progman_dde.c
View file @
fd851064
...
@@ -332,18 +332,12 @@ static void test_progman_dde(DWORD instance, HCONV hConv)
...
@@ -332,18 +332,12 @@ static void test_progman_dde(DWORD instance, HCONV hConv)
ok
(
!
check_exists
(
"Group1/f3g1Name.lnk"
),
"link should not exist
\n
"
);
ok
(
!
check_exists
(
"Group1/f3g1Name.lnk"
),
"link should not exist
\n
"
);
error
=
dde_execute
(
instance
,
hConv
,
"[ShowGroup(Startup, 0)]"
);
error
=
dde_execute
(
instance
,
hConv
,
"[ShowGroup(Startup, 0)]"
);
todo_wine
{
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
if
(
error
==
DMLERR_NO_ERROR
)
ok
(
check_window_exists
(
StartupTitle
),
"window not created
\n
"
);
ok
(
check_window_exists
(
StartupTitle
),
"window not created
\n
"
);
}
error
=
dde_execute
(
instance
,
hConv
,
"[ShowGroup(Group1, 0)]"
);
error
=
dde_execute
(
instance
,
hConv
,
"[ShowGroup(Group1, 0)]"
);
todo_wine
{
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
if
(
error
==
DMLERR_NO_ERROR
)
ok
(
check_window_exists
(
Group1Title
),
"window not created
\n
"
);
ok
(
check_window_exists
(
Group1Title
),
"window not created
\n
"
);
}
/* DeleteGroup Test */
/* DeleteGroup Test */
error
=
dde_execute
(
instance
,
hConv
,
"[DeleteGroup(Group1)]"
);
error
=
dde_execute
(
instance
,
hConv
,
"[DeleteGroup(Group1)]"
);
...
...
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