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
30feb19d
Commit
30feb19d
authored
Jun 17, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Flesh out the stub DDE query for Progman groups a little.
parent
981fcc89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
dde.c
dlls/shell32/dde.c
+21
-4
No files found.
dlls/shell32/dde.c
View file @
30feb19d
...
...
@@ -22,6 +22,7 @@
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ddeml.h"
#include "shellapi.h"
...
...
@@ -36,9 +37,17 @@ static HSZ hszAsterisk;
static
HSZ
hszShell
;
static
HSZ
hszAppProperties
;
static
HSZ
hszFolders
;
static
HSZ
hszGroups
;
/* DDE Instance ID */
static
DWORD
dwDDEInst
;
static
const
char
*
debugstr_hsz
(
HSZ
hsz
)
{
WCHAR
buffer
[
256
];
if
(
!
DdeQueryStringW
(
dwDDEInst
,
hsz
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
CP_WINUNICODE
))
return
"<unknown>"
;
return
debugstr_w
(
buffer
);
}
static
inline
BOOL
Dde_OnConnect
(
HSZ
hszTopic
,
HSZ
hszService
)
{
...
...
@@ -55,7 +64,7 @@ static inline BOOL Dde_OnConnect(HSZ hszTopic, HSZ hszService)
static
inline
void
Dde_OnConnectConfirm
(
HCONV
hconv
,
HSZ
hszTopic
,
HSZ
hszService
)
{
FIXME
(
"stub
\n
"
);
TRACE
(
"%p %s %s
\n
"
,
hconv
,
debugstr_hsz
(
hszTopic
),
debugstr_hsz
(
hszService
)
);
}
static
inline
BOOL
Dde_OnWildConnect
(
HSZ
hszTopic
,
HSZ
hszService
)
...
...
@@ -67,7 +76,13 @@ static inline BOOL Dde_OnWildConnect(HSZ hszTopic, HSZ hszService)
static
inline
HDDEDATA
Dde_OnRequest
(
UINT
uFmt
,
HCONV
hconv
,
HSZ
hszTopic
,
HSZ
hszItem
)
{
FIXME
(
"stub
\n
"
);
if
(
hszTopic
==
hszProgmanTopic
&&
hszItem
==
hszGroups
&&
uFmt
==
CF_TEXT
)
{
static
BYTE
groups_data
[]
=
"Accessories
\r\n
Startup
\r\n
"
;
FIXME
(
"returning fake program groups list
\n
"
);
return
DdeCreateDataHandle
(
dwDDEInst
,
groups_data
,
sizeof
(
groups_data
),
0
,
hszGroups
,
uFmt
,
0
);
}
FIXME
(
"%u %p %s %s: stub
\n
"
,
uFmt
,
hconv
,
debugstr_hsz
(
hszTopic
),
debugstr_hsz
(
hszItem
)
);
return
NULL
;
}
...
...
@@ -79,7 +94,7 @@ static inline DWORD Dde_OnExecute(HCONV hconv, HSZ hszTopic, HDDEDATA hdata)
if
(
!
pszCommand
)
return
DDE_FNOTPROCESSED
;
FIXME
(
"stub: %s
\n
"
,
pszCommand
);
FIXME
(
"stub: %s
%s
\n
"
,
debugstr_hsz
(
hszTopic
)
,
pszCommand
);
DdeUnaccessData
(
hdata
);
...
...
@@ -88,7 +103,7 @@ static inline DWORD Dde_OnExecute(HCONV hconv, HSZ hszTopic, HDDEDATA hdata)
static
inline
void
Dde_OnDisconnect
(
HCONV
hconv
)
{
FIXME
(
"stub
\n
"
);
TRACE
(
"%p
\n
"
,
hconv
);
}
static
HDDEDATA
CALLBACK
DdeCallback
(
...
...
@@ -146,6 +161,7 @@ void WINAPI ShellDDEInit(BOOL bInit)
static
const
WCHAR
wszAppProperties
[]
=
{
'A'
,
'p'
,
'p'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
wszFolders
[]
=
{
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
wszGroups
[]
=
{
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
's'
,
0
};
DdeInitializeW
(
&
dwDDEInst
,
DdeCallback
,
CBF_FAIL_ADVISES
|
CBF_FAIL_POKES
,
0
);
...
...
@@ -155,6 +171,7 @@ void WINAPI ShellDDEInit(BOOL bInit)
hszShell
=
DdeCreateStringHandleW
(
dwDDEInst
,
wszShell
,
CP_WINUNICODE
);
hszAppProperties
=
DdeCreateStringHandleW
(
dwDDEInst
,
wszAppProperties
,
CP_WINUNICODE
);
hszFolders
=
DdeCreateStringHandleW
(
dwDDEInst
,
wszFolders
,
CP_WINUNICODE
);
hszGroups
=
DdeCreateStringHandleW
(
dwDDEInst
,
wszGroups
,
CP_WINUNICODE
);
DdeNameService
(
dwDDEInst
,
hszFolders
,
0
,
DNS_REGISTER
);
DdeNameService
(
dwDDEInst
,
hszProgmanService
,
0
,
DNS_REGISTER
);
...
...
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