How to return a pointer, to another window?

If i just return, for example


return Pointer_name;

Then change something in another window,it doesn't affect the orginal one, when i change anything, it seams like another copy.