Textractor_test/texthook/util/disasm/disasm.h

33 lines
736 B
C
Raw Normal View History

2015-04-02 22:31:07 +08:00
#pragma once
// disasm.h
// 1/27/2013 jichi
// Include typedef of BYTE
//#include <windef.h>
//#include <windows.h>
2015-04-02 22:31:07 +08:00
//#ifdef QT_CORE_LIB
//# include <qt_windows.h>
//#else
//# include <windows.h>
//#endif
#ifndef DISASM_BEGIN_NAMESPACE
# define DISASM_BEGIN_NAMESPACE
#endif
#ifndef DISASM_END_NAMESPACE
# define DISASM_END_NAMESPACE
#endif
DISASM_BEGIN_NAMESPACE
/**
* This function can do more, but currently only used to estimate the length of an instruction.
* Warning: The current implementation is stateful and hence not thread-safe.
* @param address of the instruction to look at
* @return length of the instruction at the address or 0 if failed
*/
size_t disasm(const void *address);
2015-04-02 22:31:07 +08:00
DISASM_END_NAMESPACE
// EOF