mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2025-10-16 21:51:18 +08:00
3.18.4 virtual private network
This commit is contained in:
14
example/dll/dll.cpp
Normal file
14
example/dll/dll.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
#include <windows.h>
|
||||
|
||||
using namespace std;
|
||||
typedef void (*pRun)(const char *);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
HMODULE dll = LoadLibraryA("openp2p.dll");
|
||||
pRun run = (pRun)GetProcAddress(dll, "RunCmd");
|
||||
run("-node 5800-debug2 -token YOUR-TOKEN");
|
||||
FreeLibrary(dll);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user