mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
90613f5039
update to ITHVNR 3.5640.1 and translation
25 lines
543 B
C++
25 lines
543 B
C++
#pragma once
|
|
|
|
// windbg_p.h
|
|
// 1/27/2013 jichi
|
|
|
|
#include "windbg/windbg.h"
|
|
#include <windows.h>
|
|
|
|
WINDBG_BEGIN_NAMESPACE
|
|
|
|
namespace details { // unnamed
|
|
|
|
/// Return the address of func in module.
|
|
inline FARPROC getModuleFunctionAddressA(LPCSTR func, LPCSTR module = nullptr)
|
|
{ return ::GetProcAddress(::GetModuleHandleA(module), func); }
|
|
|
|
inline FARPROC getModuleFunctionAddressW(LPCSTR func, LPCWSTR module = nullptr)
|
|
{ return ::GetProcAddress(::GetModuleHandleW(module), func); }
|
|
|
|
} // unamed namespace details
|
|
|
|
WINDBG_END_NAMESPACE
|
|
|
|
// EOF
|