IDAPython 8.4
Loading...
Searching...
No Matches
Appcall__ Class Reference
Inheritance diagram for Appcall__:

Public Member Functions

 __init__ (self)
 
 __getattr__ (self, name_or_ea)
 Allows you to call functions as if they were member functions (by returning a callable object)
 
 __getitem__ (self, idx)
 Use self[func_name] syntax if the function name contains invalid characters for an attribute name See __getattr___.
 

Static Public Member Functions

 proto (name_or_ea, proto_or_tinfo, flags=None)
 Allows you to instantiate an appcall (callable object) with the desired prototype.
 
 valueof (name, default=0)
 Returns the numeric value of a given name string.
 
 int64 (v)
 Whenever a 64bit number is needed use this method to construct an object.
 
 byref (val)
 Method to create references to immutable objects Currently we support references to int/strings Objects need not be passed by reference (this will be done automatically)
 
 buffer (str=None, size=0, fill="\x00")
 Creates a string buffer.
 
 obj (**kwds)
 Returns an empty object or objects with attributes as passed via its keywords arguments.
 
 cstr (val)
 
 UTF16 (s)
 
 array (type_name)
 Defines an array type.
 
 typedobj (typedecl_or_tinfo, ea=None)
 Returns an appcall object for a type (can be given as tinfo_t object or as a string declaration) One can then use retrieve() member method.
 
 set_appcall_options (opt)
 Method to change the Appcall options globally (not per Appcall)
 
 get_appcall_options ()
 Return the global Appcall options.
 
 cleanup_appcall (tid=0)
 Equivalent to IDC's CleanupAppcall()
 

Static Public Attributes

int APPCALL_MANUAL = 0x1
 
int APPCALL_DEBEV = 0x2
 
int APPCALL_TIMEOUT = 0x4
 
 unicode = UTF16
 

Properties

 Consts = property(__get_consts)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Member Function Documentation

◆ __getattr__()

__getattr__ ( self,
name_or_ea )

◆ __getitem__()

__getitem__ ( self,
idx )

◆ array()

array ( type_name)
static

Later you need to pack() / unpack()

◆ buffer()

buffer ( str = None,
size = 0,
fill = "\x00" )
static

The returned value (r) will be a byref object. Use r.value to get the contents and r.size to get the buffer's size

◆ byref()

byref ( val)
static

◆ cleanup_appcall()

cleanup_appcall ( tid = 0)
static

◆ cstr()

cstr ( val)
static

◆ get_appcall_options()

get_appcall_options ( )
static

◆ int64()

int64 ( v)
static

◆ obj()

obj ( ** kwds)
static

◆ proto()

proto ( name_or_ea,
proto_or_tinfo,
flags = None )
static
Parameters
name_or_eaThe name of the function (will be resolved with LocByName())
proto_or_tinfofunction prototype as a string or type of the function as tinfo_t object
Returns
: - On failure it raises an exception if the prototype could not be parsed or the address is not resolvable
  • Returns a callbable Appcall instance with the given prototypes and flags

◆ set_appcall_options()

set_appcall_options ( opt)
static

◆ typedobj()

typedobj ( typedecl_or_tinfo,
ea = None )
static
Parameters
eaOptional parameter that later can be used to retrieve the type
Returns
: Appcall object or raises ValueError exception

◆ UTF16()

UTF16 ( s)
static

◆ valueof()

valueof ( name,
default = 0 )
static

If the name could not be resolved then the default value will be returned

Member Data Documentation

◆ APPCALL_DEBEV

int APPCALL_DEBEV = 0x2
static

◆ APPCALL_MANUAL

int APPCALL_MANUAL = 0x1
static

◆ APPCALL_TIMEOUT

int APPCALL_TIMEOUT = 0x4
static

◆ unicode

unicode = UTF16
static

Property Documentation

◆ Consts

Consts = property(__get_consts)
static

The documentation for this class was generated from the following file: