zoukankan      html  css  js  c++  java
  • windows 查看内存

    MEMORYSTATUSEX statex;

    statex.dwLength = sizeof (statex);

    GlobalMemoryStatusEx (&statex);

    _tprintf (TEXT("There is %*ld percent of memory in use. "),
    WIDTH, statex.dwMemoryLoad);
    _tprintf (TEXT("There are %*I64d total KB of physical memory. "),
    WIDTH, statex.ullTotalPhys/DIV);
    _tprintf (TEXT("There are %*I64d free KB of physical memory. "),
    WIDTH, statex.ullAvailPhys/DIV);
    _tprintf (TEXT("There are %*I64d total KB of paging file. "),
    WIDTH, statex.ullTotalPageFile/DIV);
    _tprintf (TEXT("There are %*I64d free KB of paging file. "),
    WIDTH, statex.ullAvailPageFile/DIV);
    _tprintf (TEXT("There are %*I64d total KB of virtual memory. "),
    WIDTH, statex.ullTotalVirtual/DIV);
    _tprintf (TEXT("There are %*I64d free KB of virtual memory. "),
    WIDTH, statex.ullAvailVirtual/DIV);

    // Show the amount of extended memory available.

    _tprintf (TEXT("There are %*I64d free KB of extended memory. "),
    WIDTH, statex.ullAvailExtendedVirtual/DIV);

  • 相关阅读:
    2015多校1006.First One
    2015多校.MZL's endless loop(欧拉回路的机智应用 || 构造)
    LUXURY 8
    矩阵快速幂模板
    博弈入门
    cf558c(bfs)
    LUXURY 7
    dfs序 + RMQ = LCA
    双端队列
    UVa-401 Palindromes
  • 原文地址:https://www.cnblogs.com/thbCode/p/4563811.html
Copyright © 2011-2022 走看看