GetProcessWindowStation function user32
Retrieves a handle to the current window station for the calling process.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getprocesswindowstation.
Implementation
Win32Result<HWINSTA> GetProcessWindowStation() {
final result_ = GetProcessWindowStation_Wrapper();
return Win32Result(value: HWINSTA(result_.value.ptr), error: result_.error);
}