I want to run the app in silent mode by passing in a parameter, otherwise I will show the window.
If you have an MFC CWnd based display then CWnd::ShowWindow(SW_HIDE); If you are using just win32 then ShowWindow(hWnd, SW_HIDE);
CWnd
CWnd::ShowWindow(SW_HIDE);
ShowWindow(hWnd, SW_HIDE);
Other things people do depending on your goals