SetupGetNonInteractiveMode function

The SetupGetNonInteractiveMode function returns the value of a SetupAPI non-interactive flag that indicates whether the caller's process can interact with a user through user interface components, such as dialog boxes.

Syntax


WINSETUPAPI BOOL WINAPI SetupGetNonInteractiveMode(void);

Parameters

This function has no parameters.

Return value

SetupGetNonInteractiveMode returns TRUE if the caller's process cannot display interactive user interface elements, such as dialog boxes. Otherwise, the function returns FALSE, which indicates that the process can display interactive user interface elements.

Remarks

Installation applications, class installers, and co-installers can use this function to determine whether the current process can display interactive user interface elements such as dialog boxes. SetupAPI runs a class installer or a co-installer either in an interactive or in a non-interactive process, depending on which DIF code SetupAPI is processing.

An installation application can call SetupSetNonInteractiveMode to set the SetupAPI non-interactive flag that controls whether SetupAPI can display interactive user interface elements in the caller's context.

Requirements

Version

Available in Windows XP and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

See also

SetupSetNonInteractiveMode

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft