OpenVAS Libraries  4.0+rc3.SVN
openvas_wmi_interface.h
Go to the documentation of this file.
1 /* OpenVAS
2  *
3  * $Id$
4  * Description: API protos describing the interface of a wmi interface
5  * implementation.
6  *
7  * Authors:
8  * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
9  *
10  * Copyright:
11  * Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License version 2
15  * (or any later version), as published by the Free Software Foundation.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26 
35 #ifndef _NASL_OPENVAS_WMI_INTERFACE_H
36 #define _NASL_OPENVAS_WMI_INTERFACE_H
37 
38 typedef int WMI_HANDLE;
39 
40 char *wmi_versioninfo ();
41 int wmi_connect (int argc, char **argv, WMI_HANDLE * handle);
42 int wmi_close (WMI_HANDLE);
43 int wmi_query (WMI_HANDLE, const char *, char **);
44 
45 int wmi_connect_rsop (int argc, char **argv, WMI_HANDLE * handle);
46 int wmi_query_rsop (WMI_HANDLE, const char *, char **);
47 
48 int wmi_connect_reg (int argc, char **argv, WMI_HANDLE * handle);
49 int wmi_reg_get_sz (WMI_HANDLE, unsigned int, const char *, const char *,
50  char **);
51 int wmi_reg_enum_value (WMI_HANDLE, unsigned int, const char *, char **);
52 int wmi_reg_enum_key (WMI_HANDLE, unsigned int, const char *, char **);
53 int wmi_reg_get_bin_val (WMI_HANDLE, unsigned int, const char *, const char *,
54  char **);
55 int wmi_reg_get_dword_val (WMI_HANDLE, unsigned int, const char *, const char *,
56  char **);
57 int wmi_reg_get_ex_string_val (WMI_HANDLE, unsigned int, const char *,
58  const char *, char **);
59 int wmi_reg_get_mul_string_val (WMI_HANDLE, unsigned int, const char *,
60  const char *, char **);
61 int wmi_reg_get_qword_val (WMI_HANDLE, unsigned int, const char *, const char *,
62  char **);
63 
64 #endif