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
478712a2
Commit
478712a2
authored
Mar 23, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Mar 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Forward RunSetupCommandA to its Unicode counterpart.
parent
9ec33414
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
6 deletions
+45
-6
advpack.spec
dlls/advpack/advpack.spec
+1
-1
install.c
dlls/advpack/install.c
+44
-5
No files found.
dlls/advpack/advpack.spec
View file @
478712a2
...
...
@@ -63,7 +63,7 @@
@ stdcall RegSaveRestoreOnINF(ptr str str str long long long) RegSaveRestoreOnINFA
@ stdcall RegisterOCX(ptr ptr str long)
@ stdcall RunSetupCommandA(long str str str str ptr long ptr)
# stdcall RunSetupCommandW(long wstr wstr wstr wstr w
ptr long ptr)
@ stdcall RunSetupCommandW(long wstr wstr wstr wstr
ptr long ptr)
@ stdcall RunSetupCommand(long str str str str ptr long ptr) RunSetupCommandA
@ stdcall SetPerUserSecValuesA(ptr)
@ stdcall SetPerUserSecValuesW(ptr)
...
...
dlls/advpack/install.c
View file @
478712a2
...
...
@@ -26,6 +26,7 @@
#include "winuser.h"
#include "winreg.h"
#include "winver.h"
#include "winternl.h"
#include "setupapi.h"
#include "advpub.h"
#include "wine/debug.h"
...
...
@@ -158,6 +159,44 @@ HRESULT WINAPI LaunchINFSectionExA( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, I
/***********************************************************************
* RunSetupCommandA (ADVPACK.@)
*
* See RunSetupCommandW.
*/
HRESULT
WINAPI
RunSetupCommandA
(
HWND
hWnd
,
LPCSTR
szCmdName
,
LPCSTR
szInfSection
,
LPCSTR
szDir
,
LPCSTR
lpszTitle
,
HANDLE
*
phEXE
,
DWORD
dwFlags
,
LPVOID
pvReserved
)
{
UNICODE_STRING
cmdname
,
infsec
;
UNICODE_STRING
dir
,
title
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, 0x%08lx, %p)
\n
"
,
hWnd
,
debugstr_a
(
szCmdName
),
debugstr_a
(
szInfSection
),
debugstr_a
(
szDir
),
debugstr_a
(
lpszTitle
),
phEXE
,
dwFlags
,
pvReserved
);
if
(
!
szCmdName
||
!
szDir
)
return
E_INVALIDARG
;
RtlCreateUnicodeStringFromAsciiz
(
&
cmdname
,
szCmdName
);
RtlCreateUnicodeStringFromAsciiz
(
&
infsec
,
szInfSection
);
RtlCreateUnicodeStringFromAsciiz
(
&
dir
,
szDir
);
RtlCreateUnicodeStringFromAsciiz
(
&
title
,
lpszTitle
);
hr
=
RunSetupCommandW
(
hWnd
,
cmdname
.
Buffer
,
infsec
.
Buffer
,
dir
.
Buffer
,
title
.
Buffer
,
phEXE
,
dwFlags
,
pvReserved
);
RtlFreeUnicodeString
(
&
cmdname
);
RtlFreeUnicodeString
(
&
infsec
);
RtlFreeUnicodeString
(
&
dir
);
RtlFreeUnicodeString
(
&
title
);
return
hr
;
}
/***********************************************************************
* RunSetupCommandW (ADVPACK.@)
*
* Executes an install section in an INF file or a program.
*
* PARAMS
...
...
@@ -183,14 +222,14 @@ HRESULT WINAPI LaunchINFSectionExA( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, I
* BUGS
* Unimplemented
*/
HRESULT
WINAPI
RunSetupCommand
A
(
HWND
hWnd
,
LPC
STR
szCmdName
,
LPC
STR
szInfSection
,
LPC
STR
szDir
,
LPCSTR
lpszTitle
,
HANDLE
*
phEXE
,
HRESULT
WINAPI
RunSetupCommand
W
(
HWND
hWnd
,
LPCW
STR
szCmdName
,
LPC
WSTR
szInfSection
,
LPCW
STR
szDir
,
LPC
W
STR
lpszTitle
,
HANDLE
*
phEXE
,
DWORD
dwFlags
,
LPVOID
pvReserved
)
{
FIXME
(
"(%p, %s, %s, %s, %s, %p, 0x%08lx, %p): stub
\n
"
,
hWnd
,
debugstr_
a
(
szCmdName
),
debugstr_a
(
szInfSection
),
debugstr_
a
(
szDir
),
debugstr_a
(
lpszTitle
),
hWnd
,
debugstr_
w
(
szCmdName
),
debugstr_w
(
szInfSection
),
debugstr_
w
(
szDir
),
debugstr_w
(
lpszTitle
),
phEXE
,
dwFlags
,
pvReserved
);
return
E_UNEXPECTED
;
}
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