What is User32.dll and How is it used in WPF?

As described in the header, I'm trying to figure out what User32.dll is and where / how it is used in WPF and Windows Forms?

+7
source share
2 answers

User32.dll contains most of the core Windows API, including native windows and controls, and much more.

WinForms uses it to create all forms and controls.

WPF uses it to create Window s, and then uses windows using DirectX.

+9
source

User32.dll is the core of the windows dll used for window and other interactive tasks of user programs. WPF does not use it much.

Windows.Forms is basically a .net shell around User32, and therefore is still entirely based on GDI, GDI +, and windows.

WPF is a newer and largely different structure that is almost independent of window messages and window descriptors (hWnd). It draws on the screen using Direct * and, therefore, is more powerful and often works better by uploading graphic rendering to a video card.

+4
source

All Articles