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
5656ca0d
Commit
5656ca0d
authored
Nov 01, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple implementation of advpack.DoInfInstall.
parent
99a6afcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
advpack.c
dlls/advpack/advpack.c
+41
-0
advpack.spec
dlls/advpack/advpack.spec
+1
-1
No files found.
dlls/advpack/advpack.c
View file @
5656ca0d
...
...
@@ -19,8 +19,12 @@
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "setupapi.h"
#include "advpub.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
advpack
);
...
...
@@ -51,3 +55,40 @@ void WINAPI LaunchINFSectionEx( HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT
{
FIXME
(
"%p %p %s %d
\n
"
,
hWnd
,
hInst
,
debugstr_a
(
cmdline
),
show
);
}
/* this structure very closely resembles parameters of RunSetupCommand() */
typedef
struct
{
HWND
hwnd
;
LPCSTR
title
;
LPCSTR
inf_name
;
LPCSTR
dir
;
LPCSTR
section_name
;
}
SETUPCOMMAND_PARAMS
;
/***********************************************************************
* DoInfInstall (ADVPACK.@)
*/
BOOL
WINAPI
DoInfInstall
(
const
SETUPCOMMAND_PARAMS
*
setup
)
{
BOOL
ret
;
HINF
hinf
;
void
*
callback_context
;
TRACE
(
"%p %s %s %s %s
\n
"
,
setup
->
hwnd
,
debugstr_a
(
setup
->
title
),
debugstr_a
(
setup
->
inf_name
),
debugstr_a
(
setup
->
dir
),
debugstr_a
(
setup
->
section_name
));
hinf
=
SetupOpenInfFileA
(
setup
->
inf_name
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
callback_context
=
SetupInitDefaultQueueCallback
(
setup
->
hwnd
);
ret
=
SetupInstallFromInfSectionA
(
NULL
,
hinf
,
setup
->
section_name
,
SPINST_ALL
,
NULL
,
NULL
,
0
,
SetupDefaultQueueCallbackA
,
callback_context
,
NULL
,
NULL
);
SetupTermDefaultQueueCallback
(
callback_context
);
SetupCloseInfFile
(
hinf
);
return
ret
;
}
dlls/advpack/advpack.spec
View file @
5656ca0d
...
...
@@ -4,7 +4,7 @@
@ stub DelNode
@ stub DelNodeRunDLL32
@ stub DllMain
@ st
ub DoInfInstall
@ st
dcall DoInfInstall(ptr)
@ stub ExecuteCab
@ stub ExtractFiles
@ stub FileSaveMarkNotExist
...
...
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