摘要:
Qt下调用windows api方法很简单,包含"windows.h"就好!#include <QApplication>#include "windows.h"#include "stdio.h"#include <QDebug>int main(int argc, char *argv[]){ QApplication a(argc, argv); MEMORYSTATUS mem;//定义一个内存状态变量 DWORD MemTotal,MemFree,VMemTotal,VMemFree;//存储内存状态 阅读全文