| | |
Base address
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hi all,
we al know the preffered load address of any proj is 0x00400000 and DLL is 0x10000000. now if the OS is unable to use this address it relocates the project.
now i have a need to use the Rva+Base address of all the methods available in a class within a project. One method is reading the map file but say if u don't have the address available so relocation takes place hence the safest way is to dynamicaly obtain it
hence i want to know is there any way of obtaining the base address or the load address of a process. if at all you feel this is not a viable solution then can i obtain the current address from the mangled names like ?show@disp@@QAEXXZ for a public method show belonging to class disp as per VC++ conventions.
undname just gives the resolved name but its of no use in callin a function. so can you people just help me out
for a better idea u can refer
1)Mangled Name
2)Private Access
we al know the preffered load address of any proj is 0x00400000 and DLL is 0x10000000. now if the OS is unable to use this address it relocates the project.
now i have a need to use the Rva+Base address of all the methods available in a class within a project. One method is reading the map file but say if u don't have the address available so relocation takes place hence the safest way is to dynamicaly obtain it
hence i want to know is there any way of obtaining the base address or the load address of a process. if at all you feel this is not a viable solution then can i obtain the current address from the mangled names like ?show@disp@@QAEXXZ for a public method show belonging to class disp as per VC++ conventions.
undname just gives the resolved name but its of no use in callin a function. so can you people just help me out
for a better idea u can refer
1)Mangled Name
2)Private Access
Regards
Shouvik
Shouvik
You want the address of a function?
You can also get pointers to class methods. I have not used them so I'm not sure how they work.
C++ Syntax (Toggle Plain Text)
int foo() { // blabla return something; } // pointer to the function int (*fn)(); // set pointer fn = foo;
You can also get pointers to class methods. I have not used them so I'm not sure how they work.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
•
•
The people as codeproject.com seems to have answered your question quite adequately. I see no point in rehashing something that was already posted over there.
secondly my private access is done whereby I did not perform any malicious activities
Still after this I really thank all of those who poured in suggestions and criticisms because both are complementary.
Thanks to all for there precious time spending on this thread. Will meet you guys in some other thread
Regards
Shouvik
Shouvik
![]() |
Similar Threads
- Help me get spyware! (Viruses, Spyware and other Nasties)
- Compile errors [help] [ log ] (C++)
- passing vector to a pointer? (C++)
- Complete failure at connecting RH9 to XP via eth0 (*nix Software)
- where can i find a driver for a hitachi GD 2500 (Storage)
- No network (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: dynamic array
- Next Thread: Plz help : Multifile C programs (details included)
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






