添加系统信息查看器代码

This commit is contained in:
zsyg
2025-06-28 11:58:36 +08:00
committed by GitHub
parent dcecf58f23
commit 021e89e3a4
24 changed files with 835 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#ifndef UTILS_H
#define UTILS_H
#include <windows.h>
// 安全释放内存
#define SAFE_FREE(ptr) if (ptr) { free(ptr); ptr = NULL; }
// 宽字符转多字节字符串
char* wchar_to_mb(const wchar_t* wstr);
// 多字节字符串转宽字符
wchar_t* mb_to_wchar(const char* str);
// 获取当前时间字符串
char* get_current_time_string();
#endif // UTILS_H