The IAppManagementHandler::EnumerateApps method, in Configuration Manager, runs a synchronous discovery operation for the provided synclet.

[IDL]
HRESULT EnumerateApps(
	 HANDLE hUserToken,
	 AppDeploymentTypeData* pDetectResult
);

Parameters

hUserToken

Data type: HANDLEQualifiers: [in]The user token. If it is null, the action is for computer. If it is not NULL, the action is for the user.
pDetectResult

Data type: AppDeploymentTypeDataQualifiers: [out].  

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK

Success implies that discovery was triggered successfully. All other return values indicate failure.

Requirements

Runtime Requirements

Development Requirements

See Also