C3/Src/CebuLoader/UnexportedWinApi.h

19 lines
633 B
C
Raw Permalink Normal View History

2020-01-02 12:44:51 +00:00
#pragma once
2020-03-05 15:30:50 +00:00
namespace FSecure::Loader::UnexportedWinApi
2020-01-02 12:44:51 +00:00
{
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
}