locked
Pages allocated to a process RRS feed

  • Question

  • Hi

    I  need to inspect the pages allocated to a process at an instance ,

    workingset gives me the max and min value ,
    Tuesday, May 23, 2006 4:13 PM

Answers

  • Check the Win32 API help or Google for CreateToolhelp32Snapshot, Module32First/Next and VirtualQueryEx
    Thursday, May 25, 2006 11:33 PM

All replies

  •  

    Dim Proc As Process() = Process.GetProcesses

    TextBox1.ScrollBars = ScrollBars.Vertical

    For i As Short = 0 To Proc.Length - 1

    If Proc(i).Id > 4 Then

    ' paged memory is virtual memory

    TextBox1.Text &= Proc(i).ProcessName & " " & _

    Proc(i).PagedMemorySize64 / 1024 & " Bytes." & vbCrLf

    End If

    Next

    Tuesday, May 23, 2006 5:15 PM
  • Hi Thanks for the help

    Can i get the equivalent code on  C++ or C so  that iu can run it and check

    thanks
    Thursday, May 25, 2006 9:47 PM
  • Moving to the C++ forum since you probably have better luck getting someone to give you an answer for C/C++ here...

    Best regards,
    Johan Stenberg

    Thursday, May 25, 2006 11:12 PM
  • Check the Win32 API help or Google for CreateToolhelp32Snapshot, Module32First/Next and VirtualQueryEx
    Thursday, May 25, 2006 11:33 PM
  • Johan, this is not a C++ language issue.  I recommended he ask his question in the following newgroup (specific to kernel issues, too):

    http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.win32.programmer.kernel&lang=en&cr=US

     

    Friday, May 26, 2006 3:11 AM