Skip to content

Commit

Permalink
完成Ioctl工具UI和逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
王芃力 committed Apr 15, 2018
2 parents 607fe8b + 2bd013e commit fe6648a
Show file tree
Hide file tree
Showing 12 changed files with 1,107 additions and 597 deletions.
19 changes: 19 additions & 0 deletions 驱动工具/ControlWorkerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ wxThread::ExitCode CControlWorkerThread::Entry()
swprintf_s(buff, L"错误代码:%lu,%s", sc.GetErrorCode(), sc.GetErrorStr(sc.GetErrorCode()));
strNotify = buff;
}
else
{
strNotify = wxT("服务安装成功");
}
break;

case START:
Expand All @@ -43,6 +47,10 @@ wxThread::ExitCode CControlWorkerThread::Entry()
swprintf_s(buff, L"错误代码:%lu,%s", sc.GetErrorCode(), sc.GetErrorStr(sc.GetErrorCode()));
strNotify = buff;
}
else
{
strNotify = wxT("服务启动成功");
}
break;

case STOP:
Expand All @@ -52,6 +60,10 @@ wxThread::ExitCode CControlWorkerThread::Entry()
swprintf_s(buff, L"错误代码:%lu,%s", sc.GetErrorCode(), sc.GetErrorStr(sc.GetErrorCode()));
strNotify = buff;
}
else
{
strNotify = wxT("服务停止成功");
}
break;

case UNINSTALL:
Expand All @@ -61,7 +73,14 @@ wxThread::ExitCode CControlWorkerThread::Entry()
swprintf_s(buff, L"错误代码:%lu,%s", sc.GetErrorCode(), sc.GetErrorStr(sc.GetErrorCode()));
strNotify = buff;
}
else
{
strNotify = wxT("服务卸载成功");
}
break;

default:
strNotify = wxT("......我是谁?我在哪?我在做什么?");
}

} while (0);
Expand Down
Loading

0 comments on commit fe6648a

Please sign in to comment.