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
98f6cf0d
Commit
98f6cf0d
authored
Dec 11, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Dec 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started implementation of ShellExecuteEx32A.
Small changes.
parent
3e813c1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
21 deletions
+95
-21
classes.c
dlls/shell32/classes.c
+24
-0
shellord.c
dlls/shell32/shellord.c
+71
-21
No files found.
dlls/shell32/classes.c
View file @
98f6cf0d
...
...
@@ -18,6 +18,7 @@ BOOL32 WINAPI HCR_MapTypeToValue ( LPSTR szExtension, LPSTR szFileType, DWORD le
{
HKEY
hkey
;
TRACE
(
shell
,
"%s %p
\n
"
,
szExtension
,
szFileType
);
if
(
RegOpenKeyEx32A
(
HKEY_CLASSES_ROOT
,
szExtension
,
0
,
0x02000000
,
&
hkey
))
{
return
FALSE
;
}
...
...
@@ -33,4 +34,27 @@ BOOL32 WINAPI HCR_MapTypeToValue ( LPSTR szExtension, LPSTR szFileType, DWORD le
return
TRUE
;
}
BOOL32
WINAPI
HCR_GetExecuteCommand
(
LPCSTR
szClass
,
LPCSTR
szVerb
,
LPSTR
szDest
,
DWORD
len
)
{
HKEY
hkey
;
char
sTemp
[
256
];
TRACE
(
shell
,
"%s %s
\n
"
,
szClass
,
szVerb
);
sprintf
(
sTemp
,
"%s
\\
shell
\\
%s
\\
command"
,
szClass
,
szVerb
);
if
(
RegOpenKeyEx32A
(
HKEY_CLASSES_ROOT
,
sTemp
,
0
,
0x02000000
,
&
hkey
))
{
return
FALSE
;
}
if
(
RegQueryValue32A
(
hkey
,
NULL
,
szDest
,
&
len
))
{
RegCloseKey
(
hkey
);
return
FALSE
;
}
RegCloseKey
(
hkey
);
TRACE
(
shell
,
"-- %s
\n
"
,
szDest
);
return
TRUE
;
}
dlls/shell32/shellord.c
View file @
98f6cf0d
...
...
@@ -91,8 +91,8 @@ DWORD WINAPI ParseField(LPCSTR src,DWORD field,LPSTR dst,DWORD len)
* PickIconDlg [SHELL32.62]
*
*/
DWORD
WINAPI
PickIconDlg
(
DWORD
x
,
DWORD
y
,
DWORD
z
,
DWORD
a
)
{
FIXME
(
shell
,
"(%08lx,%08lx,%08lx,%08lx):stub.
\n
"
,
x
,
y
,
z
,
a
);
DWORD
WINAPI
PickIconDlg
(
DWORD
x
,
DWORD
y
,
DWORD
z
,
DWORD
a
)
{
FIXME
(
shell
,
"(%08lx,%08lx,%08lx,%08lx):stub.
\n
"
,
x
,
y
,
z
,
a
);
return
0xffffffff
;
}
...
...
@@ -100,13 +100,12 @@ DWORD WINAPI PickIconDlg(DWORD x,DWORD y,DWORD z,DWORD a) {
* GetFileNameFromBrowse [SHELL32.63]
*
*/
DWORD
WINAPI
GetFileNameFromBrowse
(
HWND32
howner
,
LPSTR
targetbuf
,
DWORD
len
,
DWORD
x
,
LPCSTR
suffix
,
LPCSTR
y
,
LPCSTR
cmd
)
{
FIXME
(
shell
,
"(%04x,%p,%ld,%08lx,%s,%s,%s):stub.
\n
"
,
howner
,
targetbuf
,
len
,
x
,
suffix
,
y
,
cmd
);
DWORD
WINAPI
GetFileNameFromBrowse
(
HWND32
howner
,
LPSTR
targetbuf
,
DWORD
len
,
DWORD
x
,
LPCSTR
suffix
,
LPCSTR
y
,
LPCSTR
cmd
)
{
FIXME
(
shell
,
"(%04x,%p,%ld,%08lx,%s,%s,%s):stub.
\n
"
,
howner
,
targetbuf
,
len
,
x
,
suffix
,
y
,
cmd
);
/* puts up a Open Dialog and requests input into targetbuf */
/* OFN_HIDEREADONLY|OFN_NOCHANGEDIR|OFN_FILEMUSTEXIST|OFN_unknown */
lstrcpy32A
(
targetbuf
,
"x:
\\
s3
.exe"
);
lstrcpy32A
(
targetbuf
,
"x:
\\
dummy
.exe"
);
return
1
;
}
...
...
@@ -114,10 +113,8 @@ DWORD WINAPI GetFileNameFromBrowse(HWND32 howner, LPSTR targetbuf, DWORD len, DW
* SHGetSettings [SHELL32.68]
*
*/
DWORD
WINAPI
SHGetSettings
(
DWORD
x
,
DWORD
y
,
DWORD
z
)
{
FIXME
(
shell
,
"(0x%08lx,0x%08lx,0x%08lx):stub.
\n
"
,
x
,
y
,
z
);
DWORD
WINAPI
SHGetSettings
(
DWORD
x
,
DWORD
y
,
DWORD
z
)
{
FIXME
(
shell
,
"(0x%08lx,0x%08lx,0x%08lx):stub.
\n
"
,
x
,
y
,
z
);
return
0
;
}
...
...
@@ -606,22 +603,75 @@ BOOL32 WINAPI ShellExecuteEx32 (LPVOID sei)
*
*/
BOOL32
WINAPI
ShellExecuteEx32A
(
LPSHELLEXECUTEINFO32A
sei
)
{
CHAR
szTemp
[
MAX_PATH
];
{
CHAR
szApplicationName
[
MAX_PATH
],
szCommandline
[
MAX_PATH
],
szPidl
[
20
];
LPSTR
pos
;
int
gap
,
len
;
STARTUPINFO32A
startupinfo
;
PROCESS_INFORMATION
processinformation
;
FIXME
(
shell
,
"mask=0x%08lx hwnd=0x%04x verb=%s file=%s parm=%s dir=%s show=0x%08x class=%sstub
\n
"
,
sei
->
fMask
,
sei
->
hwnd
,
sei
->
lpVerb
,
sei
->
lpFile
,
sei
->
lpParameters
,
sei
->
lpDirectory
,
sei
->
nShow
,
sei
->
lpClass
);
ZeroMemory
(
szApplicationName
,
MAX_PATH
);
if
(
sei
->
lpFile
)
strcpy
(
szApplicationName
,
sei
->
lpFile
);
ZeroMemory
(
szCommandline
,
MAX_PATH
);
if
(
sei
->
lpParameters
)
strcpy
(
szCommandline
,
sei
->
lpParameters
);
if
(
sei
->
fMask
&
(
SEE_MASK_CLASSKEY
|
SEE_MASK_INVOKEIDLIST
|
SEE_MASK_ICON
|
SEE_MASK_HOTKEY
|
SEE_MASK_NOCLOSEPROCESS
|
SEE_MASK_CONNECTNETDRV
|
SEE_MASK_FLAG_DDEWAIT
|
SEE_MASK_DOENVSUBST
|
SEE_MASK_FLAG_NO_UI
|
SEE_MASK_UNICODE
|
SEE_MASK_NO_CONSOLE
|
SEE_MASK_ASYNCOK
|
SEE_MASK_HMONITOR
))
{
FIXME
(
shell
,
"flags ignored: 0x%08lx
\n
"
,
sei
->
fMask
);
}
FIXME
(
shell
,
"(%p): stub
\n
"
,
sei
);
if
(
sei
->
fMask
&
SEE_MASK_CLASSNAME
)
{
HCR_GetExecuteCommand
(
sei
->
lpClass
,
(
sei
->
lpVerb
)
?
sei
->
lpVerb
:
"open"
,
szCommandline
,
256
);
}
if
(
sei
->
fMask
&
SEE_MASK_IDLIST
)
{
SHGetPathFromIDList32A
(
sei
->
lpIDList
,
szTemp
);
TRACE
(
shell
,
"-- idlist=%p (%s)
\n
"
,
sei
->
lpIDList
,
szTemp
);
/* process the IDList */
if
(
(
sei
->
fMask
&
SEE_MASK_INVOKEIDLIST
)
==
SEE_MASK_INVOKEIDLIST
)
/*0x0c*/
{
SHGetPathFromIDList32A
(
sei
->
lpIDList
,
szApplicationName
);
FIXME
(
shell
,
"-- idlist=%p (%s)
\n
"
,
sei
->
lpIDList
,
szApplicationName
);
}
else
{
if
(
sei
->
fMask
&
SEE_MASK_IDLIST
)
{
/* %I is the adress of a global item ID*/
pos
=
strstr
(
szCommandline
,
"%I"
);
if
(
pos
)
{
HGLOBAL32
hmem
=
SHAllocShared
(
sei
->
lpIDList
,
ILGetSize
(
sei
->
lpIDList
),
0
);
sprintf
(
szPidl
,
":%li"
,(
DWORD
)
SHLockShared
(
hmem
,
0
)
);
SHUnlockShared
(
hmem
);
gap
=
strlen
(
szPidl
);
len
=
strlen
(
pos
)
-
2
;
memmove
(
pos
+
gap
,
pos
+
2
,
len
);
memcpy
(
pos
,
szPidl
,
gap
);
if
(
sei
->
fMask
&
SEE_MASK_CLASSNAME
)
{
TRACE
(
shell
,
"-- classname= %s
\n
"
,
sei
->
lpClass
);
}
}
}
if
(
sei
->
lpVerb
)
{
TRACE
(
shell
,
"-- action=%s
\n
"
,
sei
->
lpVerb
);
pos
=
strstr
(
szCommandline
,
",%L"
);
/* dunno what it means: kill it*/
if
(
pos
)
{
len
=
strlen
(
pos
)
-
2
;
*
pos
=
0x0
;
memmove
(
pos
,
pos
+
3
,
len
);
}
FIXME
(
shell
,
"-- %s
\n
"
,
szCommandline
);
ZeroMemory
(
&
startupinfo
,
sizeof
(
STARTUPINFO32A
));
startupinfo
.
cb
=
sizeof
(
STARTUPINFO32A
);
CreateProcess32A
(
szApplicationName
[
0
]
?
szApplicationName
:
NULL
,
szCommandline
[
0
]
?
szCommandline
:
NULL
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
startupinfo
,
&
processinformation
);
return
0
;
}
...
...
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