[NEWDEV] Add InstallDevInstEx

This commit is contained in:
Eric Kohl 2018-10-14 18:17:42 +02:00
parent fc35f6eb4b
commit 731ef01361
3 changed files with 30 additions and 4 deletions

View file

@ -807,17 +807,19 @@ cleanup:
BOOL
WINAPI
InstallDevInst(
InstallDevInstEx(
IN HWND hWndParent,
IN LPCWSTR InstanceId,
IN BOOL bUpdate,
OUT LPDWORD lpReboot)
OUT LPDWORD lpReboot,
IN DWORD Unknown)
{
PDEVINSTDATA DevInstData = NULL;
BOOL ret;
BOOL retval = FALSE;
TRACE("InstllDevInst(%p, %s, %d, %p)\n", hWndParent, debugstr_w(InstanceId), bUpdate, lpReboot);
TRACE("InstllDevInstEx(%p, %s, %d, %p, %lx)\n",
hWndParent, debugstr_w(InstanceId), bUpdate, lpReboot, Unknown);
DevInstData = HeapAlloc(GetProcessHeap(), 0, sizeof(DEVINSTDATA));
if (!DevInstData)
@ -916,6 +918,21 @@ cleanup:
}
/*
* @implemented
*/
BOOL
WINAPI
InstallDevInst(
IN HWND hWndParent,
IN LPCWSTR InstanceId,
IN BOOL bUpdate,
OUT LPDWORD lpReboot)
{
return InstallDevInstEx(hWndParent, InstanceId, bUpdate, lpReboot, 0);
}
/*
* @implemented
*/

View file

@ -1,7 +1,7 @@
@ stdcall ClientSideInstallW(ptr ptr wstr long)
@ stdcall DevInstallW(ptr ptr wstr long)
@ stdcall InstallDevInst(ptr wstr long ptr)
@ stub InstallDevInstEx
@ stdcall InstallDevInstEx(ptr wstr long ptr long)
@ stdcall InstallNewDevice(ptr ptr ptr)
@ stub InstallSelectedDevice
@ stdcall InstallSelectedDriverW(ptr ptr wstr long ptr)

View file

@ -28,6 +28,15 @@ InstallDevInst(
IN BOOL bUpdate,
OUT LPDWORD lpReboot);
BOOL
WINAPI
InstallDevInstEx(
IN HWND hWndParent,
IN LPCWSTR InstanceId,
IN BOOL bUpdate,
OUT LPDWORD lpReboot,
IN DWORD Unknown);
#ifdef __cplusplus
}
#endif