in src/ServiceMonitor/ServiceMonitor.cpp [8:18]
VOID CALLBACK Service_Monitor::NotifyCallBack(PVOID parameter)
{
PSERVICE_NOTIFY pSNotify = (PSERVICE_NOTIFY)parameter;
HANDLE hEvent = (HANDLE) pSNotify->pContext;
_tprintf(L"\nService Change Status Notify Callback is called for service '%s' with status '%d'",
pSNotify->pszServiceNames, pSNotify->ServiceStatus.dwCurrentState);
if (hEvent != NULL)
{
SetEvent(hEvent);
}
}