Ejemplo n.º 1
0
        internal ImageImports(MappedImage mappedImage)
        {
            _mappedImage = mappedImage;
            _descriptorTable = mappedImage.GetImportDirectory();

            // Do a quick scan.
            if (_descriptorTable != null)
            {
                int i = 0;

                while (_descriptorTable[i].OriginalFirstThunk != 0 || _descriptorTable[i].FirstThunk != 0)
                    i++;

                _count = i;
                _dlls = new ImageImportDll[i];
            }
        }
Ejemplo n.º 2
0
        internal ImageImports(MappedImage mappedImage)
        {
            _mappedImage     = mappedImage;
            _descriptorTable = mappedImage.GetImportDirectory();

            // Do a quick scan.
            if (_descriptorTable != null)
            {
                int i = 0;

                while (_descriptorTable[i].OriginalFirstThunk != 0 || _descriptorTable[i].FirstThunk != 0)
                {
                    i++;
                }

                _count = i;
                _dlls  = new ImageImportDll[i];
            }
        }