#include "reactos/ddk/status.h" /* for STATUS_SUCCESS */
#include "reactos/napi/types.h" /* for NTSTATUS */
#include <glib/gmessages.h>
+#include <glib/gmain.h>
/**
{
g_return_val_if_fail(Object!=NULL,STATUS_INVALID_PARAMETER);
+ /* ntfs.sys during IopMountFilesystem() will return STATUS_PENDING
+ * and it expects its ExQueueWorkItem() to be processed before evaluating
+ * the result of its driver call.
+ */
+ while (g_main_context_iteration(
+ NULL, /* context; NULL means default one */
+ FALSE)) /* may_block */
+ g_log(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG,"%s: g_main_context_iteration() proceeded",G_STRLOC);
+
+
/* TODO:thread */
return STATUS_SUCCESS;
}