What is ServiceBase.ServiceHandle? Any examples?

I work in a service that monitors the file system for changing / adding / deleting something inside a folder. When I started to realize it, I found this property in a class ServiceBase, ServiceBase.ServiceHandle.
What is it used for? How can this be achieved? I tried searching the site, but found a little more than the MSDN website told me.
Does anyone know an example or tutorial on how to use it?

thank

+3
source share
1 answer

ServiceBase.ServiceHandleis a system descriptor used to update the status of a service in the Services control panel. This is the same handle that returns Win32 RegisterServiceCtrlHandlerand RegisterServiceCtrlHandlerEx.

. , ++, . (, START_PENDING, RUNNING, STOPPED) Win32 SetServiceStatus, .

, , #, - ; , ServiceBase .

, , , ServiceBase.

+4

All Articles