summaryrefslogtreecommitdiff
path: root/source4/lib/wmi/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-14 15:23:12 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-15 17:40:20 +0200
commite7d49794942e68443518ab83a372857ebd4001c6 (patch)
tree4fc2599c9c72a8ea8121edd7d122cec1940808cd /source4/lib/wmi/tools
parent54437f1e8a9274cb7afa3b850d709568414dff71 (diff)
downloadsamba-e7d49794942e68443518ab83a372857ebd4001c6.tar.gz
samba-e7d49794942e68443518ab83a372857ebd4001c6.tar.bz2
samba-e7d49794942e68443518ab83a372857ebd4001c6.zip
Fix imports.
Diffstat (limited to 'source4/lib/wmi/tools')
-rw-r--r--source4/lib/wmi/tools/wmis.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/lib/wmi/tools/wmis.c b/source4/lib/wmi/tools/wmis.c
index 8c2ba72a0c..72ca4ebdfe 100644
--- a/source4/lib/wmi/tools/wmis.c
+++ b/source4/lib/wmi/tools/wmis.c
@@ -35,11 +35,7 @@
#include "librpc/gen_ndr/com_wmi.h"
#include "librpc/ndr/ndr_table.h"
-struct WBEMCLASS;
-struct WBEMOBJECT;
-enum CIMTYPE_ENUMERATION;
-
-#include "wmi/proto.h"
+#include "lib/wmi/wmi.h"
struct program_args {
char *hostname;
@@ -212,7 +208,8 @@ int main(int argc, char **argv)
printf("2: ReturnCode: %d\n", cnt);
printf("3: Monitoring directory C:\\wmi_test_dir_tmp. Please create/delete files in that directory to see notifications, after 4 events program quits.\n");
- result = IWbemServices_ExecNotificationQuery(pWS, ctx, "WQL", "SELECT * FROM __InstanceOperationEvent WITHIN 1 WHERE Targetinstance ISA 'CIM_DirectoryContainsFile' and TargetInstance.GroupComponent= 'Win32_Directory.Name=\"C:\\\\\\\\wmi_test_dir_tmp\"'", WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_FORWARD_ONLY, NULL, &pEnum);
+ result = IWbemServices_ExecNotificationQuery(pWS, ctx, "WQL",
+ "SELECT * FROM __InstanceOperationEvent WITHIN 1 WHERE Targetinstance ISA 'CIM_DirectoryContainsFile' and TargetInstance.GroupComponent= 'Win32_Directory.Name=\"C:\\\\\\\\wmi_test_dir_tmp\"'", WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_FORWARD_ONLY, NULL, &pEnum);
WERR_CHECK("WMI query execute.");
for (cnt = 0; cnt < 4; ++cnt) {
struct WbemClassObject *co;