Advertisement
Guest User

fail_;.;

a guest
Aug 24th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string>
  3.  
  4. struct game
  5. {
  6. bool proxy;
  7. int pid;
  8. int x;
  9. int y;
  10. int wid;
  11. int hei;
  12. int hwnd;
  13. int port;
  14. std::string ip;
  15. std::string title;
  16. };
  17.  
  18. void __declspec(dllexport) pluginload(game*gdata)
  19. {
  20. FILE *fh = fopen("./proxylog.txt", "a");
  21. fprintf(fh, "Proxy Loaded!");
  22. fclose(fh);
  23. }
  24. void __declspec(dllexport) pluginrun(game*gdata)
  25. {
  26. FILE *fh = fopen("./proxylog.txt", "a");
  27. fprintf(fh, "Proxy Started!");
  28. fclose(fh);
  29. }
  30. void __declspec(dllexport) pluginunload(game*gdata)
  31. {
  32. FILE *fh = fopen("./proxylog.txt", "a");
  33. fprintf(fh, "Proxy Unloaded!");
  34. fclose(fh);
  35. }
  36.  
  37. /*bool export pluginrecvpacket(game*gdata, packetbuffer_length, *packet_memory_buffer_ptr)
  38. {
  39. FILE *fh = fopen("./proxylog.txt", "a");
  40. fprintf(fh, "Packet Received!");
  41. fclose(fh);
  42. }
  43. bool export pluginsendpacket(game*gdata, packetbuffer_length, *packet_memory_buffer_ptr)
  44. {
  45. FILE *fh = fopen("./proxylog.txt", "a");
  46. fprintf(fh, "Proxy Sent!");
  47. fclose(fh);
  48. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement