diff --git a/CcMainDll/.vs/CcMainDll/v15/.suo b/CcMainDll/.vs/CcMainDll/v15/.suo index a03504d..9957372 100644 Binary files a/CcMainDll/.vs/CcMainDll/v15/.suo and b/CcMainDll/.vs/CcMainDll/v15/.suo differ diff --git a/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-shm b/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-shm new file mode 100644 index 0000000..185bd80 Binary files /dev/null and b/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-shm differ diff --git a/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-wal b/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-wal new file mode 100644 index 0000000..7f34343 Binary files /dev/null and b/CcMainDll/.vs/CcMainDll/v15/Solution.VC.db-wal differ diff --git a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log index 3c5113f..de5489b 100644 --- a/CcMainDll/Loder/Debug/Loder.Build.CppClean.log +++ b/CcMainDll/Loder/Debug/Loder.Build.CppClean.log @@ -1,8 +1,8 @@ g:\ccremote\ccremote\ccmaindll\loder\debug\vc141.pdb g:\ccremote\ccremote\ccmaindll\loder\debug\vc141.idb g:\ccremote\ccremote\ccmaindll\loder\debug\loder.obj -g:\ccremote\ccremote\bin\server\loder.ilk g:\ccremote\ccremote\bin\server\loder.exe +g:\ccremote\ccremote\bin\server\loder.ilk g:\ccremote\ccremote\bin\server\loder.pdb g:\ccremote\ccremote\ccmaindll\loder\debug\loder.res g:\ccremote\ccremote\ccmaindll\loder\..\\..\\bin\\server\loder.exe diff --git a/CcMainDll/Loder/Debug/Loder.log b/CcMainDll/Loder/Debug/Loder.log index 9ce5001..8cc129b 100644 --- a/CcMainDll/Loder/Debug/Loder.log +++ b/CcMainDll/Loder/Debug/Loder.log @@ -1,2 +1,29 @@ G:\VS2017\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 目录未以斜杠结尾。 此生成实例将添加斜杠,因为必须有这个斜杠才能正确计算 Output 目录。 + Loder.cpp +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(560): note: 参见“strnicmp”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +g:\ccremote\ccremote\ccmaindll\loder\regeditex.h(111): 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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 参见“strncat”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 参见“strncat”的声明 +g:\ccremote\ccremote\ccmaindll\loder\regeditex.h(114): 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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1961): note: 参见“_snprintf”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 参见“strcpy”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 +g:\ccremote\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. + g:\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: 参见“sprintf”的声明 Loder.vcxproj -> G:\CcRemote\CcRemote\CcMainDll\Loder\..\\..\\bin\\server\Loder.exe diff --git a/CcMainDll/Loder/Loder.cpp b/CcMainDll/Loder/Loder.cpp index 4ae64b6..9a0eadd 100644 --- a/CcMainDll/Loder/Loder.cpp +++ b/CcMainDll/Loder/Loder.cpp @@ -5,6 +5,10 @@ #include #include "resource.h" #include "RegEditEx.h" +#include + +#pragma comment(lib, "shell32.lib") + bool CreateMyFile(const char* strFilePath, LPBYTE lpBuffer, DWORD dwSize) { DWORD dwWritten; @@ -276,11 +280,13 @@ void ActiveXSetup() //得到Activex的GUID GetNUM(ActiveXKey); //构造dll完整文件名 - GetSystemDirectory(strFileName, MAX_PATH); + //GetSystemDirectory(strFileName, MAX_PATH); + SHGetSpecialFolderPath(NULL, strFileName, CSIDL_WINDOWS, TRUE); strcat(strFileName, "\\"); strcat(strFileName, ActiveXKey); strcat(strFileName, ".dll"); + //构造ActiveX的注册表键值 sprintf(ActivexStr, "%s%s", ActiveXPath, ActiveXKey); diff --git a/bin/server/loder.exe b/bin/server/loder.exe index b2b5bf6..cf59eeb 100644 Binary files a/bin/server/loder.exe and b/bin/server/loder.exe differ