am using following code total physical memory in qb64.
how total physical memory of graphics adapter?
contents of mem.h
#include<windows.h> #include<stdio.h> #include<tchar.h> uint64 totalphysicalmem (); uint64 totalphysicalmem () { memorystatusex statex; statex.dwlength = sizeof (statex); globalmemorystatusex (&statex); return statex.ulltotalphys; }
contents of mem.bas
rem mem.bas source: declare library "mem" function totalphysicalmem~&& end declare print "total physical memory: " print totalphysicalmem end
Comments
Post a Comment