2020-01-02 12:44:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace MWR::Loader::UnexportedWinApi
|
|
|
|
{
|
2020-01-14 10:05:17 +00:00
|
|
|
/// Wrapper around private ntdll!LdrpHandleTlsData
|
|
|
|
/// Initializes static data from .tls section
|
|
|
|
/// @param baseAddress of PE file image
|
|
|
|
/// @returns value returned from ntdll!LdrpHandleTlsData
|
2020-01-13 16:04:06 +00:00
|
|
|
DWORD LdrpHandleTlsData(void* baseAddress);
|
|
|
|
|
|
|
|
#ifdef _M_IX86
|
2020-01-14 10:05:17 +00:00
|
|
|
/// Wrapper around private ntdll!RtlInsertInvertedFunctionTable
|
|
|
|
/// Adds inverted function table required for Exception Handling
|
|
|
|
/// @param baseAddress of PE file image
|
|
|
|
/// @param sizeOfImage size of PE file image
|
2020-01-13 16:04:06 +00:00
|
|
|
void RtlInsertInvertedFunctionTable(void* baseAddress, DWORD sizeOfImage);
|
|
|
|
#endif // _M_IX86
|
2020-01-02 12:44:51 +00:00
|
|
|
}
|