fastfetch-sys 2.43.0

A neofetch like system information tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "memory.h"

#include <windows.h>

const char* ffDetectMemory(FFMemoryResult* ram)
{
    MEMORYSTATUSEX statex = {
        .dwLength = sizeof(statex),
    };
    if (!GlobalMemoryStatusEx(&statex))
        return "GlobalMemoryStatusEx() failed";

    ram->bytesTotal = statex.ullTotalPhys;
    ram->bytesUsed = statex.ullTotalPhys - statex.ullAvailPhys;
    return NULL;
}