home *** CD-ROM | disk | FTP | other *** search
- program %s;
-
- uses
- SvcMgr;
-
- {$R *.RES}
-
- begin
- Application.Initialize;
- Application.Run;
- end.
- |unit %s;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs;
-
- type
- T%s = class(T%s)
- private
- { Private declarations }
- public
- function GetServiceController: TServiceController; override;
- { Public declarations }
- end;
-
- var
- %1:s: T%1:s;
-
- implementation
-
- {$R *.DFM}
-
- procedure ServiceController(CtrlCode: DWord); stdcall;
- begin
- %1:s.Controller(CtrlCode);
- end;
-
- function T%1:s.GetServiceController: TServiceController;
- begin
- Result := ServiceController;
- end;
-
- end.
- |
- |
-