HrServiceStartup, ServiceMain, and HrServiceShutdown are functions you must write to match the prototypes given in WINWRAP.H. In addition, you must define the following global variables in the service’s code:
For example, the XLATDRIV sample application defines these variables as follows:
TCHAR szAppName[] = TEXT("XLATDRIV");
TCHAR szWindowTitle[] = TEXT("Message Translation Sample");
HrServiceShutdown is called for every successful call to the HrServiceStartup function.