cmtrace-open 1.5.0

Free, open-source CMTrace replacement: Windows log viewer with ConfigMgr/SCCM, Intune, and Autopilot ESP diagnostics, DSRegCmd triage, and real-time tailing.
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::parser;

/// Parse a Windows Registry export (.reg) file and return its structured representation.
#[tauri::command]
pub fn parse_registry_file(
    path: String,
) -> Result<crate::parser::registry::RegistryParseResult, crate::error::AppError> {
    let content = parser::read_file_content(&path)?;
    let file_size = std::fs::metadata(&path).map(|m| m.len()).unwrap_or(0);
    Ok(crate::parser::registry::parse_registry_content(
        &content, &path, file_size,
    ))
}