Re: Noob, learning how to use dll's.
- Posted by Michael J. Sabal <m_sabal at yah?o.?om> Jun 12, 2008
- 794 views
See http://msdn.microsoft.com/en-us/library/aa366589(VS.85).aspx for GlobalMemoryStatusEx. DLL = open_dll("kernel.dll") GMSx = define_c_func(DLL,"GlobalMemoryStatusEx",{C_POINTER},C_INT) mem = allocate(64) result = c_func(GMSx,{mem}) free(mem) I can't remember the exact size of DWORD and DWORDLONG, I think it's 4 and 8. You'll have to peek(mem+offset,num_bytes) to get the information you want, and multiply it out to convert it from a sequence of bytes to a number. Hope this helps, Mike