Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,180 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,152 people online right now. Registration is fast and FREE... Join Now!




windows xp kernel

 
Reply to this topicStart new topic

windows xp kernel

bburger
31 Aug, 2008 - 06:08 PM
Post #1

New D.I.C Head
*

Joined: 31 Aug, 2008
Posts: 1

huh.gif Im trying to build an operatig system and I want to decompile the WinXP kernel. Does anyone know if it is in C, C++, etc.? (Im not trying to copy the thing entirely ya know. Just lookin at the skeleton...)
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Windows Xp Kernel
31 Aug, 2008 - 06:14 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,660



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Best sources say that it is a mix of C++ and Assembly. No one knows for sure but the Kernel itself makes sense to be written in Assembly and DLLs will be C/C++.

smile.gif
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Windows Xp Kernel
31 Aug, 2008 - 06:59 PM
Post #3

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,592



Thanked: 12 times
Dream Kudos: 325
My Contributions
http://www.osdever.net/
User is offlineProfile CardPM
+Quote Post

perfectly.insane
RE: Windows Xp Kernel
31 Aug, 2008 - 07:33 PM
Post #4

D.I.C Addict
Group Icon

Joined: 22 Mar, 2008
Posts: 581



Thanked: 46 times
Dream Kudos: 25
Expert In: C/C++

My Contributions
You might want to investigate ReactOS (http://www.reactos.org/en/index.html). It's an effort to make an operating system similar to Windows, based on the same design (well, at least as far as what is already known about it).

This post has been edited by perfectly.insane: 31 Aug, 2008 - 07:34 PM
User is offlineProfile CardPM
+Quote Post

skaoth
RE: Windows Xp Kernel
31 Aug, 2008 - 07:45 PM
Post #5

D.I.C Regular
Group Icon

Joined: 7 Nov, 2007
Posts: 357



Thanked: 12 times
Dream Kudos: 100
My Contributions
I suspect that the kernel is written in C and ASM. Maybe it's changed with Vista, but my understanding was there there is no support for c++ runtime and thus no ability to new, delete or have exceptions with XP and its predecessors.
Here is an article for drivers: http://www.microsoft.com/whdc/driver/kernel/KMcode.mspx#EDE

Edit:
I'm talking about the kernel it self, Not the OS.

This post has been edited by skaoth: 31 Aug, 2008 - 07:46 PM
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Windows Xp Kernel
31 Aug, 2008 - 08:02 PM
Post #6

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,592



Thanked: 12 times
Dream Kudos: 325
My Contributions
Trying to learn systems programming from backwards-engineering the Windows kernel is not something that I think would be a good idea. I've posted a very good resource on the subject, and I have made many posts in the past highlighting others.

Drivers != the kernel.

User-land drivers can be written in C++, kernel-land drivers cannot.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Windows Xp Kernel
1 Sep, 2008 - 05:48 AM
Post #7

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,032



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
QUOTE
I want to decompile the WinXP kernel

Good luck with that.
You'll need to have a thorough understanding of Reverse Engineering to read the kernel source code.
I've attempted it myself, didn't really have the time to keep doing it, but whatever I saw was very very interesting.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/9/09 03:47AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month