Best way would probably be to do
SendMessage(mainFormHandle, WM_USER, 0, 0)
Disinguish between different events you want to signal by using WM_USER + 1, WM_USER + 2 etc.
Or, if you want to be able to pass arbitrary strings, just pass a pointer to one in the wparam/lparam parameter.