示例#1
0
        public int Next(out IMDMemoryRegion ppRegion)
        {
            if (m_curr < m_regions.Count)
            {
                ppRegion = new MDMemoryRegion(m_regions[m_curr++]);
                return(HRESULTS.S_OK);;
            }
            else if (m_curr == m_regions.Count)
            {
                m_curr++;
                ppRegion = null;
                return(HRESULTS.S_FALSE);
            }

            ppRegion = null;
            return(HRESULTS.E_FAIL);
        }
示例#2
0
        public int Next(out IMDMemoryRegion ppRegion)
        {
            if (m_curr < m_regions.Count)
            {
                ppRegion = new MDMemoryRegion(m_regions[m_curr++]);
                return HRESULTS.S_OK; ;
            }
            else if (m_curr == m_regions.Count)
            {
                m_curr++;
                ppRegion = null;
                return HRESULTS.S_FALSE;
            }

            ppRegion = null;
            return HRESULTS.E_FAIL;
        }