SetupFreeSourceList

The SetupFreeSourceList function frees the system resources allocated to a source list.

BOOL SetupFreeSourceList(
  PCTSTR **List,  // an array of sources to free
  UINT Count      // the number of sources in the array
);
 

Parameters

List
Specifies a pointer to an array of sources from SetupQuerySourceList. When the function returns, this pointer is set to NULL.
Count
Specifies the number of sources in the list.

Return Values

If the function succeeds, the return value is a non-zero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in setupapi.h.
  Import Library: Link with setupapi.lib.

See Also

Overview, Functions, SetupCancelTemporarySourceList, SetupSetSourceList