aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Util/ca/scanet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/Util/ca/scanet.h')
-rw-r--r--src/ext/Util/ca/scanet.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ext/Util/ca/scanet.h b/src/ext/Util/ca/scanet.h
index 1fee61f8..efe6a408 100644
--- a/src/ext/Util/ca/scanet.h
+++ b/src/ext/Util/ca/scanet.h
@@ -1,4 +1,16 @@
1#pragma once 1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3 3
4HRESULT GetDomainServerName(LPCWSTR pwzDomain, LPWSTR* ppwzServerName, ULONG flags = 0); 4
5/**
6 * Locates a domain controller (server name) for a given input domain.
7 * Flags can be provided where required (as per those for DsGetDcName) for a specific server to be returned.
8 * NOTE: Where the domain provided is identical to the local machine, this function will return NULL, such that the
9 * result can be provided directly to NetUserAdd or similar functions.
10 *
11 * @param pwzDomain Pointer to the domain name to be queried
12 * @param ppwzServerName Pointer to the server name to be returned
13 * @param flags Flags to be used in the DsGetDcName call(s)
14 * @return HRESULT to indicate if an error was encountered
15 */
16HRESULT GetDomainServerName(LPCWSTR pwzDomain, LPWSTR* ppwzServerName, ULONG flags);