mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
调整空白格式
This commit is contained in:
parent
3824b8f6e2
commit
8064e50bcf
@ -75,8 +75,8 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
|
|||||||
g_ServiceStatus.dwCheckPoint = 1;
|
g_ServiceStatus.dwCheckPoint = 1;
|
||||||
|
|
||||||
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
||||||
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
||||||
}
|
}
|
||||||
goto EXIT;
|
goto EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
|
|||||||
g_ServiceStatus.dwCheckPoint = 0;
|
g_ServiceStatus.dwCheckPoint = 0;
|
||||||
|
|
||||||
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
||||||
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the thread that will perform the main task of the service
|
// Start the thread that will perform the main task of the service
|
||||||
@ -114,7 +114,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
|
|||||||
g_ServiceStatus.dwCheckPoint = 3;
|
g_ServiceStatus.dwCheckPoint = 3;
|
||||||
|
|
||||||
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
||||||
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
OutputDebugString(_T("My Sample Service: ServiceMain: SetServiceStatus returned error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
EXIT:
|
EXIT:
|
||||||
@ -143,8 +143,8 @@ VOID WINAPI ServiceCtrlHandler (DWORD CtrlCode) {
|
|||||||
g_ServiceStatus.dwCheckPoint = 4;
|
g_ServiceStatus.dwCheckPoint = 4;
|
||||||
|
|
||||||
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE) {
|
||||||
OutputDebugString(_T("My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error"));
|
OutputDebugString(_T("My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This will signal the worker thread to start shutting down
|
// This will signal the worker thread to start shutting down
|
||||||
SetEvent (g_ServiceStopEvent);
|
SetEvent (g_ServiceStopEvent);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user