| 1131 | } |
| 1132 | |
| 1133 | static ThreadCommands ConvertThreadCommand(LPTSTR aBuf) |
| 1134 | { |
| 1135 | if (!aBuf || !*aBuf) return THREAD_CMD_INVALID; |
| 1136 | if (!_tcsicmp(aBuf, _T("Priority"))) return THREAD_CMD_PRIORITY; |
| 1137 | if (!_tcsicmp(aBuf, _T("Interrupt"))) return THREAD_CMD_INTERRUPT; |
| 1138 | if (!_tcsicmp(aBuf, _T("NoTimers"))) return THREAD_CMD_NOTIMERS; |
| 1139 | return THREAD_CMD_INVALID; |
| 1140 | } |
| 1141 | |
| 1142 | static ToggleValueType ConvertOnOff(LPTSTR aBuf, ToggleValueType aDefault = TOGGLE_INVALID) |
| 1143 | // Returns aDefault if aBuf isn't either ON, OFF, or blank. |
nothing calls this directly
no outgoing calls
no test coverage detected