Esempio n. 1
0
// @pymethod boolean|PyIFileOperation|GetAnyOperationsAborted|Determines if any operations were terminated
PyObject *PyIFileOperation::GetAnyOperationsAborted(PyObject *self, PyObject *args)
{
    IFileOperation *pIFO = GetI(self);
    if ( pIFO == NULL )
        return NULL;
    BOOL AnyOperationsAborted;
    HRESULT hr;
    PY_INTERFACE_PRECALL;
    hr = pIFO->GetAnyOperationsAborted( &AnyOperationsAborted );
    PY_INTERFACE_POSTCALL;

    if (FAILED(hr))
        return PyCom_BuildPyException(hr, pIFO, IID_IFileOperation );
    return PyBool_FromLong(AnyOperationsAborted);
}