提交 e91d061b 编写于 作者: 诺离's avatar 诺离 🎨

返回数据监听,替换返回数据,重写返回数据

上级 5956c378
B// efd.cpp: 定义 DLL 应用程序的导出函数。
......
......@@ -17,4 +17,5 @@ sslSetKey
SetUpstreamGatewayTo
UpdateConfig
customCertificate
RecvRepeatHtml
\ No newline at end of file
RecvRepeatHtml
RecvResetHtml
\ No newline at end of file
using namespace Fiddler;
struct EFD_pmMessage {
int type;
int count;
char* pmdata1;
char* pmdata2;
};
#pragma once
typedef void (WINAPI *CallbackFun)(unsigned int, unsigned int adder);
typedef void (WINAPI *RecvCallbackFun)(EFD_pmMessage* pmmessage,char * url,char * head,char * cookie,unsigned int raw, unsigned int rawLen);
extern "C" _declspec(dllexport) int __stdcall InitFiddler(int port, int callback);
extern "C" _declspec(dllexport) void __stdcall CloseFiddler();
extern "C" _declspec(dllexport) void __stdcall AutoStartFiddlerProxy(bool start);
......@@ -19,6 +28,13 @@ extern "C" _declspec(dllexport) void __stdcall sslSetKey(char *);
extern "C" _declspec(dllexport) void __stdcall SetUpstreamGatewayTo(char *);
extern "C" _declspec(dllexport) void __stdcall UpdateConfig(int);
extern "C" _declspec(dllexport) void __stdcall customCertificate(char*);
//extern "C" _declspec(dllexport) void __stdcall RecvRepeatHtml(unsigned int, char *,char*);
extern "C" _declspec(dllexport) int __stdcall RecvRepeatHtml(EFD_pmMessage*, char*, char*);
extern "C" _declspec(dllexport) int __stdcall RecvResetHtml(EFD_pmMessage*, char*);
#define RECV_REPLACE_URL 2001
#define RECV_REPLACE_BODY 2002
#define RECV_RESET_BODY 2003
#define RECV_RESET_STATE 2004
#define RECV_RESET_COOKIE 2005
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册