Updated: October 28, 2009
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
The EnumerateUpdates method, in Configuration Manager, determines actionable software updates that are available for the client computer.
[IDL] HRESULT EnumerateUpdates( const ULONG ulUpdateAction, const VARIANT_BOOL bIncludeHidden, VARIANT* pvarProgress, LPICCMUpdatesCollection* ppiUpdatesCollection );
Data type: ULONG
Update action. Possible values are:
UPDATE_ACTION_INSTALL. This setting retrieves all updates that are available to be installed or in the process of being installed.
UPDATE_ACTION_UNINSTALL. This setting retrieves updates that are already installed and are available to be uninstalled.
Note Uninstall of updates through this interface is not currently supported.
Data type: VARIANT_BOOL
VARIANT_FALSE to retrieve only the updates that are available through the client user interface.
Note In quiet mode, set this parameter to VARIANT_TRUE to retrieve the updates through this method.
Data type: VARIANT
Qualifiers: [in, out]
Pointer to an unsigned long value within a variant indicating if any job is currently active. Possible values are:
- Data type: LPICCMUpdatesCollection Qualifiers: [out, retval] Pointer to an ICCMUpdatesCollection Interface object representing the collection of software updates for deployment.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
The caller uses the EnumerateUpdates method on a CCMUpdatesDeployment COM Automation Class object to determine what actionable updates are available for the client computer. These updates can then be displayed in the main updates portion of the Configuration Manager console or in another client application-specific way. For implementation instructions, see How to Enumerate Software Updates.
The caller is responsible for releasing the updates collection retrieved in the ppiUpdatesCollection parameter.
For more information, see Configuration Manager Client Runtime Requirements.
For more information, see Configuration Manager Client Development Requirements.