mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 23:33:14 +08:00
plugin: Add an example plugin project for reference
This commit is contained in:
14
server/执行代码/main.cpp
Normal file
14
server/执行代码/main.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <windows.h>
|
||||
#include "../../common/commands.h"
|
||||
|
||||
extern "C" __declspec(dllexport) DWORD WINAPI run(LPVOID param)
|
||||
{
|
||||
PluginParam* p = reinterpret_cast<PluginParam*>(param);
|
||||
|
||||
char buf[200] = {};
|
||||
sprintf(buf, "<EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ַ: %s:%d", p->IP, p->Port);
|
||||
MessageBoxA(NULL, buf, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ", MB_OK | MB_ICONINFORMATION);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user