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. API: CopyMemory

API: CopyMemory

Scheduled Pinned Locked Moved Visual Basic
tutorialvisual-studiojsonperformancehelp
4 Posts 4 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.
  • M Offline
    M Offline
    mihei89
    wrote on last edited by
    #1

    Hi, users! Please, tell me, how to use API function CopyMemory! For example, how to read memory address F000:FFF5 contained 8 bytes? After this code VB IDE will be closed with error! CopyMemory MyVar, &FFFF5, &8 This snippet I was see at one of VB sites. Mihei89

    J D H 3 Replies Last reply
    0
    • M mihei89

      Hi, users! Please, tell me, how to use API function CopyMemory! For example, how to read memory address F000:FFF5 contained 8 bytes? After this code VB IDE will be closed with error! CopyMemory MyVar, &FFFF5, &8 This snippet I was see at one of VB sites. Mihei89

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      Check out this link.

      Best, Jun

      1 Reply Last reply
      0
      • M mihei89

        Hi, users! Please, tell me, how to use API function CopyMemory! For example, how to read memory address F000:FFF5 contained 8 bytes? After this code VB IDE will be closed with error! CopyMemory MyVar, &FFFF5, &8 This snippet I was see at one of VB sites. Mihei89

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        My first question would be what are you trying to do with it? Since the proc is switched to 32-bit flat addressing, the segment and offset address you specified doesn't have any meaning. Also, you can't just read any memory you want from anywhere. Various areas are protected, such as the kernel. And, each process get's it's own address space, essentially making it think it's the only one running on the system.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        1 Reply Last reply
        0
        • M mihei89

          Hi, users! Please, tell me, how to use API function CopyMemory! For example, how to read memory address F000:FFF5 contained 8 bytes? After this code VB IDE will be closed with error! CopyMemory MyVar, &FFFF5, &8 This snippet I was see at one of VB sites. Mihei89

          H Offline
          H Offline
          hannesHTG
          wrote on last edited by
          #4

          Have a look here : http://www.codeproject.com/vb/net/netcopymemorysample.asp[^] HTG codeguru.com Article Reviewer - > http://www.codeguru.com/forum/member.php?u=56188

          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