コード例 #1
0
// @pymethod |PyIBackgroundCopyJob|GetNoProgressTimeout|Description of GetNoProgressTimeout.
PyObject *PyIBackgroundCopyJob::GetNoProgressTimeout(PyObject *self, PyObject *args)
{
	IBackgroundCopyJob *pIBCJ = GetI(self);
	if ( pIBCJ == NULL )
		return NULL;
	if ( !PyArg_ParseTuple(args, ":GetNoProgressTimeout") )
		return NULL;
	ULONG seconds;
	HRESULT hr;
	PY_INTERFACE_PRECALL;
	hr = pIBCJ->GetNoProgressTimeout( &seconds );
	PY_INTERFACE_POSTCALL;
	if ( FAILED(hr) )
		return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
	return PyLong_FromUnsignedLong(seconds);
}