IsImmersiveProcess function user32

Win32Result<bool> IsImmersiveProcess(
  1. HANDLE hProcess
)

Determines whether the process belongs to a Windows Store app.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-isimmersiveprocess.

Implementation

Win32Result<bool> IsImmersiveProcess(HANDLE hProcess) {
  resolveGetLastError();
  final result_ = _IsImmersiveProcess(hProcess);
  return .new(value: result_ != FALSE, error: GetLastError());
}