Results 1 to 3 of 3

Thread: Finding the Length of a procedure

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    how do you find the length in bytes of a procedure, ie if AddressOf is the equivilent of VarPtr what's the equivilent of LenB

    (I know I asked this yesterday)

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    8

    what?

    umm, could you be clearer? anywho, all pointers in win32 platforms are 4 bytes

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    What I'm trying to do is copy a procedure into the memory of a foreign process so I can subclass a window in another app. I've managed to copy a procedure into a byte array and run that but I'm never sure how much to copy, I need the length of the procedure, not the length of its pointer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width