#include <Windows.h>
#include <tchar.h> int WINAPI _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
ShellExecute(NULL,_T("open"),_T("www.baidu.com"),NULL,NULL,SW_SHOWNORMAL);
//打开百度
ShellExecute(NULL,_T("open"),_T("D:\\1.txt"),NULL,NULL,SW_SHOWNORMAL);
//打开目录
ShellExecute(NULL,L"open", L"mailto:", NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL,_T("open"),_T("mailto:12345@qq.com"), NULL, NULL, SW_SHOWNORMAL);
//打开邮箱 return ;
}