刘收获

导航

12 2017 档案

进程工作集WorkingSet (PSAPI 01)
摘要:0x01 相关API 1.QueryWorkingSet 得到刚加入指定进程工作集的页信息 参数: 返回值 成功返回非零值。失败返回0。可调用GetLastError得到错误信息。 2.GetWsChanges 检索自上次调用此函数或InitializeProcessForWsWatch函数以来已添 阅读全文

posted @ 2017-12-27 12:56 沉疴 阅读(1686) 评论(0) 推荐(0) 编辑

GetSystemInfo 和 GlobalMemoryStatus获取系统信息,内存信息
摘要:// GetSystemInfo.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include using namespace std; int main() { SYSTEM_INFO systemInfo; GetSystemInfo(&systemInfo); cout #include us... 阅读全文

posted @ 2017-12-22 16:06 沉疴 阅读(1596) 评论(0) 推荐(0) 编辑

C++11智能指针 share_ptr,unique_ptr,weak_ptr用法
摘要:0x01 智能指针简介 所谓智能指针(smart pointer)就是智能/自动化的管理指针所指向的动态资源的释放。它是存储指向动态分配(堆)对象指针的类,用于生存期控制,能够确保自动正确的销毁动态分配的对象,防止内存泄露。它的一种通用实现技术是使用引用计数(reference count)。 使用 阅读全文

posted @ 2017-12-14 11:55 沉疴 阅读(708) 评论(0) 推荐(0) 编辑