Edit

Share via


IAppManagementHandler::DiscoverApp Method

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

Syntax

[IDL]  
HRESULT DiscoverApp(  
     HANDLE hUserToken,  
     LPCWSTR szDeploymentTypeId,  
     DWORD dwDeploymentTypeRevision,  
     AppDeploymentTypeData* pDetectResult  
);  

Parameters

hUserToken
Data type: HANDLE

Qualifiers: [in]

The user token. If it's null, the action is for computer. If it isn't NULL, the action is for the user.

szDeploymentTypeId
Data type: DWORD

Qualifiers: [in]

.

dwDeploymentTypeRevision
Data type: DWORD

Qualifiers: [in]

.

pDetectResult
Data type: AppDeploymentTypeData

Qualifiers: [out]

.

Return Values

An HRESULT code. Possible values include, but aren't limited to, the following one:

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

Requirements

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

IAppManagementHandler Interface
Application Management Client Interfaces
Configuration Manager Software Development Kit
Configuration Manager Reference