Advertisement
FlyFar

inject/src/Output.h

Sep 24th, 2023
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | Cybersecurity | 0 0
  1. /*
  2. * To Get output from the DLL
  3. */
  4. #pragma once
  5.  
  6. #include <windows.h>
  7. #include <string>
  8. #include <sstream>
  9. #define BUFFER 1024
  10.  
  11. /* Run this function before Injecting the DLL
  12. * This function runs PIPETHREAD so that you may read the dll output later
  13. */
  14. void Prepare();
  15.  
  16. /*
  17. * Thread that runs if a bool switch is true
  18. * this thread runs the named pipe server and receives data from the dll
  19. */
  20. DWORD WINAPI PIPETHREAD(LPVOID lpParameter);
  21.  
  22. /*
  23. * Return Output as String
  24. */
  25. std::string ReadReflectiveDllOutput(int Timeout);
  26.  
  27. /*
  28. * Check if the Thread is still running
  29. */
  30. BOOL isPipeThreadRunning();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement