Windows applications, including .NET applications that use Windows Forms or Windows Presentation Foundation (WPF), create their windows by calling the CreateWindowExA or CreateWindowExW functions.