1 /* 2 * Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7 #include <Python.h> 8 #include <Winsvc.h> 9 10 SC_HANDLE psutil_get_service_handle( 11 char service_name, DWORD scm_access, DWORD access); 12 PyObject *psutil_winservice_enumerate(PyObject *self, PyObject *args); 13 PyObject *psutil_winservice_query_config(PyObject *self, PyObject *args); 14 PyObject *psutil_winservice_query_status(PyObject *self, PyObject *args); 15 PyObject *psutil_winservice_query_descr(PyObject *self, PyObject *args); 16 PyObject *psutil_winservice_start(PyObject *self, PyObject *args); 17 PyObject *psutil_winservice_stop(PyObject *self, PyObject *args); 18