CreateMenu function user32
Creates a menu.
The menu is initially empty, but it can be filled with menu items by using the InsertMenuItem, AppendMenu, and InsertMenu functions.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-createmenu.
Implementation
Win32Result<HMENU> CreateMenu() {
resolveGetLastError();
final result_ = _CreateMenu();
return .new(value: .new(result_), error: GetLastError());
}