Added a method to get HWND for current process. Removed some #defines which are no longer necessary.