- don't use the UNIMPLEMENTED macro in ObFindHandleForObject because it's actually...
[reactos.git] / reactos / include / wintrust.h
1 /*
2 * PROJECT : ReactOS
3 * FILE : wintrust.h
4 * DESCRIPTION: ReactOS wintrust lib
5 * DATE : 25.08.2004 (My birthday!)
6 * AUTHOR : Semyon Novikov <tappak@freemail.ru>
7 *
8 * --------------------------------------------------------------------
9 * Copyright (c) 1998, 2004
10 * ReactOS developers team. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 * 3. All advertising materials mentioning features or use of this software
21 * must display the following acknowledgement:
22 * This product includes software developed by the ReactOS developers team
23 * 4. Neither the name of project nor the names of its developers
24 * may be used to endorse or promote products derived from this software
25 * without specific prior written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
28 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
31 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 typedef struct _CRYPT_TRUST_REG_ENTRY
40 {
41 DWORD cbStruct;
42
43 WCHAR* pwszDLLName;
44 WCHAR* pwszFunctionName;
45 } CRYPT_TRUST_REG_ENTRY,*PCRYPT_TRUST_REG_ENTRY;
46
47 typedef struct _WINTRUST_DATA
48 {
49 DWORD cbStruct;
50
51 LPVOID pPolicyCallbackData;
52 LPVOID pSIPClientData;
53 DWORD dwUIChoice;
54 DWORD fdwRevocationChecks;
55 DWORD dwUnionChoice;
56
57 union {
58 struct WINTRUST_SGNR_INFO_* pSgnr;
59 struct WINTRUST_CERT_INFO_* pCert;
60 struct WINTRUST_FILE_INFO_* pFile;
61 struct WINTRUST_CATALOG_INFO_* pCatalog;
62 struct WINTRUST_BLOB_INFO_* pBlob;
63 };
64
65 DWORD dwProvFlags;
66 DWORD dwStateAction;
67 HANDLE hWVTStateData;
68 DWORD dwUIContext;
69 WCHAR* pwszURLReference;
70
71 } WINTRUST_DATA,*PWINTRUST_DATA;
72
73 typedef struct _CRYPT_REGISTER_ACTIONID
74 {
75 DWORD cbStruct;
76
77 CRYPT_TRUST_REG_ENTRY sInitProvider;
78 CRYPT_TRUST_REG_ENTRY sObjectProvider;
79 CRYPT_TRUST_REG_ENTRY sSignatureProvider;
80 CRYPT_TRUST_REG_ENTRY sCertificateProvider;
81 CRYPT_TRUST_REG_ENTRY sCertificatePolicyProvider;
82 CRYPT_TRUST_REG_ENTRY sFinalPolicyProvider;
83 CRYPT_TRUST_REG_ENTRY sTestPolicyProvider;
84 CRYPT_TRUST_REG_ENTRY sCleanupProvider;
85
86 } CRYPT_REGISTER_ACTIONID,*PCRYPT_REGISTER_ACTIONID;