Module pywraps :: Class Appcall__
[frames] | no frames]

Class Appcall__

object --+
         |
        Appcall__

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
Consts(self)
Use Appcall.Consts.CONST_NAME to access constants
 
__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___

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods
 
proto(name_or_ea, prototype, 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)
 
unicode(s)
 
array(type_name)
Defines an array type.
 
typedobj(typestr, ea=None)
Parses a type string and returns an appcall object.
 
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()
Class Variables
  APPCALL_MANUAL = 0x1
Only set up the appcall, do not run it.
  APPCALL_DEBEV = 0x2
Return debug event information If this bit is set, exceptions during appcall will generate idc exceptions with full information about the exception
  APPCALL_TIMEOUT = 0x4
Appcall with timeout The timeout value in milliseconds is specified in the high 2 bytes of the 'options' argument: If timed out, errbuf will contain "timeout".
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

valueof(name, default=0)
Static Method

 

Returns the numeric value of a given name string. If the name could not be resolved then the default value will be returned

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

 

Creates a string buffer. 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

array(type_name)
Static Method

 

Defines an array type. Later you need to pack() / unpack()

typedobj(typestr, ea=None)
Static Method

 

Parses a type string and returns an appcall object. One can then use retrieve() member method

Parameters:
  • ea - Optional parameter that later can be used to retrieve the type
Returns:
Appcall object

Class Variable Details

APPCALL_MANUAL

Only set up the appcall, do not run it. you should call CleanupAppcall() when finished

Value:
0x1