Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string>
- struct game
- {
- bool proxy;
- int pid;
- int x;
- int y;
- int wid;
- int hei;
- int hwnd;
- int port;
- std::string ip;
- std::string title;
- };
- void __declspec(dllexport) pluginload(game*gdata)
- {
- FILE *fh = fopen("./proxylog.txt", "a");
- fprintf(fh, "Proxy Loaded!");
- fclose(fh);
- }
- void __declspec(dllexport) pluginrun(game*gdata)
- {
- FILE *fh = fopen("./proxylog.txt", "a");
- fprintf(fh, "Proxy Started!");
- fclose(fh);
- }
- void __declspec(dllexport) pluginunload(game*gdata)
- {
- FILE *fh = fopen("./proxylog.txt", "a");
- fprintf(fh, "Proxy Unloaded!");
- fclose(fh);
- }
- /*bool export pluginrecvpacket(game*gdata, packetbuffer_length, *packet_memory_buffer_ptr)
- {
- FILE *fh = fopen("./proxylog.txt", "a");
- fprintf(fh, "Packet Received!");
- fclose(fh);
- }
- bool export pluginsendpacket(game*gdata, packetbuffer_length, *packet_memory_buffer_ptr)
- {
- FILE *fh = fopen("./proxylog.txt", "a");
- fprintf(fh, "Proxy Sent!");
- fclose(fh);
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement