'How does .NET create a window?

For example where is the window created? Is any Win32 native function called? I tried to search in the mscoree.dll but I didn't find a function like CreateWindowEx that could do this.



Solution 1:[1]

The UI frameworks of .NET, WinForms/WPF and many more, are in general wrappers over native OS UI frameworks (either Win32 on Windows, or Cocoa on macOS, or GTK+ on Linux).

To learn how they wrap over such native APIs, you should search within their source code repos, not mscoree.dll,

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lex Li