~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to tools/WiX/sdk/inc/certutil.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="certutil.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
//    Certificate helper functions.
 
17
// </summary>
 
18
//-------------------------------------------------------------------------------------------------
 
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
 
24
HRESULT DAPI CertReadProperty(
 
25
    __in PCCERT_CONTEXT pCertContext,
 
26
    __in DWORD dwProperty,
 
27
    __deref_out_bound LPVOID pvValue
 
28
    );
 
29
 
 
30
HRESULT DAPI GetCryptProvFromCert(
 
31
      __in_opt HWND hwnd,
 
32
      __in PCCERT_CONTEXT pCert,
 
33
      __out HCRYPTPROV *phCryptProv,
 
34
      __out DWORD *pdwKeySpec,
 
35
      __in BOOL *pfDidCryptAcquire,
 
36
      __deref_opt_out LPWSTR *ppwszTmpContainer,
 
37
      __deref_opt_out LPWSTR *ppwszProviderName,
 
38
      __out DWORD *pdwProviderType
 
39
      );
 
40
 
 
41
HRESULT DAPI FreeCryptProvFromCert(
 
42
    __in BOOL fAcquired,
 
43
    __in HCRYPTPROV hProv,
 
44
    __in_opt LPWSTR pwszCapiProvider,
 
45
    __in DWORD dwProviderType,
 
46
    __in_opt LPWSTR pwszTmpContainer
 
47
    );
 
48
 
 
49
HRESULT DAPI GetProvSecurityDesc(
 
50
      __in HCRYPTPROV hProv,
 
51
      __deref_out SECURITY_DESCRIPTOR** pSecurity
 
52
      );
 
53
 
 
54
HRESULT DAPI SetProvSecurityDesc(
 
55
    __in HCRYPTPROV hProv,
 
56
    __in SECURITY_DESCRIPTOR* pSecurity
 
57
    );
 
58
 
 
59
BOOL DAPI CertHasPrivateKey(
 
60
    __in PCCERT_CONTEXT pCertContext,
 
61
    __out_opt DWORD* pdwKeySpec
 
62
    );
 
63
 
 
64
HRESULT DAPI CertInstallSingleCertificate(
 
65
    __in HCERTSTORE hStore,
 
66
    __in PCCERT_CONTEXT pCertContext,
 
67
    __in LPCWSTR wzName
 
68
    );
 
69
#ifdef __cplusplus
 
70
}
 
71
#endif