How does a Windows service differ from a standard exe?

后端 未结 5 795
梦毁少年i
梦毁少年i 2021-01-31 02:52

What\'s the difference between a Windows service and a standard exe?

5条回答
  •  终归单人心
    2021-01-31 02:52

    A Windows service has a special ServiceMain function and must respond to Service Control Manager (SCM) commands properly in order to be functional as a service. On the other hand, a regular executable has a main or WinMain function and doesn't need to respond to any particular control commands.

提交回复
热议问题