Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Jackson
wine
Commits
bd9c265c
Commit
bd9c265c
authored
16 years ago
by
Hans Leidekker
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
setupapi: Implement SetupInstallFileExA/W.
parent
2ec1e4a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/setupapi/queue.c
+31
-11
31 additions, 11 deletions
dlls/setupapi/queue.c
dlls/setupapi/setupapi.spec
+2
-2
2 additions, 2 deletions
dlls/setupapi/setupapi.spec
with
33 additions
and
13 deletions
dlls/setupapi/queue.c
+
31
−
11
View file @
bd9c265c
...
...
@@ -1063,17 +1063,17 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
}
/***********************************************************************
* SetupInstallFileA (SETUPAPI.@)
* SetupInstallFile
Ex
A (SETUPAPI.@)
*/
BOOL
WINAPI
SetupInstallFileA
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCSTR
source
,
PCSTR
root
,
PCSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_A
handler
,
PVOID
context
)
BOOL
WINAPI
SetupInstallFile
Ex
A
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCSTR
source
,
PCSTR
root
,
PCSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_A
handler
,
PVOID
context
,
PBOOL
in_use
)
{
BOOL
ret
=
FALSE
;
struct
callback_WtoA_context
ctx
;
UNICODE_STRING
sourceW
,
rootW
,
destW
;
TRACE
(
"%p %p %s %s %s %x %p %p
\n
"
,
hinf
,
inf_context
,
debugstr_a
(
source
),
debugstr_a
(
root
),
debugstr_a
(
dest
),
style
,
handler
,
context
);
TRACE
(
"%p %p %s %s %s %x %p
%p
%p
\n
"
,
hinf
,
inf_context
,
debugstr_a
(
source
),
debugstr_a
(
root
),
debugstr_a
(
dest
),
style
,
handler
,
context
,
in_use
);
sourceW
.
Buffer
=
rootW
.
Buffer
=
destW
.
Buffer
=
NULL
;
if
(
source
&&
!
RtlCreateUnicodeStringFromAsciiz
(
&
sourceW
,
source
))
...
...
@@ -1095,7 +1095,7 @@ BOOL WINAPI SetupInstallFileA( HINF hinf, PINFCONTEXT inf_context, PCSTR source,
ctx
.
orig_context
=
context
;
ctx
.
orig_handler
=
handler
;
ret
=
SetupInstallFileW
(
hinf
,
inf_context
,
sourceW
.
Buffer
,
rootW
.
Buffer
,
destW
.
Buffer
,
style
,
QUEUE_callback_WtoA
,
&
ctx
);
ret
=
SetupInstallFile
Ex
W
(
hinf
,
inf_context
,
sourceW
.
Buffer
,
rootW
.
Buffer
,
destW
.
Buffer
,
style
,
QUEUE_callback_WtoA
,
&
ctx
,
in_use
);
exit:
RtlFreeUnicodeString
(
&
sourceW
);
...
...
@@ -1105,10 +1105,19 @@ exit:
}
/***********************************************************************
* SetupInstallFile
W
(SETUPAPI.@)
* SetupInstallFile
A
(SETUPAPI.@)
*/
BOOL
WINAPI
SetupInstallFileW
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCWSTR
source
,
PCWSTR
root
,
PCWSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_W
handler
,
PVOID
context
)
BOOL
WINAPI
SetupInstallFileA
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCSTR
source
,
PCSTR
root
,
PCSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_A
handler
,
PVOID
context
)
{
return
SetupInstallFileExA
(
hinf
,
inf_context
,
source
,
root
,
dest
,
style
,
handler
,
context
,
NULL
);
}
/***********************************************************************
* SetupInstallFileExW (SETUPAPI.@)
*/
BOOL
WINAPI
SetupInstallFileExW
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCWSTR
source
,
PCWSTR
root
,
PCWSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_W
handler
,
PVOID
context
,
PBOOL
in_use
)
{
static
const
WCHAR
CopyFiles
[]
=
{
'C'
,
'o'
,
'p'
,
'y'
,
'F'
,
'i'
,
'l'
,
'e'
,
's'
,
0
};
...
...
@@ -1116,8 +1125,10 @@ BOOL WINAPI SetupInstallFileW( HINF hinf, PINFCONTEXT inf_context, PCWSTR source
WCHAR
*
buffer
,
*
p
,
*
inf_source
=
NULL
;
unsigned
int
len
;
TRACE
(
"%p %p %s %s %s %x %p %p
\n
"
,
hinf
,
inf_context
,
debugstr_w
(
source
),
debugstr_w
(
root
),
debugstr_w
(
dest
),
style
,
handler
,
context
);
TRACE
(
"%p %p %s %s %s %x %p %p %p
\n
"
,
hinf
,
inf_context
,
debugstr_w
(
source
),
debugstr_w
(
root
),
debugstr_w
(
dest
),
style
,
handler
,
context
,
in_use
);
if
(
in_use
)
FIXME
(
"no file in use support
\n
"
);
if
(
hinf
)
{
...
...
@@ -1169,6 +1180,15 @@ BOOL WINAPI SetupInstallFileW( HINF hinf, PINFCONTEXT inf_context, PCWSTR source
return
ret
;
}
/***********************************************************************
* SetupInstallFileW (SETUPAPI.@)
*/
BOOL
WINAPI
SetupInstallFileW
(
HINF
hinf
,
PINFCONTEXT
inf_context
,
PCWSTR
source
,
PCWSTR
root
,
PCWSTR
dest
,
DWORD
style
,
PSP_FILE_CALLBACK_W
handler
,
PVOID
context
)
{
return
SetupInstallFileExW
(
hinf
,
inf_context
,
source
,
root
,
dest
,
style
,
handler
,
context
,
NULL
);
}
/***********************************************************************
* SetupCommitFileQueueW (SETUPAPI.@)
*/
...
...
This diff is collapsed.
Click to expand it.
dlls/setupapi/setupapi.spec
+
2
−
2
View file @
bd9c265c
...
...
@@ -437,8 +437,8 @@
@ stdcall SetupInitializeFileLogA (str long)
@ stdcall SetupInitializeFileLogW (wstr long)
@ stdcall SetupInstallFileA(ptr ptr str str str long ptr ptr)
@ st
ub
SetupInstallFileExA
@ st
ub
SetupInstallFileExW
@ st
dcall
SetupInstallFileExA
(ptr ptr str str str long ptr ptr ptr)
@ st
dcall
SetupInstallFileExW
(ptr ptr wstr wstr wstr long ptr ptr ptr)
@ stdcall SetupInstallFileW(ptr ptr wstr wstr wstr long ptr ptr)
@ stdcall SetupInstallFilesFromInfSectionA(long long long str str long)
@ stdcall SetupInstallFilesFromInfSectionW(long long long wstr wstr long)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment