InvokeMethod invokes the specified static method.
(object ObjectID, class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value)
| 39 | |
| 40 | // InvokeMethod invokes the specified static method. |
| 41 | func (c *Connection) InvokeMethod(object ObjectID, class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value) (InvokeResult, error) { |
| 42 | req := struct { |
| 43 | Object ObjectID |
| 44 | Thread ThreadID |
| 45 | Class ClassID |
| 46 | Method MethodID |
| 47 | Args []Value |
| 48 | Options InvokeOptions |
| 49 | }{object, thread, class, method, args, options} |
| 50 | var res InvokeResult |
| 51 | err := c.get(cmdObjectReferenceInvokeMethod, req, &res) |
| 52 | return res, err |
| 53 | } |
| 54 | |
| 55 | // DisableGC disables garbage collection for the specified object. |
| 56 | func (c *Connection) DisableGC(object ObjectID) error { |