| 14808 | |
| 14809 | |
| 14810 | BOOL MsgMonitorList::IsRunning(UINT aMsg, UCHAR aMsgType) |
| 14811 | // Returns true if there are any monitors for a message currently executing. |
| 14812 | { |
| 14813 | for (MsgMonitorInstance *inst = mTop; inst; inst = inst->previous) |
| 14814 | if (!inst->deleted && mMonitor[inst->index].msg == aMsg && mMonitor[inst->index].msg_type == aMsgType) |
| 14815 | return TRUE; |
| 14816 | //if (!mTop) |
| 14817 | // return FALSE; |
| 14818 | //for (int i = 0; i < mCount; ++i) |
| 14819 | // if (mMonitor[i].msg == aMsg && mMonitor[i].instance_count) |
| 14820 | // return TRUE; |
| 14821 | return FALSE; |
| 14822 | } |
| 14823 | |
| 14824 | |
| 14825 | void MsgMonitorList::Dispose() |