SetupSetNonInteractiveMode function

The SetupSetNonInteractiveMode function sets a non-interactive SetupAPI flag that determines whether SetupAPI can interact with a user in the caller's context.

Syntax


BOOL SetupSetNonInteractiveMode(
  _In_  BOOL NonInteractiveFlag
);

Parameters

NonInteractiveFlag [in]

The Boolean value of the non-interactive flag. If NonInteractive is set to TRUE, SetupAPI runs in a non-interactive user mode and if NonInteractive is set to FALSE, SetupAPI runs in an interactive user mode.

Return value

SetupSetNonInteractiveMode returns the previous setting of the non-interactive flag.

Remarks

Installation applications, class installers and co-installers can use this function to control whether SetupAPI can display interactive user interface elements, such as dialog boxes, in the caller's context.

An installation application or an installer can call SetupGetNonInteractiveMode to retrieve the current value of the non-interactive flag.

Requirements

Version

Available in Windows XP and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

See also

SetupGetNonInteractiveMode

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft