Actually I am hooking memory management functions but one problem that confronts me is that I am unable to get the pointer name for which memory is being allocated in my hooked function. I mean... suppose Myfunction() allocates memory to a pointer Myptr through new operator as geven below.
Myfunction() { int * Myptr = new int; }
Now here I want that when My hooked function "Mynew" is called for memory allocation, it should know the name of the pointer Myptr for whom memory is being allocated.
Kindly if someone could help me in this regard.