Raqueeb
Structural
- Jun 25, 2013
- 10
I am trying to learn to write API for CSI Etabs in Python. From the .py file created in the comtypes generated modules, below is an example of a function. In this can some one please explain what does ['in', 'out'] mean, and how to make use of this function.
COMMETHOD([dispid(17)], HRESULT, 'GetElm',
( ['in'], BSTR, 'Name' ),
( ['in', 'out'], POINTER(c_int), 'NElm' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(BSTR)), 'Elm' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(c_double)), 'RDI' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(c_double)), 'RDJ' ),
( ['out', 'retval'], POINTER(c_int), 'pRetVal' )),
COMMETHOD([dispid(17)], HRESULT, 'GetElm',
( ['in'], BSTR, 'Name' ),
( ['in', 'out'], POINTER(c_int), 'NElm' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(BSTR)), 'Elm' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(c_double)), 'RDI' ),
( ['in', 'out'], POINTER(_midlSAFEARRAY(c_double)), 'RDJ' ),
( ['out', 'retval'], POINTER(c_int), 'pRetVal' )),