|
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) |
| Count | Global Template Name | Qty | Global Template Description | |
| (0001) | AACHTControlPanel(HNDTools) | 1 | AACHTControlPanel - CHT Global Control Panel. | |
| (0002) | ApplicationImagesEx(HNDTools) | 1 | ApplicationImagesEx - A tool to better control the use of images and icons in your application. | |
| (0003) | HNDCMPControlPanel(HNDTools) | 1 | HNDCMPControlPanel - Interface to the CHT Compile Manager. | |
| (0004) | HandyVersionResource(HNDTools) | 1 | HandyVersionResource - Version Resource/Build Number Information To EXE | |
| (4) Global Templates Found | ||||
| 1 - Procedure Template Type: Splash | ||||
| JumpStartSplashCHTBlue () | ||||
| Count | Local Template Name | Qty | Local Template Description | |
| (0005) | AppBuildDateTimeStamp(HNDTools) | 1 | AppBuildDateTimeStamp - An application build date/time stamp. | |
| (0006) | AppBuildNumberStamp(HNDTools) | 1 | AppBuildNumberStamp - An application build number or version stamp. | |
| (0007) | AppCopyRightStamp(HNDTools) | 1 | AppCopyRightStamp - An application copyright stamp. | |
| (0008) | HandyTellMeControl(HNDTools) | 1 | HandyTellMeControl - Text box control to provide a message or help text. | |
| (0009) | ProcedureImagesEx(HNDTools) | 1 | ProcedureImagesEx - A tool to better control the use of images and icons in your procedure. | |
| (5) Local Templates Found In JumpStartSplashCHTBlue | ||||
| 2 - Procedure Template Type: Window | ||||
| Main () | ||||
| Count | Local Template Name | Qty | Local Template Description | |
| (0010) | AppStartSplashProcedure(HNDTools) | 1 | AppStartSplashProcedure - Start the application Splash screen earlier with an option for threaded/unthreaded. | |
| (0011) | CloseButton(ABC) | 1 | Close the Window | |
| (0012) | EmbedShellFunctions(HNDTools) | 1 | EmbedShellFunctions - An Instance Of: | |
| (0013) | EmbedWindowFunctions(HNDTools) | 1 | EmbedWindowFunctions - An Instance Of: | |
| (0014) | HandyFileDialogSelectButton_ESHF(HNDTools) | 2 | HandyFileDialogSelectButton_ESHF - A button that selects a single file into an entry field.(19) | |
| (0015) | HandyHelpFileFetch(HNDTools) | 2 | HandyHelpFileFetch - Build A Help File Request To Your Website.(14) | |
| (0016) | HandyHelpWhatsNew(HNDTools) | 1 | HandyHelpWhatsNew - Build A What's New Request To Your Website.(15) | |
| (0017) | HandyServiceRemoteControlButtons_ESHF(HNDTools) | 2 | HandyServiceRemoteControlButtons_ESHF - Buttons that controls a CHT-based NT Service from another application running locally.(5) | |
| (0018) | HandyTimeEnterAndSaveControl(HNDTools) | 2 | HandyTimeEnterAndSaveControl - A time spin control that saves to and restores from app configuration.(18) | |
| (0019) | PostControlEvent(HNDTools) | 5 | Post an event to a control in a local window(13) | |
| (0020) | ProcedureImagesEx(HNDTools) | 1 | ProcedureImagesEx - A tool to better control the use of images and icons in your procedure. | |
| (11) Local Templates Found In Main | ||||
Templates In Application: HNDSERVICEUP.APP