Unit 'AdvancedSingleInstance' Package
[Overview][Types][Classes][Index] [#fcl]

TAdvancedSingleInstance

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Single Application instance class using file communication.

Declaration

Source position: advancedsingleinstance.pas line 42

type TAdvancedSingleInstance = class(TBaseSingleInstance)

public

  constructor Create(); override;

  

Create a new instance of TAdvancedSingleInstance.

  function Start; override;

  

Start IPC communication and check the type of the application instance.

  procedure Stop; override;

  

End IPC communication.

  procedure ServerCheckMessages; override;

  

Check for incoming messages for the server.

  procedure ClientPostParams; override;

  

Post client command-line parameters to the server.

  function ClientPostCustomRequest();

  

Send a custom message to the server.

  function ClientSendCustomRequest();

  

ClientSendCustomRequest.

  procedure ServerPostCustomResponse();

  

Post a server response to the client.

  function ClientPeekCustomResponse();

  

Check whether the server posted a response.

  property ID: AnsiString; [rw]

  

The ID of this instance.

  property Global: Boolean; [rw]

  

Is the instance global (for all users) or local (for the current user).

  property OnServerReceivedCustomRequest: TSingleInstanceReceivedCustomMessage; [rw]

  

Server event truggered when a custom request is received.

end;

Inheritance

TAdvancedSingleInstance

  

Single Application instance class using file communication.

|

TBaseSingleInstance

  

Abstract class for single application instance.

|

TComponent

|

TPersistent,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TAdvancedSingleInstance is a TBaseSingleInstance descendent. It implements the required functionality using the IPC mechanism of the advancedipc unit: it uses files to communicate. This ensures the mechanism works on all platforms.

See also

TBaseSingleInstance

  

Abstract class for single application instance.

advancedipc

  

IPC using files.


Documentation generated on: Nov 22 2024