return list;
}
+/*
+ turn a NTSTATUS into a MprVar object with lots of funky properties
+*/
+struct MprVar mprNTSTATUS(NTSTATUS status)
+{
+ struct MprVar res, val;
+
+ res = mprCreateObjVar("ntstatus", MPR_DEFAULT_HASH_SIZE);
+
+ val = mprCreateStringVar(nt_errstr(status), 1);
+ mprCreateProperty(&res, "errstr", &val);
+
+ val = mprCreateIntegerVar(NT_STATUS_V(status));
+ mprCreateProperty(&res, "v", &val);
+
+ val = mprCreateBoolVar(NT_STATUS_IS_OK(status));
+ mprCreateProperty(&res, "is_ok", &val);
+
+ val = mprCreateBoolVar(NT_STATUS_IS_ERR(status));
+ mprCreateProperty(&res, "is_err", &val);
+
+ return res;
+}