Store the new style before redrawing and repositioning the control.
[wine/multimedia.git] / include / wintrust.h
blob9f84c2bfa2aaca3247713dc2828050bd272fb764
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 } WINTRUST_DATA, *PWINTRUST_DATA;
103 #include <poppack.h>
106 #ifdef __cplusplus
107 extern "C" {
108 #endif
110 LONG WINAPI WinVerifyTrust(HWND,GUID*,WINTRUST_DATA*);
112 #ifdef __cplusplus
114 #endif
116 #endif