IfmManage::CloseAppByName

This method closes an application.

Syntax

HRESULT CloseAppByName( BSTR bstrAppName, BOOL fTerminate );

Parameters

bstrAppName
Unicode string that contains the name of the application to shut down.
fTerminate
Boolean that indicates whether to terminate the specified application. TRUE indicates that the method terminates the application. FALSE indicates that the method does not terminate the application.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

Use this method only when reinstalling the .exe file of an application. Do not use this method during the normal operation of an application.