User32 related refactorings