Hero
March 10th, 2005, 04:53
Hi all
I get some strange(perhaps for me) result when I using GetWindowLong , SetWindowLong.
See this code:
My problem is that shown handle is not in current process of application,and its
process is compeletly separated from current application process.
Then why I can set that handle's window's WinProc in that process to a WinProc in my Application?????
I think the processes' memory are isolated from each other and they can't access
each one in normal why,Then why this work?
I using Windows CE 4.2 for my test.
sincerely yours
I get some strange(perhaps for me) result when I using GetWindowLong , SetWindowLong.
See this code:
Quote:
OldWindowProc = (WNDPROC)GetWindowLong(hwnd,GWL_WNDPROC); SetWindowLong(hwnd,GWL_WNDPROC,(long)(CProcessIdDlg::WindowProc)); |
My problem is that shown handle is not in current process of application,and its
process is compeletly separated from current application process.
Then why I can set that handle's window's WinProc in that process to a WinProc in my Application?????
I think the processes' memory are isolated from each other and they can't access
each one in normal why,Then why this work?
I using Windows CE 4.2 for my test.
sincerely yours