1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// The name of the current crate, obtained at compile time from `CARGO_PKG_NAME`.
///
/// Used as the default title for tray notifications and as a suffix in
/// message box titles to help identify the source process.
pub static PROCESS_NAME: &str = env!;
/// Normalizes text by converting line endings and trimming whitespace.
///
/// Converts `\r\n` (Windows) and `\r` (old Mac) line endings to `\n` (Unix),
/// then trims leading and trailing whitespace.
///
/// # Parameters
///
/// - `text`: The input text to normalize.
///
/// # Returns
///
/// A `String` with normalized line endings and trimmed whitespace.
pub
/// Converts a string to a null-terminated UTF-16 wide character vector.
///
/// This is a helper for calling Windows API functions that require
/// `LPCWSTR` (pointer to null-terminated UTF-16 string).
///
/// # Parameters
///
/// - `text`: The input text to convert.
///
/// # Returns
///
/// A `Vec<u16>` containing the UTF-16 encoded string, terminated with a
/// null character (`0x0000`).
pub