|
This application illustrates how to control and communicate with a windows service located on the same machine. It allows you to bring up the service's window, to dismiss and minimize it, to start and stop the service and to pass configuration information to the service without physically interacting with the service's own window. This specific example application enteracts with another CHT demo application called hndwindowsservicedemo.app, but an application of this sort could be made to control multiple services running on the same hardware. Key templates installed are EmbedWindowFunctions to handle inter-application communication by posting events to the target service's window, EmbedShellFunctions to handle starting and stopping the target service and HandyServiceRemoteControlButtons_ESHF to write all the remote control code. Any questions, feel free to ask: news.cwhandy.com Cheers, Gus M. Creces The Clarion Handy Tools Page www.cwhandy.ca (CHT Website) news.cwhandy.ca (CHT Forum) |
| PROCEDURE (1): JumpStartSplashCHTBlue (Procedure Template: Splash) |
|||||
| Count | Instance | Class | Type | Methods | Header File |
| (0001) | HTellMe | HNDWindow | HND | 197 | HNDWINDO.INC |
| (0002) | Toolbar | ToolbarClass | ABC | 6 | ABTOOLBA.INC |
| (0003) | ThisWindow | WindowManager | ABC | 38 | ABWINDOW.INC |
| (3) Class Instances Found In JumpStartSplashCHTBlue | |||||
| PROCEDURE (2): Main (Procedure Template: Window) |
|||||
| Count | Instance | Class | Type | Methods | Header File |
| (0001) | SHELL | HNDShell | HND | 88 | HNDSHELL.INC |
| (0002) | HWin | HNDWindow | HND | 197 | HNDWINDO.INC |
| (0003) | Toolbar | ToolbarClass | ABC | 6 | ABTOOLBA.INC |
| (0004) | ThisWindow | WindowManager | ABC | 38 | ABWINDOW.INC |
| (4) Class Instances Found In Main | |||||
Classes By Procedure In HNDSERVICEUP.APP