// @pymethod |PyIBackgroundCopyJob|GetType|Description of GetType. PyObject *PyIBackgroundCopyJob::GetType(PyObject *self, PyObject *args) { IBackgroundCopyJob *pIBCJ = GetI(self); if ( pIBCJ == NULL ) return NULL; if ( !PyArg_ParseTuple(args, ":GetType")) return NULL; HRESULT hr; BG_JOB_TYPE val; PY_INTERFACE_PRECALL; hr = pIBCJ->GetType(&val); PY_INTERFACE_POSTCALL; if ( FAILED(hr) ) return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob ); return PyInt_FromLong(val); }