How do I do this using the API? I'm stuck...
Printable View
How do I do this using the API? I'm stuck...
I don't quite understand what you are trying to do, or what you are after.
Could you give some more details please?
You cannot do that - end of the story
It is, some programs like game trainers do this
VisBas:
You can get information on another App using SystemWide Hooks.
These can ONLY be implemented with a C++ DLL.
There are 15 different type of hooks that I know of.
The Training programs you mention use what are called CBT hooks.
There is a book for VB programmers that address a lot of these
issues. As I recall the title is "SubClassing and Hooks in Visual Basic" but don't hold me to the exact title. I believe the publisher is OReilly.
A ok, can you please explain these hooks so that I can get a picture of what a must do?
That very much depends on what information you are after. You can get information about the public part of an application - the window, it's child windows, etc. by using a number of built in API calls...Quote:
You can get information on another App using SystemWide Hooks.
The WH_CBT hook gets called when an app. event occurs (a window is created, focussed, loses focus or destroyed) that may be of use.
However, the question really is too vague - what application and what memory are you after?
TIA,
Duncan
Anyway, you cannot hook another process with VB, with the exception of a WH_JOURNALRECORD hook, which probably does not do what you want.
Can you open "\Device\PhysicalMemory" like a file? Might only exist on NT+, and on my machine security is set to Administrators and System limited access only
What i'm trying to do is to access and edit the program's variables. For example, you have 100 health in a game. I would like to be able to edit that health variable while the game is running. It's ok if it's not possible with VB, but it would help if someone explains on how to do this in C++
You cannot change a processes memory with a hook.
Not with VB and not with C++.
If the game is run on windows 9x or windows me, you could change the memory, but the problem is to find out on which memory location the variable is stored. I don't think it is possible.
very possible to do what you want using game trainer...search for game trainers they are made for finding the memory offset, and they will automatically change them back to 100 health whenever the varaible changes from 100...
also anyone understand how hackers use hooks in counterstrike
i know all the cheats are based of these hooks
you can download c++ source for the biggest hook
at
www.ogc-cheats.com
i wanna understand how hooks work but i dont have c++
Let me say, ur an ass for attempting to do this...
And quite frankly, if you distribute such a program against the wrong game publisher, you might face a hefty lawsuit if your messing with online play.