/* Returns: (nullable) (transfer full): a #GWin32RegistryKey or NULL if can't be opened. Free with g_object_unref().  */
GWin32RegistryKey* g_win32_registry_key_new(const gchar *path, GError **error)
/* Returns: (nullable) (transfer full): a #GWin32RegistryKey or NULL if can't be opened. Free with g_object_unref().  */
GWin32RegistryKey* g_win32_registry_key_new(const gchar *path, GError **error)
{
  g_return_val_if_fail (path != NULL, NULL);
  return g_initable_new (G_TYPE_WIN32_REGISTRY_KEY,
                         NULL,
                         error,
                         "path",
                         path,
                         NULL);
}