// @pymethod |PyIShellLibrary|SetOptions|Sets library option flags
PyObject *PyIShellLibrary::SetOptions(PyObject *self, PyObject *args)
{
	IShellLibrary *pISL = GetI(self);
	if ( pISL == NULL )
		return NULL;
	LIBRARYOPTIONFLAGS Mask, Options;
	// @pyparm int|Mask||Bitmask of flags to be changed, combination of shellcon.LOF_* values
	// @pyparm int|Options||New options, combination of shellcon.LOF_* values
	if ( !PyArg_ParseTuple(args, "ii:SetOptions", &Mask, &Options))
		return NULL;

	HRESULT hr;
	PY_INTERFACE_PRECALL;
	hr = pISL->SetOptions(Mask, Options);
	PY_INTERFACE_POSTCALL;

	if ( FAILED(hr) )
		return PyCom_BuildPyException(hr, pISL, IID_IShellLibrary );
	Py_INCREF(Py_None);
	return Py_None;
}