The Setup Application Programming Interface (SetupAPI) is a system component that provides two sets of functions:

Device installation software can use these functions to perform custom operations in class installers, co-installers, and device installation applications.


SetupApi is not supported on all editions of Windows. When possible, you should use lower layer APIs such as those available via CfgMgr32.dll. See Porting from SetupApi to CfgMgr32 for tips.

This section contains the following topics, which provide general information about how to use the general Setup functions and device installation functions that are provided by SetupAPI:

Using General Setup Functions

Using Device Installation Functions

Guidelines for Using SetupAPI

Note  This section describes only a subset of the Setup functions in SetupAPI. For more information about this API, see Setup API .