mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
ea3d678d22
refactor(core): 移除未使用的get_app_context函数 refactor(os_env): 修改backup_registry函数以返回错误码并备份到指定目录 refactor(path_manager): 增强路径管理函数的错误处理
16 lines
268 B
C
16 lines
268 B
C
#ifndef OS_ENV_H
|
|
#define OS_ENV_H
|
|
|
|
#include "utils/error_code.h"
|
|
|
|
// 检查是否以管理员权限运行
|
|
int check_admin(void);
|
|
|
|
// 检查路径是否有效
|
|
int is_path_valid(const char *path);
|
|
|
|
// 备份注册表
|
|
ErrorCode backup_registry(void);
|
|
|
|
#endif // OS_ENV_H
|