I want to encapsulate IPC into a dll, so I dont want to import a handle from other window. Instead, I created a window in the dll to receive message, but when i send WM_COPYDATA from other process, the process hung on SendMessage. What's matter?
appreciate for any advice.

BTW: the window I created is CWindow and it's parent is NULL.