OpenVAS Libraries  7.0.7
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 #include <stdint.h> /* for uint32_t, uint64_t */
39 
40 typedef int WMI_HANDLE;
41 
42 char *wmi_versioninfo ();
43 int wmi_connect (int argc, char **argv, WMI_HANDLE * handle);
44 int wmi_close (WMI_HANDLE);
45 int wmi_query (WMI_HANDLE, const char *, char **);
46 
47 int wmi_connect_rsop (int argc, char **argv, WMI_HANDLE * handle);
48 int wmi_query_rsop (WMI_HANDLE, const char *, char **);
49 
50 int wmi_connect_reg (int argc, char **argv, WMI_HANDLE * handle);
51 int wmi_reg_get_sz (WMI_HANDLE, unsigned int, const char *, const char *,
52  char **);
53 int wmi_reg_enum_value (WMI_HANDLE, unsigned int, const char *, char **);
54 int wmi_reg_enum_key (WMI_HANDLE, unsigned int, const char *, char **);
55 int wmi_reg_get_bin_val (WMI_HANDLE, unsigned int, const char *, const char *,
56  char **);
57 int wmi_reg_get_dword_val (WMI_HANDLE, unsigned int, const char *, const char *,
58  char **);
59 int wmi_reg_get_ex_string_val (WMI_HANDLE, unsigned int, const char *,
60  const char *, char **);
61 int wmi_reg_get_mul_string_val (WMI_HANDLE, unsigned int, const char *,
62  const char *, char **);
63 int wmi_reg_get_qword_val (WMI_HANDLE, unsigned int, const char *, const char *,
64  char **);
65 int wmi_reg_set_dword_val (WMI_HANDLE, const char *, const char *, uint32_t);
66 int wmi_reg_set_qword_val (WMI_HANDLE, const char *, const char *, uint64_t);
67 int wmi_reg_set_ex_string_val (WMI_HANDLE, const char *,
68  const char *,const char *);
69 int wmi_reg_set_string_val (WMI_HANDLE, const char *,
70  const char *,const char *);
71 int wmi_reg_create_key (WMI_HANDLE, const char *);
72 
73 int wmi_reg_delete_key (WMI_HANDLE, const char *);
74 
75 #endif