Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8110591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:48:32+00:00 2026-06-06T01:48:32+00:00

If I can hook into a Win32 process, will I be able to do:

  • 0

If I can hook into a Win32 process, will I be able to do:

  • Read variables from inside a Class inside the process?

  • I have a full source code for the Win32 app above, can I use that as reference for this subject?

Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:48:33+00:00Added an answer on June 6, 2026 at 1:48 am

    Yes. As soon as your module is hooked into the process, you share the same address space. That means memory that the process has allocated (e.g. for class instances) will be accessible to you.

    If you know the offset of the class instance, then you can either:

    • cast this memory address to a pointer to the class (provided you have the class header included)
    • use offsets from this memory address to access the class’s members.

    See Traversing the Module List on MSDN. Once you have the MODULEENTRY32 of the process you wish to “hook”, you can use the modBaseAddr as a base for your offsets. For example if you know that a global variable which points to a class instance is at 0x000AD421, you can do:

    ClassName *pClassBase = moduleEntry->modBaseAddr + 0x000AD421;
    pClassBase->UseSomeFunctions();
    

    or

    unsigned char *pClassBase = moduleEntry->modBaseAddr + 0x000AD421; // if we don't know the exact definition of the class we want to play with
    float flMemberValue = *reinterpret_cast<float*>((unsigned char *)pClassBase + 24); // float member value at offset 24
    // value of member is flMemberValue
    
    *reinterpret_cast<float*>((unsigned char *)pClassBase + 24) = 15.25; // setting the same member value to 15.25.
    

    As stated by other commenters, finding the offset of the class base is the hardest part of this process. However if you have the class definitions handy, this is essentially the only piece of work you have to do (i.e. you don’t also have to find the class member offsets, too).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway that I can hook into the tab completion for bash from
I can't do use git post-update hook to pull into my website folder, from
Does the iPhone browser have special events that I can hook into with Javascript?
Is there something I can hook into that will fire every time a method
I have a PHP app which can hook into multiple backends (currently MySQL or
Can we use the addTarget function to hook into the UIControlEventTouchUpInside event with the
Id there an event I can hook into? I've looked through the docs, and
I'm building a generic UI that can hook into a range of underlying object
How can I hook into MobileMusicPlayer with MobileSubstrate and theos. In every example I
I can inject a hook into running processes to catch when they create, destroy,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.