Commit f817cd7a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Add a stub implementation of IWbemServices.

parent 7a16382c
......@@ -3,6 +3,7 @@ IMPORTS = ole32 advapi32
C_SRCS = \
main.c \
services.c \
wbemlocator.c
IDL_R_SRCS = wbemprox.idl
......
......@@ -23,7 +23,6 @@
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "objbase.h"
#include "wbemcli.h"
......@@ -98,8 +97,21 @@ static HRESULT WINAPI wbem_locator_ConnectServer(
IWbemContext *pCtx,
IWbemServices **ppNamespace)
{
HRESULT hr;
FIXME("%p, %s, %s, %s, %s, 0x%08x, %s, %p, %p)\n", iface, debugstr_w(NetworkResource), debugstr_w(User),
debugstr_w(Password), debugstr_w(Locale), SecurityFlags, debugstr_w(Authority), pCtx, ppNamespace);
if (((NetworkResource[0] == '\\' && NetworkResource[1] == '\\') ||
(NetworkResource[0] == '/' && NetworkResource[1] == '/')) && NetworkResource[2] != '.')
{
FIXME("remote computer not supported\n");
return WBEM_E_TRANSPORT_FAILURE;
}
hr = WbemServices_create( NULL, (void **)ppNamespace );
if (SUCCEEDED( hr ))
return WBEM_NO_ERROR;
return WBEM_E_FAILED;
}
......
......@@ -17,3 +17,4 @@
*/
HRESULT WbemLocator_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT WbemServices_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment