summaryrefslogtreecommitdiff
path: root/src/ext/Util/ca/scanet.h
diff options
context:
space:
mode:
authorBevan Weiss <bevan.weiss@gmail.com>2025-01-03 15:06:15 +1100
committerRob Mensching <rob@firegiant.com>2025-02-11 23:14:49 -0800
commit8f5130afdc60f4957086e41d62cfe9f8d70d5321 (patch)
treeda9f8a9d217eff1484bf78003d52624d1f91433b /src/ext/Util/ca/scanet.h
parentfcae786168ee7c148ac932d725357f9714ad6631 (diff)
downloadwix-8f5130afdc60f4957086e41d62cfe9f8d70d5321.tar.gz
wix-8f5130afdc60f4957086e41d62cfe9f8d70d5321.tar.bz2
wix-8f5130afdc60f4957086e41d62cfe9f8d70d5321.zip
Fix ups for Domain Group creation / removal.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
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);