コード例 #1
0
        public int Next(out IMDThread ppThread)
        {
            if (m_curr < m_threads.Count)
            {
                ppThread = new MDThread(m_threads[m_curr++]);
                return(HRESULTS.S_OK);
            }
            else if (m_curr == m_threads.Count)
            {
                m_curr++;
                ppThread = null;
                return(HRESULTS.S_FALSE);
            }

            ppThread = null;
            return(HRESULTS.E_FAIL);
        }
コード例 #2
0
        public int Next(out IMDThread ppThread)
        {
            if (m_curr < m_threads.Count)
            {
                ppThread = new MDThread(m_threads[m_curr++]);
                return HRESULTS.S_OK;
            }
            else if (m_curr == m_threads.Count)
            {
                m_curr++;
                ppThread = null;
                return HRESULTS.S_FALSE;
            }

            ppThread = null;
            return HRESULTS.E_FAIL;
        }