[NEWDEV] Add InstallDevInstEx
authorEric Kohl <eric.kohl@reactos.org>
Sun, 14 Oct 2018 16:17:42 +0000 (18:17 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 14 Oct 2018 16:19:52 +0000 (18:19 +0200)
dll/win32/newdev/newdev.c
dll/win32/newdev/newdev.spec
sdk/include/reactos/dll/newdevp.h

index 1b30c96..960f752 100644 (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
 */
index 56e3d1b..58af6c4 100644 (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)
index 5ddcee2..4967996 100644 (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