Ejemplo 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;
 }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 public ELFSharedObject(ELFFile anELFFile, ELFProcess aProcess)
 {
     theFile = anELFFile;
     theProcess = aProcess;
 }
Ejemplo 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;
        }