Return a real error in LsaLookupSids.
[wine/multimedia.git] / include / wintrust.h
blobe86179b6309d0d698f678865ea728933f0ccd730
1 /*
2 * Copyright (C) 2004 Francois Gouget
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINTRUST_H
20 #define __WINE_WINTRUST_H
22 #include <wincrypt.h>
25 #include <pshpack8.h>
27 typedef struct WINTRUST_FILE_INFO_
29 DWORD cbStruct;
30 LPCWSTR pcwszFilePath;
31 HANDLE hFile;
32 GUID* pgKnownSubject;
33 } WINTRUST_FILE_INFO, *PWINTRUST_FILE_INFO;
35 typedef struct WINTRUST_CATALOG_INFO_
37 DWORD cbStruct;
38 DWORD dwCatalogVersion;
39 LPCWSTR pcwszCatalogFilePath;
40 LPCWSTR pcwszMemberTag;
41 LPCWSTR pcwszMemberFilePath;
42 HANDLE hMemberFile;
43 BYTE* pbCalculatedFileHash;
44 DWORD cbCalculatedFileHash;
45 PCCTL_CONTEXT pcCatalogContext;
46 } WINTRUST_CATALOG_INFO, *PWINTRUST_CATALOG_INFO;
48 typedef struct WINTRUST_BLOB_INFO_
50 DWORD cbStruct;
51 GUID gSubject;
52 LPCWSTR pcwszDisplayName;
53 DWORD cbMemObject;
54 BYTE* pbMemObject;
55 DWORD cbMemSignedMsg;
56 BYTE* pbMemSignedMsg;
57 } WINTRUST_BLOB_INFO, *PWINTRUST_BLOB_INFO;
59 typedef struct WINTRUST_SGNR_INFO_
61 DWORD cbStruct;
62 LPCWSTR pcwszDisplayName;
63 CMSG_SIGNER_INFO* psSignerInfo;
64 DWORD chStores;
65 HCERTSTORE* pahStores;
66 } WINTRUST_SGNR_INFO, *PWINTRUST_SGNR_INFO;
68 typedef struct WINTRUST_CERT_INFO_
70 DWORD cbStruct;
71 LPCWSTR pcwszDisplayName;
72 CERT_CONTEXT* psCertContext;
73 DWORD chStores;
74 HCERTSTORE* pahStores;
75 DWORD dwFlags;
76 FILETIME* psftVerifyAsOf;
77 } WINTRUST_CERT_INFO, *PWINTRUST_CERT_INFO;
80 typedef struct _WINTRUST_DATA
82 DWORD cbStruct;
83 LPVOID pPolicyCallbackData;
84 LPVOID pSIPClientData;
85 DWORD dwUIChoice;
86 DWORD fdwRevocationChecks;
87 DWORD dwUnionChoice;
88 union
90 struct WINTRUST_FILE_INFO_* pFile;
91 struct WINTRUST_CATALOG_INFO_* pCatalog;
92 struct WINTRUST_BLOB_INFO_* pBlob;
93 struct WINTRUST_SGNR_INFO_* pSgnr;
94 struct WINTRUST_CERT_INFO_* pCert;
95 } DUMMYUNIONNAME;
97 DWORD dwStateAction;
98 HANDLE hWVTStateData;
99 WCHAR* pwszURLReference;
100 DWORD dwProvFlags;
101 DWORD dwUIContext;
102 } WINTRUST_DATA, *PWINTRUST_DATA;
104 typedef struct _CRYPT_TRUST_REG_ENTRY
106 DWORD cbStruct;
107 WCHAR *pwszDLLName;
108 WCHAR *pwszFunctionName;
109 } CRYPT_TRUST_REG_ENTRY, *PCRYPT_TRUST_REG_ENTRY;
111 typedef struct _CRYPT_REGISTER_ACTIONID
113 DWORD cbStruct;
114 CRYPT_TRUST_REG_ENTRY sInitProvider;
115 CRYPT_TRUST_REG_ENTRY sObjectProvider;
116 CRYPT_TRUST_REG_ENTRY sSignatureProvider;
117 CRYPT_TRUST_REG_ENTRY sCertificateProvider;
118 CRYPT_TRUST_REG_ENTRY sCertificatePolicyProvider;
119 CRYPT_TRUST_REG_ENTRY sFinalPolicyProvider;
120 CRYPT_TRUST_REG_ENTRY sTestPolicyProvider;
121 CRYPT_TRUST_REG_ENTRY sCleanupProvider;
122 } CRYPT_REGISTER_ACTIONID, *PCRYPT_REGISTER_ACTIONID;
124 #include <poppack.h>
127 #ifdef __cplusplus
128 extern "C" {
129 #endif
131 BOOL WINAPI WintrustAddActionID(GUID*,DWORD,CRYPT_REGISTER_ACTIONID*);
132 void WINAPI WintrustGetRegPolicyFlags(DWORD*);
133 LONG WINAPI WinVerifyTrust(HWND,GUID*,WINTRUST_DATA*);
135 #ifdef __cplusplus
137 #endif
139 #endif