procedure TerminateComponent


procedure Terminatecomponent(Component : PChar);

Exported by: SharpApi.dll
Declared in: svn\common\libraries\SharpApi\SharpApi.pas


Parameters

  • Component: PChar

File name of the component which is going to be closed.
This parameter must be the exact filename of the application which is going to be terminated. The filename must not include the '.exe' extension.


Description

The Terminatecomponent function can be used to terminate a component completely. This function will not close the application in a normal way, it will terminate the process of the target application.
Only use this function if there is no other way and if CloseComponent has failed.


Examples

  TerminateComponent('sharpbar');
  TerminateComponent('explorer');