How can I recieve a windows Width, Height, Top, Left, by just knowing it's caption or hWnd ?

And how can I resize a window to any Height, Width, Top, Left, that I want, by just knowing the windows hWnd or Caption ?

The Windows is not part of my program, like, how do I resize Windows Explorer, from within my program, and know it's current size ?

Please help me.