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

[IDL]
HRESULT DiscoverApp(
	 HANDLE hUserToken,
	 LPCWSTR szDeploymentTypeId,
	 DWORD dwDeploymentTypeRevision,
	 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.
szDeploymentTypeId

Data type: DWORDQualifiers: [in].  
dwDeploymentTypeRevision

Data type: DWORDQualifiers: [in].  
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