VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mscat.h@ 33223

Last change on this file since 33223 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 5.4 KB
Line 
1/*
2 * Copyright (C) 2004 Francois Gouget
3 *
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.
8 *
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.
13 *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_MSCAT_H
29#define __WINE_MSCAT_H
30
31#include <mssip.h>
32
33typedef HANDLE HCATADMIN;
34typedef HANDLE HCATINFO;
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#define CRYPTCAT_OPEN_CREATENEW 0x00000001
41#define CRYPTCAT_OPEN_ALWAYS 0x00000002
42#define CRYPTCAT_OPEN_EXISTING 0x00000004
43#define CRYPTCAT_OPEN_EXCLUDE_PAGE_HASHES 0x00010000
44#define CRYPTCAT_OPEN_INCLUDE_PAGE_HASHES 0x00020000
45#define CRYPTCAT_OPEN_VERIFYSIGHASH 0x10000000
46#define CRYPTCAT_OPEN_NO_CONTENT_HCRYPTMSG 0x20000000
47#define CRYPTCAT_OPEN_SORTED 0x40000000
48#define CRYPTCAT_OPEN_FLAGS_MASK 0xffff0000
49
50#define CRYPTCAT_E_AREA_HEADER 0x00000000
51#define CRYPTCAT_E_AREA_MEMBER 0x00010000
52#define CRYPTCAT_E_AREA_ATTRIBUTE 0x00020000
53
54#define CRYPTCAT_E_CDF_UNSUPPORTED 0x00000001
55#define CRYPTCAT_E_CDF_DUPLICATE 0x00000002
56#define CRYPTCAT_E_CDF_TAGNOTFOUND 0x00000004
57
58#define CRYPTCAT_E_CDF_MEMBER_FILE_PATH 0x00010001
59#define CRYPTCAT_E_CDF_MEMBER_INDIRECTDATA 0x00010002
60#define CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND 0x00010004
61
62#define CRYPTCAT_E_CDF_BAD_GUID_CONV 0x00020001
63#define CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES 0x00020002
64#define CRYPTCAT_E_CDF_ATTR_TYPECOMBO 0x00020004
65
66#include <pshpack8.h>
67
68typedef struct CRYPTCATATTRIBUTE_
69{
70 DWORD cbStruct;
71 LPWSTR pwszReferenceTag;
72 DWORD dwAttrTypeAndAction;
73 DWORD cbValue;
74 BYTE *pbValue;
75 DWORD dwReserved;
76} CRYPTCATATTRIBUTE;
77
78typedef struct CRYPTCATMEMBER_
79{
80 DWORD cbStruct;
81 LPWSTR pwszReferenceTag;
82 LPWSTR pwszFileName;
83 GUID gSubjectType;
84 DWORD fdwMemberFlags;
85 struct SIP_INDIRECT_DATA_* pIndirectData;
86 DWORD dwCertVersion;
87 DWORD dwReserved;
88 HANDLE hReserved;
89 CRYPT_ATTR_BLOB sEncodedIndirectData;
90 CRYPT_ATTR_BLOB sEncodedMemberInfo;
91} CRYPTCATMEMBER;
92
93typedef struct CATALOG_INFO_
94{
95 DWORD cbStruct;
96 WCHAR wszCatalogFile[MAX_PATH];
97} CATALOG_INFO;
98
99typedef struct CRYPTCATCDF_
100{
101 DWORD cbStruct;
102 HANDLE hFile;
103 DWORD dwCurFilePos;
104 DWORD dwLastMemberOffset;
105 BOOL fEOF;
106 LPWSTR pwszResultDir;
107 HANDLE hCATStore;
108} CRYPTCATCDF;
109
110#include <poppack.h>
111
112typedef void (WINAPI *PFN_CDF_PARSE_ERROR_CALLBACK)(DWORD, DWORD, WCHAR *);
113
114BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN*,const GUID*,DWORD);
115HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN,PWSTR,PWSTR,DWORD);
116BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE,DWORD*,BYTE*,DWORD);
117HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN,BYTE*,DWORD,DWORD,HCATINFO*);
118BOOL WINAPI CryptCATAdminReleaseCatalogContext(HCATADMIN,HCATINFO,DWORD);
119BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN,DWORD);
120BOOL WINAPI CryptCATAdminRemoveCatalog(HCATADMIN,LPCWSTR,DWORD);
121BOOL WINAPI CryptCATAdminResolveCatalogPath(HCATADMIN, WCHAR *, CATALOG_INFO *, DWORD);
122BOOL WINAPI CryptCATCatalogInfoFromContext(HCATINFO, CATALOG_INFO *, DWORD);
123BOOL WINAPI CryptCATCDFClose(CRYPTCATCDF *);
124CRYPTCATATTRIBUTE * WINAPI CryptCATCDFEnumCatAttributes(CRYPTCATCDF *, CRYPTCATATTRIBUTE *,
125 PFN_CDF_PARSE_ERROR_CALLBACK);
126LPWSTR WINAPI CryptCATCDFEnumMembersByCDFTagEx(CRYPTCATCDF *, LPWSTR,
127 PFN_CDF_PARSE_ERROR_CALLBACK,
128 CRYPTCATMEMBER **, BOOL, LPVOID);
129CRYPTCATCDF * WINAPI CryptCATCDFOpen(LPWSTR, PFN_CDF_PARSE_ERROR_CALLBACK);
130BOOL WINAPI CryptCATClose(HANDLE);
131CRYPTCATATTRIBUTE * WINAPI CryptCATEnumerateAttr(HANDLE, CRYPTCATMEMBER *, CRYPTCATATTRIBUTE *);
132CRYPTCATATTRIBUTE * WINAPI CryptCATEnumerateCatAttr(HANDLE, CRYPTCATATTRIBUTE *);
133CRYPTCATMEMBER * WINAPI CryptCATEnumerateMember(HANDLE,CRYPTCATMEMBER *);
134CRYPTCATATTRIBUTE * WINAPI CryptCATGetAttrInfo(HANDLE, CRYPTCATMEMBER *, LPWSTR);
135CRYPTCATATTRIBUTE * WINAPI CryptCATGetCatAttrInfo(HANDLE, LPWSTR);
136CRYPTCATMEMBER * WINAPI CryptCATGetMemberInfo(HANDLE, LPWSTR);
137HANDLE WINAPI CryptCATOpen(LPWSTR,DWORD,HCRYPTPROV,DWORD,DWORD);
138
139#ifdef __cplusplus
140}
141#endif
142
143#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette