[SETUPAPI] Implement SetupGetNonInteractiveMode() and SetupSetNonInteractiveMode().
authorEric Kohl <eric.kohl@reactos.org>
Sun, 2 Dec 2018 13:10:25 +0000 (14:10 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 2 Dec 2018 13:10:25 +0000 (14:10 +0100)
dll/win32/setupapi/misc.c
dll/win32/setupapi/setupapi.spec
dll/win32/setupapi/stubs.c

index 701af29..df03525 100644 (file)
@@ -869,6 +869,27 @@ void WINAPI pSetupSetGlobalFlags( DWORD flags )
     pSetupModifyGlobalFlags(0xFFFFFFFF, flags);
 }
 
+/***********************************************************************
+ *             SetupGetNonInteractiveMode  (SETUPAPI.@)
+ */
+BOOL WINAPI SetupGetNonInteractiveMode(VOID)
+{
+    return (GlobalSetupFlags & PSPGF_NONINTERACTIVE);
+}
+
+/***********************************************************************
+ *             SetupSetNonInteractiveMode  (SETUPAPI.@)
+ */
+BOOL WINAPI SetupSetNonInteractiveMode(BOOL NonInteractiveFlag)
+{
+    BOOL OldValue;
+
+    OldValue = (GlobalSetupFlags & PSPGF_NONINTERACTIVE);
+    pSetupModifyGlobalFlags(PSPGF_NONINTERACTIVE,
+                            NonInteractiveFlag ? PSPGF_NONINTERACTIVE : 0);
+
+    return OldValue;
+}
 
 /***********************************************************************
  *              AssertFail  (SETUPAPI.@)
index 527f4fd..99de0fc 100644 (file)
 @ stdcall SetupGetLineTextW(ptr long wstr wstr ptr long ptr)
 @ stdcall SetupGetMultiSzFieldA(ptr long ptr long ptr)
 @ stdcall SetupGetMultiSzFieldW(ptr long ptr long ptr)
-@ stub SetupGetNonInteractiveMode
+@ stdcall SetupGetNonInteractiveMode()
 @ stdcall SetupGetSourceFileLocationA(ptr ptr str ptr ptr long ptr)
 @ stdcall SetupGetSourceFileLocationW(ptr ptr wstr ptr ptr long ptr)
 @ stub SetupGetSourceFileSizeA
index 48244b7..c1c6e88 100644 (file)
@@ -103,13 +103,6 @@ WINSETUPAPI BOOL WINAPI SetupDiGetDeviceInterfaceAlias(IN HDEVINFO  DeviceInfoSe
     return FALSE;
 }
 
-WINSETUPAPI BOOL WINAPI SetupSetNonInteractiveMode(BOOL NonInteractiveFlag)
-{
-    FIXME("(%d) stub\n", NonInteractiveFlag);
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return FALSE;
-}
-
 /***********************************************************************
  *      SetupVerifyInfFileA(SETUPAPI.@)
  */