How to read virtual memory paging file size using 'PagedMemorySize64'

John500
John500 used Ask the Experts™
on
Below are the results of calling GetProcess():

Process p = GetProcess(hostname, processName);

PagedMemorySize = p.PagedMemorySize64.ToString();

480505856

The above figure is in bytes and the conversion to megabytes is 458.24609375 .  I got this from using a tool online.  What calculation would I use in the program to make this sensible?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2005
Commented:
480505856 / 1024 / 1024 = 458.24609375

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial