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