wbemprox: Implement IWbemServices::CreateInstanceEnum.

This commit is contained in:
Hans Leidekker 2012-06-26 16:02:04 +02:00 committed by Alexandre Julliard
parent 21ea8b3c3c
commit 1bf73ea81d
1 changed files with 17 additions and 3 deletions

View File

@ -366,13 +366,27 @@ static HRESULT WINAPI wbem_services_DeleteInstanceAsync(
static HRESULT WINAPI wbem_services_CreateInstanceEnum(
IWbemServices *iface,
const BSTR strFilter,
const BSTR strClass,
LONG lFlags,
IWbemContext *pCtx,
IEnumWbemClassObject **ppEnum )
{
FIXME("\n");
return WBEM_E_FAILED;
static const WCHAR selectW[] = {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',0};
WCHAR *query;
HRESULT hr;
TRACE("%p, %s, 0%08x, %p, %p\n", iface, debugstr_w(strClass), lFlags, pCtx, ppEnum);
if (lFlags) FIXME("unsupported flags 0x%08x\n", lFlags);
if (!(query = heap_alloc( strlenW( strClass ) * sizeof(WCHAR) + sizeof(selectW) )))
return E_OUTOFMEMORY;
strcpyW( query, selectW );
strcatW( query, strClass );
hr = exec_query( query, ppEnum );
heap_free( query );
return hr;
}
static HRESULT WINAPI wbem_services_CreateInstanceEnumAsync(