// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2

#include "pybase.h"
#include "py.Windows.System.RemoteDesktop.h"

PyTypeObject* py::winrt_type<winrt::Windows::System::RemoteDesktop::InteractiveSession>::python_type;

namespace py::cpp::Windows::System::RemoteDesktop
{
    // ----- InteractiveSession class --------------------
    constexpr const char* const _type_name_InteractiveSession = "InteractiveSession";

    static PyObject* _new_InteractiveSession(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_InteractiveSession);
        return nullptr;
    }

    static PyObject* InteractiveSession_get_IsRemote(PyObject* /*unused*/, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(winrt::Windows::System::RemoteDesktop::InteractiveSession::IsRemote());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_InteractiveSession[] = {
        { "get_is_remote", reinterpret_cast<PyCFunction>(InteractiveSession_get_IsRemote), METH_NOARGS | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_InteractiveSession[] = {
        { }
    };

    static PyType_Slot _type_slots_InteractiveSession[] = 
    {
        { Py_tp_new, _new_InteractiveSession },
        { Py_tp_methods, _methods_InteractiveSession },
        { Py_tp_getset, _getset_InteractiveSession },
        { },
    };

    static PyType_Spec _type_spec_InteractiveSession =
    {
        "_winsdk_Windows_System_RemoteDesktop.InteractiveSession",
        0,
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_InteractiveSession
    };

    // ----- Windows.System.RemoteDesktop Initialization --------------------
    static int module_exec(PyObject* module) noexcept
    {
        try
        {
            py::pyobj_handle bases { PyTuple_Pack(1, py::winrt_type<py::Object>::python_type) };

            py::winrt_type<winrt::Windows::System::RemoteDesktop::InteractiveSession>::python_type = py::register_python_type(module, _type_name_InteractiveSession, &_type_spec_InteractiveSession, nullptr);

            return 0;
        }
        catch (...)
        {
            py::to_PyErr();
            return -1;
        }
    }

    static PyModuleDef_Slot module_slots[] = {{Py_mod_exec, module_exec}, {}};

    PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop");

    static PyModuleDef module_def
        = {PyModuleDef_HEAD_INIT,
           "_winsdk_Windows_System_RemoteDesktop",
           module_doc,
           0,
           nullptr,
           module_slots,
           nullptr,
           nullptr,
           nullptr};
} // py::cpp::Windows::System::RemoteDesktop

PyMODINIT_FUNC
PyInit__winsdk_Windows_System_RemoteDesktop (void) noexcept
{
    return PyModuleDef_Init(&py::cpp::Windows::System::RemoteDesktop::module_def);
}
