I'm obsessed with my own API too. :)
And I'm glad to say that itβs nowhere as dangerous or as undocumented as some people do.:]
There is no source code for "Hello, world", because the native API does not interact with the console so easily, since it is part of the Win32 subsystem and requires client / server interaction with ports. If you need to write a console application, you need to directly contact CSRSS, whose message formats are not documented (although some of its formats can be found in ReactOS Source - this will bring you many benefits if you get acquainted with ReactOS).
I will soon send you an example that you might find interesting; for now, remember that your only option is ever to be associated with NTDLL.dll, and for this you need a driver development kit (since you need a lib file).
Update : check it out!
(I have a feeling that no one else will publish something completely as rebellious as this. Showing the GUI using its own API ?! I have to be crazy!)
If you have any questions, feel free to ask! I'm not afraid of the native API! :)
Edit 2:
If you are trying to create your own Kernel32 DLL version and download it, like Kernel32, with each process (hence the new subsystem), I just wanted to tell you that I do not think this is possible. This is quite similar to this question I asked a couple of days ago, and it seems that you cannot extend the NT PE bootloader to learn about the new subsystems, so I donβt think it will be possible.
Mehrdad Jan 09 2018-11-11T00: 00Z
source share