Esempio n. 1
0
 public static ELFSharedObject LoadLibrary_FromELFSO(File ELFSharedObjectFile, ELFProcess theProcess)
 {
     //bool reenable = Scheduler.Enabled;
     //if (reenable)
     //{
     //    Scheduler.Disable();
     //}
     ELFSharedObject result = new ELFFile(ELFSharedObjectFile).LoadSharedObject(theProcess);
     //if (reenable)
     //{
     //    Scheduler.Enable();
     //}
     return result;
 }
Esempio n. 2
0
        public ELFSharedObject LoadSharedObject(ELFProcess theProcess)
        {
            if (!IsSharedObject())
            {
                ExceptionMethods.Throw(new FOS_System.Exception("Attempted to load non-shared ELF as shared object!"));
            }

            ELFSharedObject sharedObject = new ELFSharedObject(this, theProcess);
            sharedObject.Load();
            return sharedObject;
        }
Esempio n. 3
0
 public ELFSharedObject(ELFFile anELFFile, ELFProcess aProcess)
 {
     theFile = anELFFile;
     theProcess = aProcess;
 }
Esempio n. 4
0
        public ELFProcess LoadExecutable(bool UserMode)
        {
            if (!IsExecutable())
            {
                ExceptionMethods.Throw(new FOS_System.Exception("Attempted to load non-executable ELF as executable!"));
            }

            ELFProcess process = new ELFProcess(this);
            process.Load(UserMode);
            return process;
        }