Advertisement
FlyFar

inject/src/LoadLibraryR.h

Sep 24th, 2023
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.48 KB | Cybersecurity | 0 0
  1. //===============================================================================================//
  2. // Copyright (c) 2012, Stephen Fewer of Harmony Security (www.harmonysecurity.com)
  3. // All rights reserved.
  4. //
  5. // Redistribution and use in source and binary forms, with or without modification, are permitted
  6. // provided that the following conditions are met:
  7. //
  8. //     * Redistributions of source code must retain the above copyright notice, this list of
  9. // conditions and the following disclaimer.
  10. //
  11. //     * Redistributions in binary form must reproduce the above copyright notice, this list of
  12. // conditions and the following disclaimer in the documentation and/or other materials provided
  13. // with the distribution.
  14. //
  15. //     * Neither the name of Harmony Security nor the names of its contributors may be used to
  16. // endorse or promote products derived from this software without specific prior written permission.
  17. //
  18. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  19. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  20. // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  21. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  22. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  23. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  25. // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  26. // POSSIBILITY OF SUCH DAMAGE.
  27. //===============================================================================================//
  28. #ifndef _REFLECTIVEDLLINJECTION_LOADLIBRARYR_H
  29. #define _REFLECTIVEDLLINJECTION_LOADLIBRARYR_H
  30. //===============================================================================================//
  31. #include "ReflectiveDLLInjection.h"
  32.  
  33. DWORD GetReflectiveLoaderOffset( VOID * lpReflectiveDllBuffer );
  34.  
  35. HMODULE WINAPI LoadLibraryR( LPVOID lpBuffer, DWORD dwLength );
  36.  
  37. HANDLE WINAPI LoadRemoteLibraryR( HANDLE hProcess, LPVOID lpBuffer, DWORD dwLength, LPVOID lpParameter );
  38.  
  39. //===============================================================================================//
  40. #endif
  41. //===============================================================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement