@@ -75,8 +75,8 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
75
75
g_ServiceStatus.dwCheckPoint = 1 ;
76
76
77
77
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
78
- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
79
- }
78
+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
79
+ }
80
80
goto EXIT;
81
81
}
82
82
@@ -87,7 +87,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
87
87
g_ServiceStatus.dwCheckPoint = 0 ;
88
88
89
89
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
90
- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
90
+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
91
91
}
92
92
93
93
// Start the thread that will perform the main task of the service
@@ -114,7 +114,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
114
114
g_ServiceStatus.dwCheckPoint = 3 ;
115
115
116
116
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
117
- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
117
+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
118
118
}
119
119
120
120
EXIT:
@@ -143,8 +143,8 @@ VOID WINAPI ServiceCtrlHandler (DWORD CtrlCode) {
143
143
g_ServiceStatus.dwCheckPoint = 4 ;
144
144
145
145
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
146
- OutputDebugString (_T (" My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error" ));
147
- }
146
+ OutputDebugString (_T (" My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error" ));
147
+ }
148
148
149
149
// This will signal the worker thread to start shutting down
150
150
SetEvent (g_ServiceStopEvent);
0 commit comments