+ list_applications_windows_from_path (g, h, ret, hivepath,
+ sizeof hivepath / sizeof hivepath[0]);
+
+ /* 32-bit emulated Windows apps running on the WOW64 emulator.
+ * http://support.microsoft.com/kb/896459 (RHBZ#692545).
+ */
+ const char *hivepath2[] =
+ { "WOW6432node", "Microsoft", "Windows", "CurrentVersion", "Uninstall" };
+ list_applications_windows_from_path (g, h, ret, hivepath2,
+ sizeof hivepath2 / sizeof hivepath2[0]);
+
+ out:
+ if (h) hivex_close (h);
+ free (software_path);
+
+ /* Delete the temporary file. */
+ unlink (software_local);
+#undef software_local_len
+
+ return ret;
+}
+
+static void
+list_applications_windows_from_path (guestfs_h *g, hive_h *h,
+ struct guestfs_application_list *apps,
+ const char **path, size_t path_len)
+{
+ hive_node_h *children = NULL;
+ hive_node_h node;