summaryrefslogtreecommitdiff
path: root/source4/lib/wmi/wmicore.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-12 19:55:49 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-15 17:40:19 +0200
commit54437f1e8a9274cb7afa3b850d709568414dff71 (patch)
tree9c5aa6af128b870fd602a9f882405d035ce45148 /source4/lib/wmi/wmicore.c
parentb91a7fa1661e03549c3526a408f053bd16e06afa (diff)
downloadsamba-54437f1e8a9274cb7afa3b850d709568414dff71.tar.gz
samba-54437f1e8a9274cb7afa3b850d709568414dff71.tar.bz2
samba-54437f1e8a9274cb7afa3b850d709568414dff71.zip
More improvements.
Diffstat (limited to 'source4/lib/wmi/wmicore.c')
-rw-r--r--source4/lib/wmi/wmicore.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/source4/lib/wmi/wmicore.c b/source4/lib/wmi/wmicore.c
index cb896f4a5d..cdfe037b69 100644
--- a/source4/lib/wmi/wmicore.c
+++ b/source4/lib/wmi/wmicore.c
@@ -1,7 +1,29 @@
+/*
+ WMI Sample client
+ Copyright (C) 2006 Andrzej Hajda <andrzej.hajda@wp.pl>
+ Copyright (C) 2008 Jelmer Vernooij <jelmer@samba.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
#include "includes.h"
#include "auth/credentials/credentials.h"
#include "librpc/gen_ndr/com_dcom.h"
#include "lib/com/dcom/dcom.h"
+#include "librpc/gen_ndr/wmi.h"
+#include "librpc/gen_ndr/com_wmi.h"
struct IWbemServices;
struct IWbemContext;
@@ -12,9 +34,11 @@ struct IWbemContext;
} else { \
DEBUG(1, ("OK : %s\n", msg)); \
}
-
-WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const char *nspace, const char *user, const char *password,
- const char *locale, uint32_t flags, const char *authority, struct IWbemContext* wbem_ctx, struct IWbemServices** services)
+/** FIXME: Use credentials struct rather than user/password here */
+WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const char *nspace,
+ const char *user, const char *password,
+ const char *locale, uint32_t flags, const char *authority,
+ struct IWbemContext* wbem_ctx, struct IWbemServices** services)
{
struct GUID clsid;
struct GUID iid;