I use the ShellExecute to execute notepad, and the return from that api is the HANDLE to the notepad, the handle is in a HMODULE, but after i try to use SendMessage, and give it the handle as the first argument, i get problems.
SendMessage wants a HWND but ShellExecute wants a HMODULE...
I just want to use SendMessage to "type" text on notepad.Code:HMODULE hWnd;
//HWND hWnd;
hWnd = ShellExecute(NULL,"open","Notepad.exe",NULL,NULL,SW_MAXIMIZE);
//SendMessage(hWnd,WM_SETTEXT, 0, 0);

