The StopService method stops the DNS Server.
Syntax
uint32 StopService();
Parameters
This method has no parameters.
Return value
ERROR_SUCCESS indicates the service was successfully stopped. Any other value is an error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | None supported |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Namespace | Root\MicrosoftDNS |
| MOF | Dnsprov.mof |
See also
StartService Method of the MicrosoftDNS_Server Class
StartScavenging Method of the MicrosoftDNS_Server Class
GetDistinguishedName Method of the MicrosoftDNS_Server Class
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
