GENERATED: JUL 10,2017 - 11:56PM
CHT Demonstration NT Service [V10.17.05.0154]

Previous Page
This application, once configured, starts CHT backup application HNDFSYNC.EXE at the Start Time: indicated and creates a backup based on the .TPS Synch File provided. Use this application as a model for most hidden, background services required to perform some routine task on a regular schedule, as in this case a backup service.

To install this service application, at the DOS prompt type:
HNDWINDOWSSERVICEDEMO /IS or /INSTALL

To start the service once installed, at the DOS prompt type:
HNDWINDOWSSERVICEDEMO /SS or /START

To stop the service once installed, at the DOS prompt type:
HNDWINDOWSSERVICEDEMO /SP or /STOP

To remove the service once installed, at the DOS prompt type:
HNDWINDOWSERVICEDEMO /RS or /REMOVE

See HNDSERVICEUP.APP and HNDSERVICEUPREMOTE.APP for examples of how to control and configure this service remotely from another application.

This application starts with it's window minimized and hidden. It's application icon appears on the Windows Task Bar from which it can be commanded. By unchecking the "Application In Tray" switch on the EmbedWindowFunctions template in the main procedure, this application can be made to run completely hidden, while still being configured remotely from HNDSERVICEUPREMOTE.APP or HNDSERVICEUP.APP.

Any questions, feel free to ask.

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 CHT AACHTControlPanel - Global Control Panel.
(0002) ApplicationImagesEx(HNDTools) 1 CHT ApplicationImagesEx - Application Styling System
(0003) HNDCMPControlPanel(HNDTools) 1 CHT HNDCMPControlPanel - Interface to the CHT Compile Manager.
(0004) HandyNTServiceFunctions(HNDTools) 1 CHT HandyNTServiceFunctions - Have your application act as an NT Service.
(0005) HandyVersionResource(HNDTools) 1 CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(0006) INIFile(HNDTools) 1 CHT INIFile - .INI FIle and Registry extension classes - HNDIni - globally to your application.
(6) Global Templates Found

1 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0007) AppBuildDateTimeStamp(HNDTools) 1 CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0008) AppBuildNumberStamp(HNDTools) 1 CHT AppBuildNumberStamp - An application build number or version stamp.
(0009) AppCopyRightStamp(HNDTools) 1 CHT AppCopyRightStamp - An application copyright stamp.
(0010) HandyTellMeControl(HNDTools) 1 CHT HandyTellMeControl - Text box control to provide a message or help text.
(0011) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(5) Local Templates Found In JumpStartSplashCHTBlue

2 - Procedure Template Type: Window
ServiceMain ()
Count Local Template Name Qty Local Template Description
(0012) AppStartSplashProcedure(HNDTools) 1 CHT AppStartSplashProcedure - Application Splash screen earlier with an option for threaded/unthreaded.
(0013) EmbedShellFunctions(HNDTools) 1 CHT EmbedShellFunctions - An Instance Of:
(0014) EmbedWindowFunctions(HNDTools) 1 CHT EmbedWindowFunctions - An Instance Of:
(0015) ExtendedEvents_EWF(HNDTools) 1 CHT ExtendedEvents_EWF - Intercept extended events on a Callback window. Requires EmbedWindowFunctions Template.(7)
(0016) HandyApplicationIniPut(HNDTools) 1 CHT HandyApplicationIniPut - Embed a PUT to the Application INI file or Windows registry.(5)
(0017) HandyCOMMailSlotControl(HNDTools) 1 CHT HandyCOMMailSlotControl - Drop a CHT COM Mail Slot Control On Your Application Window.(8)
(0018) HandyFileDialogSelectButton_ESHF(HNDTools) 1 CHT HandyFileDialogSelectButton_ESHF - A button that selects a single file into an entry field.(6)
(0019) HandyRunAppOnWindowTimerControl(HNDTools) 1 CHT HandyRunAppOnWindowTimerControl - Counts down to a given time of day and runs the named application.
(0020) HandyTellMeControl_EWF(HNDTools) 1 CHT HandyTellMeControl_EWF - Text box control to provide a message or help text. Requires EmbedWindowFunctions Template.(3)
(0021) HandyTimeEnterAndSaveControl(HNDTools) 1 CHT HandyTimeEnterAndSaveControl - A time spin control that saves to and restores from app configuration.(10)
(0022) HandyWindowDismissButton(HNDTools) 1 CHT HandyWindowDismissButton - Dismisses a window to the task bar by minimizing and hiding it.
(0023) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(12) Local Templates Found In ServiceMain

Copyright © 1996-2017 - CHT Version: [21C.00.00]
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Templates In Application: HNDWINDOWSSERVICEDEMO.APP