forked from Public-Mirror/Textractor
90613f5039
update to ITHVNR 3.5640.1 and translation
33 lines
736 B
C
33 lines
736 B
C
#pragma once
|
|
// disasm.h
|
|
// 1/27/2013 jichi
|
|
|
|
// Include typedef of BYTE
|
|
//#include <windef.h>
|
|
//#include <windows.h>
|
|
|
|
//#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);
|
|
DISASM_END_NAMESPACE
|
|
|
|
// EOF
|