C3/Src/CebuLoader/UnexportedWinApi.h

19 lines
629 B
C
Raw Normal View History

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
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
void RtlInsertInvertedFunctionTable(void* baseAddress, DWORD sizeOfImage);
#endif // _M_IX86
2020-01-02 12:44:51 +00:00
}