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
d5009479
Commit
d5009479
authored
May 13, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
May 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Add stub implementations of SetupUninstallOEMInfA/W.
parent
52fdc9e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
misc.c
dlls/setupapi/misc.c
+39
-0
setupapi.spec
dlls/setupapi/setupapi.spec
+2
-0
setupapi.h
include/setupapi.h
+3
-0
No files found.
dlls/setupapi/misc.c
View file @
d5009479
...
...
@@ -1114,6 +1114,45 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
}
/***********************************************************************
* SetupUninstallOEMInfA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupUninstallOEMInfA
(
PCSTR
inf_file
,
DWORD
flags
,
PVOID
reserved
)
{
BOOL
ret
;
WCHAR
*
inf_fileW
=
NULL
;
TRACE
(
"%s, 0x%08x, %p
\n
"
,
debugstr_a
(
inf_file
),
flags
,
reserved
);
if
(
inf_file
&&
!
(
inf_fileW
=
strdupAtoW
(
inf_file
)))
return
FALSE
;
ret
=
SetupUninstallOEMInfW
(
inf_fileW
,
flags
,
reserved
);
HeapFree
(
GetProcessHeap
(),
0
,
inf_fileW
);
return
ret
;
}
/***********************************************************************
* SetupUninstallOEMInfW (SETUPAPI.@)
*/
BOOL
WINAPI
SetupUninstallOEMInfW
(
PCWSTR
inf_file
,
DWORD
flags
,
PVOID
reserved
)
{
static
const
WCHAR
infW
[]
=
{
'\\'
,
'i'
,
'n'
,
'f'
,
'\\'
,
0
};
WCHAR
target
[
MAX_PATH
];
TRACE
(
"%s, 0x%08x, %p
\n
"
,
debugstr_w
(
inf_file
),
flags
,
reserved
);
if
(
!
GetWindowsDirectoryW
(
target
,
sizeof
(
target
)
/
sizeof
(
WCHAR
)
))
return
FALSE
;
strcatW
(
target
,
infW
);
strcatW
(
target
,
inf_file
);
if
(
flags
&
SUOI_FORCEDELETE
)
return
DeleteFileW
(
target
);
FIXME
(
"not deleting %s
\n
"
,
debugstr_w
(
target
));
return
TRUE
;
}
/***********************************************************************
* InstallCatalog (SETUPAPI.@)
*/
DWORD
WINAPI
InstallCatalog
(
LPCSTR
catalog
,
LPCSTR
basename
,
LPSTR
fullname
)
...
...
dlls/setupapi/setupapi.spec
View file @
d5009479
...
...
@@ -526,6 +526,8 @@
@ stdcall SetupSetSourceListW(long ptr long)
@ stdcall SetupTermDefaultQueueCallback(ptr)
@ stdcall SetupTerminateFileLog(long)
@ stdcall SetupUninstallOEMInfA(str long ptr)
@ stdcall SetupUninstallOEMInfW(wstr long ptr)
@ stub ShouldDeviceBeExcluded
@ stdcall StampFileSecurity(wstr ptr)
@ stdcall StringTableAddString(ptr wstr long)
...
...
include/setupapi.h
View file @
d5009479
...
...
@@ -1391,6 +1391,9 @@ typedef enum {
/* SetupConfigureWmiFromInfSection Flags values */
#define SCWMI_CLOBBER_SECURITY 0x00000001
/* SetupUninstallOEMInf Flags values */
#define SUOI_FORCEDELETE 0x00000001
LONG
WINAPI
AddTagToGroupOrderList
(
PCWSTR
lpGroupName
,
DWORD
dwUnknown2
,
DWORD
dwUnknown3
);
DWORD
WINAPI
CaptureAndConvertAnsiArg
(
PCSTR
lpSrc
,
PWSTR
*
lpDst
);
DWORD
WINAPI
CaptureStringArg
(
PCWSTR
lpSrc
,
PWSTR
*
lpDst
);
...
...
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