[SETUPAPI] Implement SetupGetNonInteractiveMode() and SetupSetNonInteractiveMode().

This commit is contained in:
Eric Kohl 2018-12-02 14:10:25 +01:00
parent 6a944b556a
commit 3f570f3369
3 changed files with 22 additions and 8 deletions

View 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.@)

View file

@ -423,7 +423,7 @@
@ 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

View 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.@)
*/