Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/dlls/advapi32/wmi.c
4387 views
1
/*
2
* Win32 advapi/wmi functions
3
*
4
* Copyright 2016 Austin English
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19
*/
20
21
#include <stdarg.h>
22
23
#include "windef.h"
24
#include "winbase.h"
25
#include "winerror.h"
26
#include "winternl.h"
27
#include "wmistr.h"
28
29
#define _WMI_SOURCE_
30
#include "wmium.h"
31
32
#include "wine/debug.h"
33
34
#include "advapi32_misc.h"
35
36
WINE_DEFAULT_DEBUG_CHANNEL(wmi);
37
38
/******************************************************************************
39
* WmiExecuteMethodA [ADVAPI32.@]
40
*/
41
ULONG WMIAPI WmiExecuteMethodA(WMIHANDLE handle, const char *name, ULONG method, ULONG inputsize,
42
void *inputbuffer, ULONG *outputsize, void *outputbuffer)
43
{
44
FIXME(" %p %s %lu %lu %p %p %p: stub\n", handle, debugstr_a(name), method, inputsize, inputbuffer,
45
outputsize, outputbuffer);
46
return ERROR_CALL_NOT_IMPLEMENTED;
47
}
48
49
/******************************************************************************
50
* WmiExecuteMethodW [ADVAPI32.@]
51
*/
52
ULONG WMIAPI WmiExecuteMethodW(WMIHANDLE handle, const WCHAR *name, ULONG method, ULONG inputsize,
53
void *inputbuffer, ULONG *outputsize, void *outputbuffer)
54
{
55
FIXME("%p %s %lu %lu %p %p %p: stub\n", handle, debugstr_w(name), method, inputsize, inputbuffer,
56
outputsize, outputbuffer);
57
return ERROR_CALL_NOT_IMPLEMENTED;
58
}
59
60
/******************************************************************************
61
* WmiFreeBuffer [ADVAPI32.@]
62
*/
63
void WMIAPI WmiFreeBuffer(void *buffer)
64
{
65
FIXME("%p: stub\n", buffer);
66
}
67
68
/******************************************************************************
69
* WmiMofEnumerateResourcesA [ADVAPI32.@]
70
*/
71
ULONG WMIAPI WmiMofEnumerateResourcesA(MOFHANDLE handle, ULONG *count, MOFRESOURCEINFOA **resource)
72
{
73
FIXME("%p %p %p: stub\n", handle, count, resource);
74
return ERROR_CALL_NOT_IMPLEMENTED;
75
}
76
77
/******************************************************************************
78
* WmiMofEnumerateResourcesW [ADVAPI32.@]
79
*/
80
ULONG WMIAPI WmiMofEnumerateResourcesW(MOFHANDLE handle, ULONG *count, MOFRESOURCEINFOW **resource)
81
{
82
FIXME("%p %p %p: stub\n", handle, count, resource);
83
return ERROR_CALL_NOT_IMPLEMENTED;
84
}
85
86
/******************************************************************************
87
* WmiNotificationRegistrationA [ADVAPI32.@]
88
*/
89
ULONG WMIAPI WmiNotificationRegistrationA(GUID *guid, BOOLEAN enable, void *info,
90
ULONG_PTR context, ULONG flags)
91
{
92
FIXME("%s %u %p 0x%Ix 0x%08lx: stub\n", debugstr_guid(guid), enable, info, context, flags);
93
return ERROR_CALL_NOT_IMPLEMENTED;
94
}
95
96
/******************************************************************************
97
* WmiNotificationRegistrationW [ADVAPI32.@]
98
*/
99
ULONG WMIAPI WmiNotificationRegistrationW(GUID *guid, BOOLEAN enable, void *info,
100
ULONG_PTR context, ULONG flags)
101
{
102
FIXME("%s %u %p 0x%Ix 0x%08lx: stub\n", debugstr_guid(guid), enable, info, context, flags);
103
return ERROR_CALL_NOT_IMPLEMENTED;
104
}
105
106
/******************************************************************************
107
* WmiOpenBlock [ADVAPI32.@]
108
*/
109
ULONG WINAPI WmiOpenBlock(GUID *guid, ULONG access, WMIHANDLE *handle)
110
{
111
FIXME("%s %lu %p: stub\n", debugstr_guid(guid), access, handle);
112
return ERROR_SUCCESS;
113
}
114
115
/******************************************************************************
116
* WmiQueryAllDataA [ADVAPI32.@]
117
*/
118
ULONG WMIAPI WmiQueryAllDataA(WMIHANDLE handle, ULONG *size, void *buffer)
119
{
120
FIXME("%p %p %p: stub\n", handle, size, buffer);
121
return ERROR_CALL_NOT_IMPLEMENTED;
122
}
123
124
/******************************************************************************
125
* WmiQueryAllDataW [ADVAPI32.@]
126
*/
127
ULONG WMIAPI WmiQueryAllDataW(WMIHANDLE handle, ULONG *size, void *buffer)
128
{
129
FIXME("%p %p %p: stub\n", handle, size, buffer);
130
return ERROR_CALL_NOT_IMPLEMENTED;
131
}
132
133
/******************************************************************************
134
* WmiQueryGuidInformation [ADVAPI32.@]
135
*/
136
ULONG WMIAPI WmiQueryGuidInformation(WMIHANDLE handle, WMIGUIDINFORMATION *info)
137
{
138
FIXME("%p %p: stub\n", handle, info);
139
return ERROR_CALL_NOT_IMPLEMENTED;
140
}
141
142
/******************************************************************************
143
* WmiSetSingleInstanceA [ADVAPI32.@]
144
*/
145
ULONG WMIAPI WmiSetSingleInstanceA(WMIHANDLE handle, const char *name, ULONG reserved,
146
ULONG size, void *buffer)
147
{
148
FIXME("%p %s %lu %lu %p: stub\n", handle, debugstr_a(name), reserved, size, buffer);
149
return ERROR_CALL_NOT_IMPLEMENTED;
150
}
151
152
/******************************************************************************
153
* WmiSetSingleInstanceW [ADVAPI32.@]
154
*/
155
ULONG WMIAPI WmiSetSingleInstanceW(WMIHANDLE handle, const WCHAR *name, ULONG reserved,
156
ULONG size, void *buffer)
157
{
158
FIXME("%p %s %lu %lu %p: stub\n", handle, debugstr_w(name), reserved, size, buffer);
159
return ERROR_CALL_NOT_IMPLEMENTED;
160
}
161
162
/******************************************************************************
163
* WmiSetSingleItemA [ADVAPI32.@]
164
*/
165
ULONG WMIAPI WmiSetSingleItemA(WMIHANDLE handle, const char *name, ULONG id, ULONG reserved,
166
ULONG size, void *buffer)
167
{
168
FIXME("%p %s %lu %lu %lu %p: stub\n", handle, debugstr_a(name), id, reserved, size, buffer);
169
return ERROR_CALL_NOT_IMPLEMENTED;
170
}
171
172
/******************************************************************************
173
* WmiSetSingleItemW [ADVAPI32.@]
174
*/
175
ULONG WMIAPI WmiSetSingleItemW(WMIHANDLE handle, const WCHAR *name, ULONG id, ULONG reserved,
176
ULONG size, void *buffer)
177
{
178
FIXME("%p %s %lu %lu %lu %p: stub\n", handle, debugstr_w(name), id, reserved, size, buffer);
179
return ERROR_CALL_NOT_IMPLEMENTED;
180
}
181
182