mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-20 22:54:09 +00:00
setupapi: Add stub implementations of SetupUninstallOEMInfA/W.
This commit is contained in:
parent
52fdc9e265
commit
d5009479bb
|
@ -1113,6 +1113,45 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* 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.@)
|
* InstallCatalog (SETUPAPI.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -526,6 +526,8 @@
|
||||||
@ stdcall SetupSetSourceListW(long ptr long)
|
@ stdcall SetupSetSourceListW(long ptr long)
|
||||||
@ stdcall SetupTermDefaultQueueCallback(ptr)
|
@ stdcall SetupTermDefaultQueueCallback(ptr)
|
||||||
@ stdcall SetupTerminateFileLog(long)
|
@ stdcall SetupTerminateFileLog(long)
|
||||||
|
@ stdcall SetupUninstallOEMInfA(str long ptr)
|
||||||
|
@ stdcall SetupUninstallOEMInfW(wstr long ptr)
|
||||||
@ stub ShouldDeviceBeExcluded
|
@ stub ShouldDeviceBeExcluded
|
||||||
@ stdcall StampFileSecurity(wstr ptr)
|
@ stdcall StampFileSecurity(wstr ptr)
|
||||||
@ stdcall StringTableAddString(ptr wstr long)
|
@ stdcall StringTableAddString(ptr wstr long)
|
||||||
|
|
|
@ -1391,6 +1391,9 @@ typedef enum {
|
||||||
/* SetupConfigureWmiFromInfSection Flags values */
|
/* SetupConfigureWmiFromInfSection Flags values */
|
||||||
#define SCWMI_CLOBBER_SECURITY 0x00000001
|
#define SCWMI_CLOBBER_SECURITY 0x00000001
|
||||||
|
|
||||||
|
/* SetupUninstallOEMInf Flags values */
|
||||||
|
#define SUOI_FORCEDELETE 0x00000001
|
||||||
|
|
||||||
LONG WINAPI AddTagToGroupOrderList(PCWSTR lpGroupName, DWORD dwUnknown2, DWORD dwUnknown3);
|
LONG WINAPI AddTagToGroupOrderList(PCWSTR lpGroupName, DWORD dwUnknown2, DWORD dwUnknown3);
|
||||||
DWORD WINAPI CaptureAndConvertAnsiArg(PCSTR lpSrc, PWSTR *lpDst);
|
DWORD WINAPI CaptureAndConvertAnsiArg(PCSTR lpSrc, PWSTR *lpDst);
|
||||||
DWORD WINAPI CaptureStringArg(PCWSTR lpSrc, PWSTR *lpDst);
|
DWORD WINAPI CaptureStringArg(PCWSTR lpSrc, PWSTR *lpDst);
|
||||||
|
|
Loading…
Reference in a new issue