1、自动启动
PROCESS_INFORMATION lpProcessInformation;
STARTUPINFO startupinfo;
memset(&startupinfo,0,sizeof(STARTUPINFO));
memset(&lpProcessInformation,0,sizeof(PROCESS_INFORMATION));
startupinfo.cb = sizeof(STARTUPINFO);
startupinfo.dwFlags = STARTF_FORCEOFFFEEDBACK;
startupinfo.dwX = 0;
startupinfo.dwY = 0;
startupinfo.lpDesktop = NULL;
startupinfo.lpReserved = NULL;
startupinfo.lpReserved2 = NULL;
startupinfo.lpTitle = NULL;
CreateProcess(_T("H:\\Install files\\QQ\\QQProtect\\Bin\\QQProtect.exe"), NULL, NULL, NULL, FALSE,
NORMAL_PRIORITY_CLASS, NULL, NULL, &startupinfo, &lpProcessInformation);