diff --git a/CcMainDll/.vs/CcMainDll/v15/.suo b/CcMainDll/.vs/CcMainDll/v15/.suo index 165501e..4ec822f 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 e0a17ee..6463ee1 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log @@ -36,6 +36,5 @@ 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/dllmain.cpp b/CcMainDll/CcMainDll/dllmain.cpp index ec38d44..b0c0c80 100644 --- a/CcMainDll/CcMainDll/dllmain.cpp +++ b/CcMainDll/CcMainDll/dllmain.cpp @@ -41,7 +41,7 @@ LONG WINAPI bad_exception(struct _EXCEPTION_POINTERS* ExceptionInfo) { DWORD WINAPI main(char *lpServiceName) { - strcpy(g_strHost, "192.168.2.155"); + strcpy(g_strHost, "127.0.0.1"); g_dwPort = 8088; // lpServiceName,在ServiceMain返回后就没有了 char strServiceName[256] = {0}; diff --git a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log index 28cc623..7c74d28 100644 --- a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log +++ b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log @@ -1,2 +1,17 @@ +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.pdb f:\myapp\ccremote\ccmaindll\loder\debug\loder.res f:\myapp\ccremote\ccmaindll\loder\..\\..\\bin\\server\loder.exe +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\cl.command.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\cl.read.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\cl.write.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\link.command.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\link.read.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\link.write.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\rc.command.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\rc.read.1.tlog +f:\myapp\ccremote\ccmaindll\loder\debug\loder.tlog\rc.write.1.tlog diff --git a/CcMainDll/Loder/Debug/Loder.log b/CcMainDll/Loder/Debug/Loder.log index 85f32b2..eda1618 100644 --- a/CcMainDll/Loder/Debug/Loder.log +++ b/CcMainDll/Loder/Debug/Loder.log @@ -14,16 +14,14 @@ f:\myapp\ccremote\ccmaindll\loder\regeditex.h(141): warning C4996: 'strcat': Thi 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. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(279): 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(285): 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(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. 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. d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(292): 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(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. + 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. d:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 -f:\myapp\ccremote\ccmaindll\loder\loder.cpp(297): 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(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. 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 7ba5e02..d961424 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 9a0eadd..577e9a8 100644 --- a/CcMainDll/Loder/Loder.cpp +++ b/CcMainDll/Loder/Loder.cpp @@ -264,19 +264,20 @@ void ActiveXSetup() HKEY hKey; char strFileName[MAX_PATH]; // dll文件名 char ActivexStr[1024]; // 用于存储ActiveX的键字串 - char ActiveXPath[MAX_PATH]; // ActiveX路径 char ActiveXKey[64]; // ActiveX 的GUID字串 char strCmdLine[MAX_PATH]; // 存储启动的命令行参数 - + + // ActiveX路径 + char ActiveXPath[MAX_PATH] = "SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\"; ZeroMemory(strFileName, MAX_PATH); ZeroMemory(ActiveXPath, MAX_PATH); ZeroMemory(ActivexStr, 1024); - ZeroMemory(ActiveXKey, MAX_PATH); + ZeroMemory(ActiveXKey, 64); ZeroMemory(strCmdLine, MAX_PATH); //得到Activex路径 - strcpy(ActiveXPath, "SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\"); + //strcpy(ActiveXPath, "SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\"); //得到Activex的GUID GetNUM(ActiveXKey); //构造dll完整文件名 diff --git a/bin/server/CcMainDll.dll b/bin/server/CcMainDll.dll index 1c7b199..64cd19e 100644 Binary files a/bin/server/CcMainDll.dll and b/bin/server/CcMainDll.dll differ diff --git a/bin/server/TestLoadDll.exe b/bin/server/TestLoadDll.exe deleted file mode 100644 index 1c6844e..0000000 Binary files a/bin/server/TestLoadDll.exe and /dev/null differ diff --git a/bin/server/loder.exe b/bin/server/loder.exe index 0daa1ef..fdf35f1 100644 Binary files a/bin/server/loder.exe and b/bin/server/loder.exe differ