~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to tools/WiX/sdk/inc/userutil.h

  • Committer: Charlie Poole
  • Date: 2012-02-02 01:55:11 UTC
  • mfrom: (3368.1.11 work)
  • Revision ID: charlie@nunit.org-20120202015511-0sspxs5miu16uzse
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
//-------------------------------------------------------------------------------------------------
 
3
// <copyright file="userutil.h" company="Microsoft">
 
4
//    Copyright (c) Microsoft Corporation.  All rights reserved.
 
5
//    
 
6
//    The use and distribution terms for this software are covered by the
 
7
//    Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
 
8
//    which can be found in the file CPL.TXT at the root of this distribution.
 
9
//    By using this software in any fashion, you are agreeing to be bound by
 
10
//    the terms of this license.
 
11
//    
 
12
//    You must not remove this notice, or any other, from this software.
 
13
// </copyright>
 
14
// 
 
15
// <summary>
 
16
//    User helper funtions.
 
17
// </summary>
 
18
//-------------------------------------------------------------------------------------------------
 
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
 
24
HRESULT DAPI UserBuildDomainUserName(
 
25
    __out_ecount_z(cchDest) LPWSTR wzDest,
 
26
    __in int cchDest,
 
27
    __in_z LPCWSTR pwzName,
 
28
    __in_z LPCWSTR pwzDomain
 
29
    );
 
30
 
 
31
HRESULT DAPI UserCheckIsMember(
 
32
    __in_z LPCWSTR pwzName,
 
33
    __in_z LPCWSTR pwzDomain,
 
34
    __in_z LPCWSTR pwzGroupName,
 
35
    __in_z LPCWSTR pwzGroupDomain,
 
36
    __out LPBOOL lpfMember
 
37
    );
 
38
 
 
39
HRESULT DAPI UserCreateADsPath(
 
40
    __in_z LPCWSTR wzObjectDomain, 
 
41
    __in_z LPCWSTR wzObjectName,
 
42
    __out BSTR *pbstrAdsPath
 
43
    );
 
44
 
 
45
#ifdef __cplusplus
 
46
}
 
47
#endif