+#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
+ uint32_t multiuser_flags;
+ kern_return_t kr;
+
+ kr = host_get_multiuser_config_flags(host, &multiuser_flags);
+ if (kr != KERN_SUCCESS) {
+ return kr;
+ }
+ *multiuser_mode = (multiuser_flags & kIsMultiUserDevice) == kIsMultiUserDevice;
+ return KERN_SUCCESS;
+#else