VOIDStartMain(){LPWSTR*szArglist;intnArgs;inti;szArglist=CommandLineToArgvW(GetCommandLineW(),&nArgs);if(NULL==szArglist){wprintf(L"CommandLineToArgvWfailed\n");return;}else{for(i=0;i<nArgs;i++){CStringstrTemp;strTemp.Format(_T("%s"),szArglist[1]);if(strTemp==_T("1"))StartPrintServer();if(strTemp==_T("2"))StarUserManage();}//释放CommandLineToArgvW参数占用的内存.LocalFree(szArglist);return;}}