I posted before but looks like that post is long gone. I also didnt describe the problem very well so here i will go at another attempt.
I am using DLL Injection to do a system-wide WriteProcessMemory Hook using Microsoft Detours. My hook works, because I get the desired change in the function but there is one problem that I do not understand why it is occuring. Everytime I initiate the hook, explorer.exe seems to crash. That is the only program that crashes and I do not know why. Would anyone know why it would crash?
I want to try a different method. Specifically on hooking the export. Would anyone know how I would do a hook on the WriteProcessMemory Export in kernel32?
Any help to my two questions would be appreciated. I'll post some code if you need it.
I had an assignment due in my class(Don't Worry it is over now, however I had to turn it in incomplete) I want to finish it up for the learning experience my class is a 100 level class at my college and it is programming in C++.
How long have you been writing code for ? This is a very confusing question, because the answer seems to be so simple. Assuming that CArielAPI is a class, you need to include the header it was defined in so it's visible where you want to create it, then you just plain declare it.
Perhaps you need to explain some more ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Reading the memory in other applications can be quite useful sometimes. It is especially useful for writing trainers.
Now, I have successfully located a couple of variables in my target application. Those variables are mostly strings allocated directly on the stack or through a call to malloc with a constant length. These constant allocations yields constant addresses for my strings. Thus, they can easily be read from my trainer-application using ReadProcessMemory.
However, when I use dynamic memory allocation the offsets between my variables can be of any size. I need to somehow calculate exactly where in the memory my variables will be located. Also, it would be good to know how many bytes one should read (the length of allocated strings etc).
How can I do that? Note that I'm only interested in _reading_ these values. I know there are ASM/Soft-Ice gurus in here! Could you please point me in the right direction =)
using SetupDiXxx functions:
I have got a DevicePath
then use function GetLogicalDrives get all removable drives : A:\, I:\.
Then I feed all these removable drive mountpoint to function GetVolumeNameForVolumeMountPoint
but the volumeName returned from the function:
doesn't match with the device path.
So how can I determine which removable drive in the list is the one for the USB flash drive??? I need exact drive letter for the USB flash drive plugged into the PC in order to access files stored in it.
Is it acceptable or good programming practice to have vectors nested inside each other within one big vector? For example, say I wanted to record inquiries for a business. Say there were only six type of inquiries and, of course, they can occur in one of 12 months, and each month has 30 or so days.
Is it ok to put an object call m_inqInquiry into a vector m_vDays into a vector m_vMonths, then put m_vMonths into a vector call m_vInquiries.
This proposed system would work as follows when a new inquire is created: The m_vInquiries would find the appropriate month vector based on the current month, then in the appropriate m_vMonths vector it would find the appropriate m_vDays vector, then in the particular day m_vDays vector it would add an m_inqInquiry object.
Is that consider bad practice? Is it ok to add more nested levels?
Thank you very much for your answer, I appreciate that. I would use SQL or SQLite, but there might be a substantial comment section which would contain the observations (i.e. at least several paragraphs). So my plan was to store it in a CString variable. I am not sure if SQL or SQL lite can do hold that much information in a field. What do you think?
Wow!!!! I did not know that, this has the potential to radically change the entire design of my software. I am soooo excited! I always thought that such databases could only handle about 250 characters or something in a text field. I guess I just deduced that from using MS Access. My last question: within the comment field, is it possible to store format variablse (i.e. paragraph indentation, a double carriage return for spacing, etc...)? If it's possible I'll find out how I just need to know if that's possible and the direction to look to.