nitro_shared 0.27.0

Shared libraries and utilities for Nitrolaunch crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Prevents a command from spawning a window on Windows
///
/// Used from https://github.com/Mrmayman/quantumlauncher/
#[macro_export]
macro_rules! no_window {
	($cmd:expr) => {
		#[cfg(target_os = "windows")]
		{
			use std::os::windows::process::CommandExt;
			// 0x08000000 => CREATE_NO_WINDOW
			$cmd.creation_flags(0x08000000);
		}
	};
}