![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC
文章平均质量分 81
gu814028677
这个作者很懒,什么都没留下…
展开
-
VC编码转换
2008-11-4: 使用MultiByteToWideChar和WideCharToMultiByte写的4个ANSI Unicode UTF-8 相互转换的函数。2008-11-5: 使用C语言标准库mbstowcs和wcstombs写的w2m和m2w两个函数,分别对应ANSI Unicode 相互转换。2008-11-8: 包装一下 ANSI UTF-8 。#include转载 2016-12-07 20:35:31 · 418 阅读 · 1 评论 -
Windows下用C语言获取系统的CPU利用率、内存使用率、硬盘使用率
#include #include #include #include #define DIV 1024 #define WIDTH 7 #define GB(x) (((x).HighPart << 2) + ((DWORD)(x).LowPart) / 1024.0 / 1024.0 / 1024.0) #pragma warning(disabl转载 2016-12-16 10:23:49 · 7132 阅读 · 0 评论 -
禁止Windows程序自适应比例缩放
1.调用SetProcessDPIAwareHINSTANCE hUser32 = LoadLibrary(L"User32.dll");if (hUser32) { typedef BOOL (WINAPI* LPSetProcessDPIAware)(void); LPSetProcessDPIAware pSetProcessDPIAware = (...原创 2019-04-28 14:31:06 · 2307 阅读 · 1 评论