@@ -344,6 +344,27 @@ pub trait CommandExt: Sealed {
344
344
& mut self ,
345
345
attribute_list : & ProcThreadAttributeList < ' _ > ,
346
346
) -> io:: Result < process:: Child > ;
347
+
348
+ /// When true, sets the `STARTF_RUNFULLSCREEN` flag on the [STARTUPINFO][1] struct before passing it to `CreateProcess`.
349
+ ///
350
+ /// [1]: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa
351
+ #[ unstable( feature = "windows_process_extensions_startupinfo" , issue = "141010" ) ]
352
+ fn startupinfo_fullscreen ( & mut self , enabled : bool ) -> & mut process:: Command ;
353
+
354
+ /// When true, sets the `STARTF_UNTRUSTEDSOURCE` flag on the [STARTUPINFO][1] struct before passing it to `CreateProcess`.
355
+ ///
356
+ /// [1]: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa
357
+ #[ unstable( feature = "windows_process_extensions_startupinfo" , issue = "141010" ) ]
358
+ fn startupinfo_untrusted_source ( & mut self , enabled : bool ) -> & mut process:: Command ;
359
+
360
+ /// When specified, sets the following flags on the [STARTUPINFO][1] struct before passing it to `CreateProcess`:
361
+ /// - If `Some(true)`, sets `STARTF_FORCEONFEEDBACK`
362
+ /// - If `Some(false)`, sets `STARTF_FORCEOFFFEEDBACK`
363
+ /// - If `None`, does not set any flags
364
+ ///
365
+ /// [1]: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa
366
+ #[ unstable( feature = "windows_process_extensions_startupinfo" , issue = "141010" ) ]
367
+ fn startupinfo_force_feedback ( & mut self , enabled : Option < bool > ) -> & mut process:: Command ;
347
368
}
348
369
349
370
#[ stable( feature = "windows_process_extensions" , since = "1.16.0" ) ]
@@ -385,6 +406,21 @@ impl CommandExt for process::Command {
385
406
. spawn_with_attributes ( sys:: process:: Stdio :: Inherit , true , Some ( attribute_list) )
386
407
. map ( process:: Child :: from_inner)
387
408
}
409
+
410
+ fn startupinfo_fullscreen ( & mut self , enabled : bool ) -> & mut process:: Command {
411
+ self . as_inner_mut ( ) . startupinfo_fullscreen ( enabled) ;
412
+ self
413
+ }
414
+
415
+ fn startupinfo_untrusted_source ( & mut self , enabled : bool ) -> & mut process:: Command {
416
+ self . as_inner_mut ( ) . startupinfo_untrusted_source ( enabled) ;
417
+ self
418
+ }
419
+
420
+ fn startupinfo_force_feedback ( & mut self , enabled : Option < bool > ) -> & mut process:: Command {
421
+ self . as_inner_mut ( ) . startupinfo_force_feedback ( enabled) ;
422
+ self
423
+ }
388
424
}
389
425
390
426
#[ unstable( feature = "windows_process_extensions_main_thread_handle" , issue = "96723" ) ]
0 commit comments