|
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Jul 2003
Posts: 16
|
Windows Kernel Emulation
I was wondering if it would be possible to produce a "copy" of the windows kernel? That is to say a program that could load windows executables, drivers and other modules. I assume this is fairly simple load the module into memory, do some gubbins with import/export tables, start a new thread and jump to the program entry point. I guess what I really want to know is... is this all that the windows kernel does? I think it is. I think every thing else is handled in some driver or other dll. But I only think this. Am I right? Before you ask... I'm interested in doing this for a couple of reasons but the main one is to produce an open source alternative to windows that can load and run windows executables. I know WINE sort of does this and all but thats not what I'm trying to do here. |
|
|
| Advertisement | [Remove Advertisement] |
|
|
|
|
|
#2 |
|
Crasher of Castles
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Missouri
Posts: 7,010
|
Re: Windows Kernel Emulation
wouldn't microsoft be a bit...ya know...PO'ed...they are losing money if you were to distribute an open source version...though this brings back memories of the movie antitrust and the open source people won...but anyways...microsoft developed the kernal so you'd actually ahve to ask them to be able to do that...right?
__________________
![]() |
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2003
Posts: 16
|
I dont think so. My understanding of the legalities of this is that it would be fine. Its all about binary compatibility. I cannot copy their code since this would be a breach of copyright. But if I produce something that does exactly the same as their code then I think everything is ok. I'll need to check up on this however. |
|
|
|
|
#4 |
|
AKA snkmad
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2001
Location: Brazil, Fortaleza-Ceará
Posts: 4,030
|
Re: Windows Kernel Emulation
it would be a whole new OS or based on linux??
__________________
Main PC:Win 7 SP1 PRO X64 - Asus P5G41C-M LX - Intel Q6600@2.4Ghz - OCZ 2x 2GB DDR2 1000Mhz - Sapphire Vapor-X HD5770 1GB GDDR5 - 19" LCD SyncMaster T190 - Samsung SATA II HD322HJ 320GB HTPC:Acer Aspire AR1600 - Windows 7 PRO X86 - Atom 230@1.6Ghz - 3GB DDR2 800Mhz - Nvidia ION LE - SATA II WD 160GB + Seagate GoFlex Desk 2TB USB 3.0 Notebook:Dell Inspiron 14R N4110 - Windows 7 SP1 PRO X64 / Ubuntu 12.04 X64 - Intel Core i5 2410M@2.3Ghz - 8GB DDR3@1333Mhz - Intel HD 3000 - WDC SATA II 640GB + SSD Kingston V200 128GB +WD Scorpio Blue 320GB USB 3.0 CASE |
|
|
|
|
#5 |
|
Registered User
Join Date: Jul 2003
Posts: 16
|
A whole new OS coded from scratch. Although Linux will probably be used as examples of how to do things.
|
|
|
|
|
#6 |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,577
|
Re: Windows Kernel Emulation
Writing an OS from scratch is a massive undertaking.
__________________
Computer: White MacBook (late 2008) - OS: Mac OS X 10.5.7 - CPU: Intel Core 2 Duo 2.1GHz - Memory: 4GB DDR2 PC2-5300 |
|
|
|
|
#7 |
|
邪魔ゎ指せない
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: Gosport, England
Posts: 26,303
|
Re: Windows Kernel Emulation
The Kernel is not open source. It is an integral part of windows, so MS would be loathe to let it go. Should you create an OS using said code, you would be very vulnerable to attack from MS.
__________________
![]() >Site Live< Pop over to my site for help with setting up PSX emulators. Help for the Final Fantasies and other RPGs avalaible Celes: (Desktop) Phenom II X4, 4Gb DDR2, GeForce 8800 GTS 320Mb, 32Gb OCZ Vertex SSD, 500Gb RAID HDD, Windows 7 Home Premium Erika: (MCPC) Revo3610, Windows 7 Home Premium Kimiko: (Craptop) HP Mini 210 |
|
|
|
|
#8 | ||
|
Registered User
Join Date: Jul 2003
Posts: 16
|
Re: Windows Kernel Emulation
Quote:
Quote:
I think the basic requirement to be able to run windows programs would be re-implementations of kernel32.dll and ntdll.dll. I believe these two files mainly drive device drivers to do the majority of the work. |
||
|
|
|
|
#9 | ||
|
邪魔ゎ指せない
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: Gosport, England
Posts: 26,303
|
Re: Windows Kernel Emulation
Quote:
Quote:
There is a reason MS charges over a hundred quid for it.
__________________
![]() >Site Live< Pop over to my site for help with setting up PSX emulators. Help for the Final Fantasies and other RPGs avalaible Celes: (Desktop) Phenom II X4, 4Gb DDR2, GeForce 8800 GTS 320Mb, 32Gb OCZ Vertex SSD, 500Gb RAID HDD, Windows 7 Home Premium Erika: (MCPC) Revo3610, Windows 7 Home Premium Kimiko: (Craptop) HP Mini 210 |
||
|
|
|
|
#10 | ||
|
Registered User
Join Date: Jul 2003
Posts: 16
|
Re: Windows Kernel Emulation
Quote:
Quote:
|
||
|
|
|
|
#11 |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,577
|
Re: Windows Kernel Emulation
Linux has taken many years to develop. Just out of interest, what programming skills do you have. C++ and ASM is a definate must.
__________________
Computer: White MacBook (late 2008) - OS: Mac OS X 10.5.7 - CPU: Intel Core 2 Duo 2.1GHz - Memory: 4GB DDR2 PC2-5300 |
|
|
|
|
#12 |
|
Registered User
Join Date: Jul 2003
Posts: 16
|
I have about 10 years writing code in c++. I tend to concider my ASM as fairly good but its main used for bebugging. I can normally translate ASM back into c. I was rather hoping that I wouldnt be alone in this though.
|
|
|
|
|
#13 |
|
これはバタスです
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2001
Location: Toronto, Ontario, Canada
Posts: 6,332
|
Re: Windows Kernel Emulation
There's over 2 million lines of code under Windows's hood, and at least 10,000 of them for the kernel. Good luck trying to emulate it.
__________________
CPU: Intel Core 2 Quad Q9450 Mobo: Intel DX48BT2 Memory: 4096 MB PC10600 DDR3 Videocard: PNY Geforce 9800 GX2 Soundcard: On-board SigmaTel High Definition Audio Hard drive: 120 GB OCZ RevoDrive PCI-E SSD & 1 TB Hitachi Optical drive: LG GGW-H20L (2x BD-R DL) PSU: Nexus 1000 Watt PSU OS: Microsoft Windows 7 Ultimate (64-bit) Proud millionaire folder of the NGEmu folding team |
|
|
|
|
#14 |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,577
|
Re: Windows Kernel Emulation
Well it seems to be a waste of time building an open source Windows clone.
__________________
Computer: White MacBook (late 2008) - OS: Mac OS X 10.5.7 - CPU: Intel Core 2 Duo 2.1GHz - Memory: 4GB DDR2 PC2-5300 |
|
|
|
|
#15 | |
|
邪魔ゎ指せない
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: Gosport, England
Posts: 26,303
|
Re: Windows Kernel Emulation
Quote:
__________________
![]() >Site Live< Pop over to my site for help with setting up PSX emulators. Help for the Final Fantasies and other RPGs avalaible Celes: (Desktop) Phenom II X4, 4Gb DDR2, GeForce 8800 GTS 320Mb, 32Gb OCZ Vertex SSD, 500Gb RAID HDD, Windows 7 Home Premium Erika: (MCPC) Revo3610, Windows 7 Home Premium Kimiko: (Craptop) HP Mini 210 |
|
|
|
|
|
#16 |
|
Ramsus K
![]() ![]() ![]() Join Date: Mar 2003
Location: Oklahoma
Posts: 461
|
AnyJoe: An open source clone of Windows NT is already in development (has been for a few years now). For the uninformed, it's called ReactOS. Consider joining their effort. Keep in mind that reimplementing the Windows NT kernel is no easy task, and doesn't involve just rewriting a few DLLs. That's why ReactOS only works with a few console applications and has some basic GDI functionality, despite having been in development for so long. Lord Kane: Transgaming doesn't have to pay any licensing fees to Microsoft. They don't use any of Microsoft's code. Reverse engineering and alternative implementations of software interfaces (even binary-compatible ones) are completely legal and require the author(s) to pay no royalties to anyone. If you want, I can write a long essay citing a variety of sources that explains why this is so. |
|
|
|
|
#17 |
|
邪魔ゎ指せない
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: Gosport, England
Posts: 26,303
|
Re: Windows Kernel Emulation
I was under the impression that WineX use licensed code to run (DirecX stuff)
__________________
![]() >Site Live< Pop over to my site for help with setting up PSX emulators. Help for the Final Fantasies and other RPGs avalaible Celes: (Desktop) Phenom II X4, 4Gb DDR2, GeForce 8800 GTS 320Mb, 32Gb OCZ Vertex SSD, 500Gb RAID HDD, Windows 7 Home Premium Erika: (MCPC) Revo3610, Windows 7 Home Premium Kimiko: (Craptop) HP Mini 210 |
|
|
|
|
#18 |
|
Ramsus K
![]() ![]() ![]() Join Date: Mar 2003
Location: Oklahoma
Posts: 461
|
No, they created their own DirectX implementation (which is really more of a DirectX wrapper around OpenGL) that works better than the incomplete implementation the official WINE project already had. They also fixed up the code so certain often-used installers would work with WINE. They claimed they would release their code back to the WINE project after a while, but after failing to do so, the WINE Project switched to the LGPL license.
|
|
|
|
|
#19 | |
|
Registered User
Join Date: Jul 2003
Posts: 16
|
Re: Windows Kernel Emulation
Quote:
|
|
|
|
|
|
#20 | |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: teh intarweb
Posts: 1,720
|
Re: Windows Kernel Emulation
Quote:
__________________
09 f9 11 02 9d 74 e3 5b d8 41 56 c5 63 56 88 c0 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|