CWinApp::EnableShellOpen
Visual Studio 2012
Call this function, typically from your InitInstance override, to enable your application's users to open data files when they double-click the files from within the Windows File Manager.
void EnableShellOpen( );