2 * Copyright 2012 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "wine/debug.h"
29 #include "wbemprox_private.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wbemprox
);
33 struct client_security
35 IClientSecurity IClientSecurity_iface
;
38 static inline struct client_security
*impl_from_IClientSecurity( IClientSecurity
*iface
)
40 return CONTAINING_RECORD( iface
, struct client_security
, IClientSecurity_iface
);
43 static HRESULT WINAPI
client_security_QueryInterface(
44 IClientSecurity
*iface
,
48 struct client_security
*cs
= impl_from_IClientSecurity( iface
);
50 TRACE("%p %s %p\n", cs
, debugstr_guid( riid
), ppvObject
);
52 if ( IsEqualGUID( riid
, &IID_IClientSecurity
) ||
53 IsEqualGUID( riid
, &IID_IUnknown
) )
59 FIXME("interface %s not implemented\n", debugstr_guid(riid
));
62 IClientSecurity_AddRef( iface
);
66 static ULONG WINAPI
client_security_AddRef(
67 IClientSecurity
*iface
)
73 static ULONG WINAPI
client_security_Release(
74 IClientSecurity
*iface
)
80 static HRESULT WINAPI
client_security_QueryBlanket(
81 IClientSecurity
*iface
,
85 OLECHAR
**pServerPrincName
,
89 DWORD
*pCapabilities
)
95 static HRESULT WINAPI
client_security_SetBlanket(
96 IClientSecurity
*iface
,
100 OLECHAR
*pServerPrincName
,
106 const OLECHAR
*princname
= (pServerPrincName
== COLE_DEFAULT_PRINCIPAL
) ?
107 L
"<COLE_DEFAULT_PRINCIPAL>" : pServerPrincName
;
109 FIXME("%p, %p, %u, %u, %s, %u, %u, %p, 0x%08x\n", iface
, pProxy
, AuthnSvc
, AuthzSvc
,
110 debugstr_w(princname
), AuthnLevel
, ImpLevel
, pAuthInfo
, Capabilities
);
111 return WBEM_NO_ERROR
;
114 static HRESULT WINAPI
client_security_CopyProxy(
115 IClientSecurity
*iface
,
120 return WBEM_E_FAILED
;
123 static const IClientSecurityVtbl client_security_vtbl
=
125 client_security_QueryInterface
,
126 client_security_AddRef
,
127 client_security_Release
,
128 client_security_QueryBlanket
,
129 client_security_SetBlanket
,
130 client_security_CopyProxy
133 IClientSecurity client_security
= { &client_security_vtbl
};
137 IWbemObjectSink
*sink
;
138 void (*proc
)( struct async_header
* );
145 struct async_header hdr
;
149 static void free_async( struct async_header
*async
)
151 if (async
->sink
) IWbemObjectSink_Release( async
->sink
);
152 CloseHandle( async
->cancel
);
153 CloseHandle( async
->wait
);
157 static BOOL
init_async( struct async_header
*async
, IWbemObjectSink
*sink
,
158 void (*proc
)(struct async_header
*) )
160 if (!(async
->wait
= CreateEventW( NULL
, FALSE
, FALSE
, NULL
))) return FALSE
;
161 if (!(async
->cancel
= CreateEventW( NULL
, FALSE
, FALSE
, NULL
)))
163 CloseHandle( async
->wait
);
168 IWbemObjectSink_AddRef( sink
);
172 static DWORD CALLBACK
async_proc( LPVOID param
)
174 struct async_header
*async
= param
;
175 HANDLE wait
= async
->wait
;
177 async
->proc( async
);
179 WaitForSingleObject( async
->cancel
, INFINITE
);
181 return ERROR_SUCCESS
;
184 static HRESULT
queue_async( struct async_header
*async
)
186 if (QueueUserWorkItem( async_proc
, async
, WT_EXECUTELONGFUNCTION
)) return S_OK
;
187 return HRESULT_FROM_WIN32( GetLastError() );
192 IWbemServices IWbemServices_iface
;
196 struct async_header
*async
;
199 static inline struct wbem_services
*impl_from_IWbemServices( IWbemServices
*iface
)
201 return CONTAINING_RECORD( iface
, struct wbem_services
, IWbemServices_iface
);
204 static ULONG WINAPI
wbem_services_AddRef(
205 IWbemServices
*iface
)
207 struct wbem_services
*ws
= impl_from_IWbemServices( iface
);
208 return InterlockedIncrement( &ws
->refs
);
211 static ULONG WINAPI
wbem_services_Release(
212 IWbemServices
*iface
)
214 struct wbem_services
*ws
= impl_from_IWbemServices( iface
);
215 LONG refs
= InterlockedDecrement( &ws
->refs
);
218 TRACE("destroying %p\n", ws
);
220 EnterCriticalSection( &ws
->cs
);
221 if (ws
->async
) SetEvent( ws
->async
->cancel
);
222 LeaveCriticalSection( &ws
->cs
);
225 WaitForSingleObject( ws
->async
->wait
, INFINITE
);
226 free_async( ws
->async
);
228 ws
->cs
.DebugInfo
->Spare
[0] = 0;
229 DeleteCriticalSection( &ws
->cs
);
230 heap_free( ws
->namespace );
236 static HRESULT WINAPI
wbem_services_QueryInterface(
237 IWbemServices
*iface
,
241 struct wbem_services
*ws
= impl_from_IWbemServices( iface
);
243 TRACE("%p %s %p\n", ws
, debugstr_guid( riid
), ppvObject
);
245 if ( IsEqualGUID( riid
, &IID_IWbemServices
) ||
246 IsEqualGUID( riid
, &IID_IUnknown
) )
250 else if ( IsEqualGUID( riid
, &IID_IClientSecurity
) )
252 *ppvObject
= &client_security
;
257 FIXME("interface %s not implemented\n", debugstr_guid(riid
));
258 return E_NOINTERFACE
;
260 IWbemServices_AddRef( iface
);
264 static HRESULT WINAPI
wbem_services_OpenNamespace(
265 IWbemServices
*iface
,
266 const BSTR strNamespace
,
269 IWbemServices
**ppWorkingNamespace
,
270 IWbemCallResult
**ppResult
)
272 struct wbem_services
*ws
= impl_from_IWbemServices( iface
);
274 TRACE("%p, %s, 0x%08x, %p, %p, %p\n", iface
, debugstr_w(strNamespace
), lFlags
,
275 pCtx
, ppWorkingNamespace
, ppResult
);
277 if ((wcsicmp( strNamespace
, L
"cimv2" ) && wcsicmp( strNamespace
, L
"default" )) || ws
->namespace)
278 return WBEM_E_INVALID_NAMESPACE
;
280 return WbemServices_create( L
"cimv2", (void **)ppWorkingNamespace
);
283 static HRESULT WINAPI
wbem_services_CancelAsyncCall(
284 IWbemServices
*iface
,
285 IWbemObjectSink
*pSink
)
287 struct wbem_services
*services
= impl_from_IWbemServices( iface
);
288 struct async_header
*async
;
290 TRACE("%p, %p\n", iface
, pSink
);
292 if (!pSink
) return WBEM_E_INVALID_PARAMETER
;
294 EnterCriticalSection( &services
->cs
);
296 if (!(async
= services
->async
))
298 LeaveCriticalSection( &services
->cs
);
299 return WBEM_E_INVALID_PARAMETER
;
301 services
->async
= NULL
;
302 SetEvent( async
->cancel
);
304 LeaveCriticalSection( &services
->cs
);
306 WaitForSingleObject( async
->wait
, INFINITE
);
311 static HRESULT WINAPI
wbem_services_QueryObjectSink(
312 IWbemServices
*iface
,
314 IWbemObjectSink
**ppResponseHandler
)
317 return WBEM_E_FAILED
;
320 HRESULT
parse_path( const WCHAR
*str
, struct path
**ret
)
323 const WCHAR
*p
= str
, *q
;
326 if (!(path
= heap_alloc_zero( sizeof(*path
) ))) return E_OUTOFMEMORY
;
330 static const WCHAR cimv2W
[] = L
"ROOT\\CIMV2";
331 WCHAR server
[MAX_COMPUTERNAME_LENGTH
+1];
332 DWORD server_len
= ARRAY_SIZE(server
);
338 return WBEM_E_INVALID_OBJECT_PATH
;
343 while (*p
&& *p
!= '\\') p
++;
347 return WBEM_E_INVALID_OBJECT_PATH
;
351 if (!GetComputerNameW( server
, &server_len
) || server_len
!= len
|| wcsnicmp( q
, server
, server_len
))
354 return WBEM_E_NOT_SUPPORTED
;
358 while (*p
&& *p
!= ':') p
++;
362 return WBEM_E_INVALID_OBJECT_PATH
;
366 if (len
!= ARRAY_SIZE(cimv2W
) - 1 || wcsnicmp( q
, cimv2W
, ARRAY_SIZE(cimv2W
) - 1 ))
369 return WBEM_E_INVALID_NAMESPACE
;
375 while (*p
&& *p
!= '.') p
++;
378 if (!(path
->class = heap_alloc( (len
+ 1) * sizeof(WCHAR
) )))
381 return E_OUTOFMEMORY
;
383 memcpy( path
->class, q
, len
* sizeof(WCHAR
) );
384 path
->class[len
] = 0;
385 path
->class_len
= len
;
387 if (p
[0] == '.' && p
[1])
393 if (!(path
->filter
= heap_alloc( (len
+ 1) * sizeof(WCHAR
) )))
395 heap_free( path
->class );
397 return E_OUTOFMEMORY
;
399 memcpy( path
->filter
, p
, len
* sizeof(WCHAR
) );
400 path
->filter
[len
] = 0;
401 path
->filter_len
= len
;
407 void free_path( struct path
*path
)
410 heap_free( path
->class );
411 heap_free( path
->filter
);
415 WCHAR
*query_from_path( const struct path
*path
)
417 static const WCHAR selectW
[] = L
"SELECT * FROM %s WHERE %s";
418 static const WCHAR select_allW
[] = L
"SELECT * FROM ";
424 len
= path
->class_len
+ path
->filter_len
+ ARRAY_SIZE(selectW
);
425 if (!(query
= heap_alloc( len
* sizeof(WCHAR
) ))) return NULL
;
426 swprintf( query
, len
, selectW
, path
->class, path
->filter
);
430 len
= path
->class_len
+ ARRAY_SIZE(select_allW
);
431 if (!(query
= heap_alloc( len
* sizeof(WCHAR
) ))) return NULL
;
432 lstrcpyW( query
, select_allW
);
433 lstrcatW( query
, path
->class );
438 static HRESULT
create_instance_enum( const struct path
*path
, IEnumWbemClassObject
**iter
)
443 if (!(query
= query_from_path( path
))) return E_OUTOFMEMORY
;
444 hr
= exec_query( query
, iter
);
449 HRESULT
get_object( const WCHAR
*object_path
, IWbemClassObject
**obj
)
451 IEnumWbemClassObject
*iter
;
455 hr
= parse_path( object_path
, &path
);
456 if (hr
!= S_OK
) return hr
;
458 hr
= create_instance_enum( path
, &iter
);
464 hr
= create_class_object( path
->class, iter
, 0, NULL
, obj
);
465 IEnumWbemClassObject_Release( iter
);
470 static HRESULT WINAPI
wbem_services_GetObject(
471 IWbemServices
*iface
,
472 const BSTR strObjectPath
,
475 IWbemClassObject
**ppObject
,
476 IWbemCallResult
**ppCallResult
)
478 TRACE("%p, %s, 0x%08x, %p, %p, %p\n", iface
, debugstr_w(strObjectPath
), lFlags
,
479 pCtx
, ppObject
, ppCallResult
);
481 if (lFlags
) FIXME("unsupported flags 0x%08x\n", lFlags
);
483 if (!strObjectPath
|| !strObjectPath
[0])
484 return create_class_object( NULL
, NULL
, 0, NULL
, ppObject
);
486 return get_object( strObjectPath
, ppObject
);
489 static HRESULT WINAPI
wbem_services_GetObjectAsync(
490 IWbemServices
*iface
,
491 const BSTR strObjectPath
,
494 IWbemObjectSink
*pResponseHandler
)
497 return WBEM_E_FAILED
;
500 static HRESULT WINAPI
wbem_services_PutClass(
501 IWbemServices
*iface
,
502 IWbemClassObject
*pObject
,
505 IWbemCallResult
**ppCallResult
)
508 return WBEM_E_FAILED
;
511 static HRESULT WINAPI
wbem_services_PutClassAsync(
512 IWbemServices
*iface
,
513 IWbemClassObject
*pObject
,
516 IWbemObjectSink
*pResponseHandler
)
519 return WBEM_E_FAILED
;
522 static HRESULT WINAPI
wbem_services_DeleteClass(
523 IWbemServices
*iface
,
527 IWbemCallResult
**ppCallResult
)
530 return WBEM_E_FAILED
;
533 static HRESULT WINAPI
wbem_services_DeleteClassAsync(
534 IWbemServices
*iface
,
538 IWbemObjectSink
*pResponseHandler
)
541 return WBEM_E_FAILED
;
544 static HRESULT WINAPI
wbem_services_CreateClassEnum(
545 IWbemServices
*iface
,
546 const BSTR strSuperclass
,
549 IEnumWbemClassObject
**ppEnum
)
552 return WBEM_E_FAILED
;
555 static HRESULT WINAPI
wbem_services_CreateClassEnumAsync(
556 IWbemServices
*iface
,
557 const BSTR strSuperclass
,
560 IWbemObjectSink
*pResponseHandler
)
563 return WBEM_E_FAILED
;
566 static HRESULT WINAPI
wbem_services_PutInstance(
567 IWbemServices
*iface
,
568 IWbemClassObject
*pInst
,
571 IWbemCallResult
**ppCallResult
)
574 return WBEM_E_FAILED
;
577 static HRESULT WINAPI
wbem_services_PutInstanceAsync(
578 IWbemServices
*iface
,
579 IWbemClassObject
*pInst
,
582 IWbemObjectSink
*pResponseHandler
)
585 return WBEM_E_FAILED
;
588 static HRESULT WINAPI
wbem_services_DeleteInstance(
589 IWbemServices
*iface
,
590 const BSTR strObjectPath
,
593 IWbemCallResult
**ppCallResult
)
596 return WBEM_E_FAILED
;
599 static HRESULT WINAPI
wbem_services_DeleteInstanceAsync(
600 IWbemServices
*iface
,
601 const BSTR strObjectPath
,
604 IWbemObjectSink
*pResponseHandler
)
607 return WBEM_E_FAILED
;
610 static HRESULT WINAPI
wbem_services_CreateInstanceEnum(
611 IWbemServices
*iface
,
615 IEnumWbemClassObject
**ppEnum
)
620 TRACE("%p, %s, 0%08x, %p, %p\n", iface
, debugstr_w(strClass
), lFlags
, pCtx
, ppEnum
);
622 if (lFlags
) FIXME("unsupported flags 0x%08x\n", lFlags
);
624 hr
= parse_path( strClass
, &path
);
625 if (hr
!= S_OK
) return hr
;
627 hr
= create_instance_enum( path
, ppEnum
);
632 static HRESULT WINAPI
wbem_services_CreateInstanceEnumAsync(
633 IWbemServices
*iface
,
634 const BSTR strFilter
,
637 IWbemObjectSink
*pResponseHandler
)
640 return WBEM_E_FAILED
;
643 static HRESULT WINAPI
wbem_services_ExecQuery(
644 IWbemServices
*iface
,
645 const BSTR strQueryLanguage
,
649 IEnumWbemClassObject
**ppEnum
)
651 TRACE("%p, %s, %s, 0x%08x, %p, %p\n", iface
, debugstr_w(strQueryLanguage
),
652 debugstr_w(strQuery
), lFlags
, pCtx
, ppEnum
);
654 if (!strQueryLanguage
|| !strQuery
|| !strQuery
[0]) return WBEM_E_INVALID_PARAMETER
;
655 if (wcsicmp( strQueryLanguage
, L
"WQL" )) return WBEM_E_INVALID_QUERY_TYPE
;
656 return exec_query( strQuery
, ppEnum
);
659 static void async_exec_query( struct async_header
*hdr
)
661 struct async_query
*query
= (struct async_query
*)hdr
;
662 IEnumWbemClassObject
*result
;
663 IWbemClassObject
*obj
;
667 hr
= exec_query( query
->str
, &result
);
672 IEnumWbemClassObject_Next( result
, WBEM_INFINITE
, 1, &obj
, &count
);
674 IWbemObjectSink_Indicate( query
->hdr
.sink
, 1, &obj
);
675 IWbemClassObject_Release( obj
);
677 IEnumWbemClassObject_Release( result
);
679 IWbemObjectSink_SetStatus( query
->hdr
.sink
, WBEM_STATUS_COMPLETE
, hr
, NULL
, NULL
);
680 heap_free( query
->str
);
683 static HRESULT WINAPI
wbem_services_ExecQueryAsync(
684 IWbemServices
*iface
,
685 const BSTR strQueryLanguage
,
689 IWbemObjectSink
*pResponseHandler
)
691 struct wbem_services
*services
= impl_from_IWbemServices( iface
);
692 IWbemObjectSink
*sink
;
693 HRESULT hr
= E_OUTOFMEMORY
;
694 struct async_header
*async
;
695 struct async_query
*query
;
697 TRACE("%p, %s, %s, 0x%08x, %p, %p\n", iface
, debugstr_w(strQueryLanguage
), debugstr_w(strQuery
),
698 lFlags
, pCtx
, pResponseHandler
);
700 if (!pResponseHandler
) return WBEM_E_INVALID_PARAMETER
;
702 hr
= IWbemObjectSink_QueryInterface( pResponseHandler
, &IID_IWbemObjectSink
, (void **)&sink
);
703 if (FAILED(hr
)) return hr
;
705 EnterCriticalSection( &services
->cs
);
709 FIXME("handle more than one pending async\n");
713 if (!(query
= heap_alloc_zero( sizeof(*query
) ))) goto done
;
714 async
= (struct async_header
*)query
;
716 if (!(init_async( async
, sink
, async_exec_query
)))
721 if (!(query
->str
= heap_strdupW( strQuery
)))
726 hr
= queue_async( async
);
727 if (hr
== S_OK
) services
->async
= async
;
730 heap_free( query
->str
);
735 LeaveCriticalSection( &services
->cs
);
736 IWbemObjectSink_Release( sink
);
740 static HRESULT WINAPI
wbem_services_ExecNotificationQuery(
741 IWbemServices
*iface
,
742 const BSTR strQueryLanguage
,
746 IEnumWbemClassObject
**ppEnum
)
749 return WBEM_E_FAILED
;
752 static HRESULT WINAPI
wbem_services_ExecNotificationQueryAsync(
753 IWbemServices
*iface
,
754 const BSTR strQueryLanguage
,
758 IWbemObjectSink
*pResponseHandler
)
760 struct wbem_services
*services
= impl_from_IWbemServices( iface
);
761 IWbemObjectSink
*sink
;
762 HRESULT hr
= E_OUTOFMEMORY
;
763 struct async_header
*async
;
764 struct async_query
*query
;
766 TRACE("%p, %s, %s, 0x%08x, %p, %p\n", iface
, debugstr_w(strQueryLanguage
), debugstr_w(strQuery
),
767 lFlags
, pCtx
, pResponseHandler
);
769 if (!pResponseHandler
) return WBEM_E_INVALID_PARAMETER
;
771 hr
= IWbemObjectSink_QueryInterface( pResponseHandler
, &IID_IWbemObjectSink
, (void **)&sink
);
772 if (FAILED(hr
)) return hr
;
774 EnterCriticalSection( &services
->cs
);
778 FIXME("handle more than one pending async\n");
782 if (!(query
= heap_alloc_zero( sizeof(*query
) ))) goto done
;
783 async
= (struct async_header
*)query
;
785 if (!(init_async( async
, sink
, async_exec_query
)))
790 if (!(query
->str
= heap_strdupW( strQuery
)))
795 hr
= queue_async( async
);
796 if (hr
== S_OK
) services
->async
= async
;
799 heap_free( query
->str
);
804 LeaveCriticalSection( &services
->cs
);
805 IWbemObjectSink_Release( sink
);
809 static HRESULT WINAPI
wbem_services_ExecMethod(
810 IWbemServices
*iface
,
811 const BSTR strObjectPath
,
812 const BSTR strMethodName
,
815 IWbemClassObject
*pInParams
,
816 IWbemClassObject
**ppOutParams
,
817 IWbemCallResult
**ppCallResult
)
819 IEnumWbemClassObject
*result
= NULL
;
820 IWbemClassObject
*obj
= NULL
;
821 struct query
*query
= NULL
;
828 TRACE("%p, %s, %s, %08x, %p, %p, %p, %p\n", iface
, debugstr_w(strObjectPath
),
829 debugstr_w(strMethodName
), lFlags
, pCtx
, pInParams
, ppOutParams
, ppCallResult
);
831 if (lFlags
) FIXME("flags %08x not supported\n", lFlags
);
833 if ((hr
= parse_path( strObjectPath
, &path
)) != S_OK
) return hr
;
834 if (!(str
= query_from_path( path
)))
839 if (!(query
= create_query()))
844 hr
= parse_query( str
, &query
->view
, &query
->mem
);
845 if (hr
!= S_OK
) goto done
;
847 hr
= execute_view( query
->view
);
848 if (hr
!= S_OK
) goto done
;
850 hr
= EnumWbemClassObject_create( query
, (void **)&result
);
851 if (hr
!= S_OK
) goto done
;
853 table
= get_view_table( query
->view
, 0 );
854 hr
= create_class_object( table
->name
, result
, 0, NULL
, &obj
);
855 if (hr
!= S_OK
) goto done
;
857 hr
= get_method( table
, strMethodName
, &func
);
858 if (hr
!= S_OK
) goto done
;
860 hr
= func( obj
, pInParams
, ppOutParams
);
863 if (result
) IEnumWbemClassObject_Release( result
);
864 if (obj
) IWbemClassObject_Release( obj
);
871 static HRESULT WINAPI
wbem_services_ExecMethodAsync(
872 IWbemServices
*iface
,
873 const BSTR strObjectPath
,
874 const BSTR strMethodName
,
877 IWbemClassObject
*pInParams
,
878 IWbemObjectSink
*pResponseHandler
)
881 return WBEM_E_FAILED
;
884 static const IWbemServicesVtbl wbem_services_vtbl
=
886 wbem_services_QueryInterface
,
887 wbem_services_AddRef
,
888 wbem_services_Release
,
889 wbem_services_OpenNamespace
,
890 wbem_services_CancelAsyncCall
,
891 wbem_services_QueryObjectSink
,
892 wbem_services_GetObject
,
893 wbem_services_GetObjectAsync
,
894 wbem_services_PutClass
,
895 wbem_services_PutClassAsync
,
896 wbem_services_DeleteClass
,
897 wbem_services_DeleteClassAsync
,
898 wbem_services_CreateClassEnum
,
899 wbem_services_CreateClassEnumAsync
,
900 wbem_services_PutInstance
,
901 wbem_services_PutInstanceAsync
,
902 wbem_services_DeleteInstance
,
903 wbem_services_DeleteInstanceAsync
,
904 wbem_services_CreateInstanceEnum
,
905 wbem_services_CreateInstanceEnumAsync
,
906 wbem_services_ExecQuery
,
907 wbem_services_ExecQueryAsync
,
908 wbem_services_ExecNotificationQuery
,
909 wbem_services_ExecNotificationQueryAsync
,
910 wbem_services_ExecMethod
,
911 wbem_services_ExecMethodAsync
914 HRESULT
WbemServices_create( const WCHAR
*namespace, LPVOID
*ppObj
)
916 struct wbem_services
*ws
;
918 TRACE("(%p)\n", ppObj
);
920 ws
= heap_alloc( sizeof(*ws
) );
921 if (!ws
) return E_OUTOFMEMORY
;
923 ws
->IWbemServices_iface
.lpVtbl
= &wbem_services_vtbl
;
925 ws
->namespace = heap_strdupW( namespace );
927 InitializeCriticalSection( &ws
->cs
);
928 ws
->cs
.DebugInfo
->Spare
[0] = (DWORD_PTR
)(__FILE__
": wbemprox_services.cs");
930 *ppObj
= &ws
->IWbemServices_iface
;
932 TRACE("returning iface %p\n", *ppObj
);