home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 3 / Developers_Source_Vol_03_1996.iso / wndos / feb96 / tomlf102.gif < prev   
Graphics Interchange Format  |  1996-05-22  |  69KB  |  395x479  |  8-bit (118 colors)
Labels: text | diagram | parallel | line | screenshot | font | number | document
OCR: Figure 2 Overview of how a service works service controller service.exe service controller spawns .exe maing calls containing one or more StartServiceCtrlDispatcher!) services passing addresses of StartServiceCtrlDispatcherD service entrypoint functions starts separate thread for each main() returns, service separate service process ands RegisterServiceCirHandler() records address of service callback function for lator use service entrypoint function calls RegisterServiceClrIHandler(), passing address of callback function StartServiceCtriDispatcherD service entrypoint function does wails for incoming service processing. requests , and notifies callback informing service function to pause, conlinus, Controller of status by calling stop, etc. SelServiceStatus() service entrypoint function eventually relums, which afer al service threads terminates the thread terminata, StartServiceCirID spatcher!) finally returns to caller callback function (handler) receives any notifications from service controller