private static extern NativeStatusCode UpdateScopedRegistry([Out] out long operationId, string registryName, UpdateScopedRegistryOptions options);
Ejemplo n.º 2
0
        internal static UpdateScopedRegistryRequest UpdateScopedRegistry(string registryName, UpdateScopedRegistryOptions options)
        {
            if (string.IsNullOrWhiteSpace(registryName))
            {
                throw new ArgumentException("Registry name cannot be null, empty or whitespace", nameof(registryName));
            }

            long operationId;
            var  status = UpdateScopedRegistry(out operationId, registryName, options);

            return(new UpdateScopedRegistryRequest(operationId, status));
        }