CopyIcon function user32
Copies the specified icon from another module to the current module.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-copyicon.
Implementation
Win32Result<HICON> CopyIcon(HICON hIcon) {
resolveGetLastError();
final result_ = _CopyIcon(hIcon);
return .new(value: .new(result_), error: GetLastError());
}