//After opening an Untitled Notepad, it changes the title of the Notepad Window
#include <Windows.h> int main() { HWND notepad=FindWindow(NULL, "Untitled - Notepad"); if(notepad) SendMessage(notepad,WM_SETTEXT,0,(LPARAM)"Message Recieved"); else MessageBox(0,"notepad ain't krap!","Report",MB_OK); return 0; }