Skip to content

ThreeSevenths/HelloCSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloCSharp

This is a simple windows executable using the Excellent Vanara.PInvoke libraries to manually create a window and window message loop. This follows along with Hello, Assembly! Retrocoding the World's Smallest Windows App in x86 ASM, except obviously not using assembly. It might be possible to code this in IL more succintly, but I am fine with a C# example.

This program creates a custom window class, creates a window, and runs a message pump for said window. The window contains the application title painted in the centre. It generally follows the structure of Dave's assembly program. I am aware of how the Main function essentially recreates the main func at this level 🤷.

MIT licensed, feel free to do with this as you wish, if it's of use to you!

About

Win32 Window Creation at a low level in C# using PInvoke

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages