I believe that example is from a program using MFC, since MFC's CWnd class has a member m_hWnd containing the class's HWND.
The first param for ShellExecute is the handle to a window. If you don't have any, pass NULL.