<div class="content"><p>The SetSecurity method updates the system-wide security
descriptor of the provider. Because the security descriptor is system-wide, the
update will impact the ability of all users (local or remote) to view, modify,
enable, or delete the provider. </p><dl>
<dd>
<div><pre> HRESULT SetSecurity(
   [in] BSTR Sddl
 );
</pre></div>
</dd></dl><p><b>Sddl: </b>Supplies a string that describes the
security descriptor for the object, using the Security Descriptor Description
Language (SDDL), as specified in <a href="../ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2" data-linktype="relative-path">[MS-DTYP]</a>
section <a href="../ms-dtyp/4f4251cc-23b6-44b6-93ba-69688422cb06" data-linktype="relative-path">2.5.1</a>.</p><p><b>Return Values: </b>This method MUST return an
HRESULT with the severity bit clear on success as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>;
otherwise, it MUST return one of the errors as defined in <a href="590752a5-ddc3-49e4-9914-147a90bd0193" data-linktype="relative-path">2.2.1</a> or one of the errors
as defined in [MS-ERREF] section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>.</p></div>