Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to use VirtualQueryEx in vb.net

how to use VirtualQueryEx in vb.net

Scheduled Pinned Locked Moved Visual Basic
helpcsharpperformancetutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lucdt
    wrote on last edited by
    #1

    Hi all, I have a project with VirtualQueryEx in vb.net. Some line of My code here : ============= Public Structure MEMORY_BASIC_INFORMATION Public BaseAddress As Long Public AllocationBase As Long Public AllocationProtect As Long Public RegionSize As Long Public State As Long Public Protect As Long Public Type As Long End Structure Public Declare Function VirtualQueryEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Long, ByRef lpBuffer As MEMORY_BASIC_INFORMATION, ByVal dwLength As Integer) As Integer processHandle = OpenProcess(PROCESS_ALL_ACCESS, 0, m_ReadProcess.Id) Dim mbi As New MEMORY_BASIC_INFORMATION VirtualQueryEx(processHandle, addr, mbi, Marshal.SizeOf(mbi)) ============== But, VirtualQueryEx not working in vb.net . Pls, help me fix error or give me some advices. Thank you alot Best regard

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups