3 Replies - 1211 Views - Last Post: 15 September 2010 - 06:44 AM Rate Topic: -----

#1 kim00000  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 10
  • Joined: 01-January 10

Executing Win32 Files with a PE Loader

Posted 15 September 2010 - 05:30 AM

Hello all,

I and my friend are preparing for a small OS, He's currently making the bootloader, and i'm making a Portable Executables(PE) Loader that reads PE file (EXE, DLL, OCX) and executes them...

My questions are:
1) Can this PE Loader execute Win32 programs on non-Window OS?
2) If it can execute them, then can it execute the Win32 GUI programs too?

Thanks,
.......Kimo
Is This A Good Question/Topic? 0
  • +

Replies To: Executing Win32 Files with a PE Loader

#2 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Executing Win32 Files with a PE Loader

Posted 15 September 2010 - 05:42 AM

You can only run windows programs as long as you have underlying runtime support. That means for all function calls and Windows specific behavior, you need to provide that support.

Sounds like you're trying to create your own ReactOS.
Was This Post Helpful? 0
  • +
  • -

#3 kim00000  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 10
  • Joined: 01-January 10

Re: Executing Win32 Files with a PE Loader

Posted 15 September 2010 - 06:36 AM

View PostOler1s, on 15 September 2010 - 04:42 AM, said:

you need to provide that support.


How to provide it?

Thanks for replying! :D
Was This Post Helpful? -1
  • +
  • -

#4 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Executing Win32 Files with a PE Loader

Posted 15 September 2010 - 06:44 AM

Program it?

I mean, that's the challenge you set for yourself. You need to figure out how to replicate a Windows runtime. You can look at ReactOS and at WINE because those are the two projects that actively do this. WINE isn't an OS, but it replicates the runtime needed. ReactOS must do the same, but also be an OS itself.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1