blob: 6e5e3b6910e4f0227073f150539a505eaaed4f7d [file] [log] [blame]
#pragma once
//-------------------------------------------------------------------------------------------------
// <copyright file="userutil.h" company="Outercurve Foundation">
// Copyright (c) 2004, Outercurve Foundation.
// This software is released under Microsoft Reciprocal License (MS-RL).
// The license and further copyright text can be found in the file
// LICENSE.TXT at the root directory of the distribution.
// </copyright>
//
// <summary>
// User helper functions.
// </summary>
//-------------------------------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
HRESULT DAPI UserBuildDomainUserName(
__out_ecount_z(cchDest) LPWSTR wzDest,
__in int cchDest,
__in_z LPCWSTR pwzName,
__in_z LPCWSTR pwzDomain
);
HRESULT DAPI UserCheckIsMember(
__in_z LPCWSTR pwzName,
__in_z LPCWSTR pwzDomain,
__in_z LPCWSTR pwzGroupName,
__in_z LPCWSTR pwzGroupDomain,
__out LPBOOL lpfMember
);
HRESULT DAPI UserCreateADsPath(
__in_z LPCWSTR wzObjectDomain,
__in_z LPCWSTR wzObjectName,
__out BSTR *pbstrAdsPath
);
#ifdef __cplusplus
}
#endif