ReactOS  0.4.15-dev-1033-gd7d716a
mscat.h
Go to the documentation of this file.
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 #ifndef __WINE_MSCAT_H
20 #define __WINE_MSCAT_H
21 
22 #include <mssip.h>
23 
24 typedef HANDLE HCATADMIN;
25 typedef HANDLE HCATINFO;
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #define CRYPTCAT_OPEN_CREATENEW 0x00000001
32 #define CRYPTCAT_OPEN_ALWAYS 0x00000002
33 #define CRYPTCAT_OPEN_EXISTING 0x00000004
34 #define CRYPTCAT_OPEN_EXCLUDE_PAGE_HASHES 0x00010000
35 #define CRYPTCAT_OPEN_INCLUDE_PAGE_HASHES 0x00020000
36 #define CRYPTCAT_OPEN_VERIFYSIGHASH 0x10000000
37 #define CRYPTCAT_OPEN_NO_CONTENT_HCRYPTMSG 0x20000000
38 #define CRYPTCAT_OPEN_SORTED 0x40000000
39 #define CRYPTCAT_OPEN_FLAGS_MASK 0xffff0000
40 
41 #define CRYPTCAT_E_AREA_HEADER 0x00000000
42 #define CRYPTCAT_E_AREA_MEMBER 0x00010000
43 #define CRYPTCAT_E_AREA_ATTRIBUTE 0x00020000
44 
45 #define CRYPTCAT_E_CDF_UNSUPPORTED 0x00000001
46 #define CRYPTCAT_E_CDF_DUPLICATE 0x00000002
47 #define CRYPTCAT_E_CDF_TAGNOTFOUND 0x00000004
48 
49 #define CRYPTCAT_E_CDF_MEMBER_FILE_PATH 0x00010001
50 #define CRYPTCAT_E_CDF_MEMBER_INDIRECTDATA 0x00010002
51 #define CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND 0x00010004
52 
53 #define CRYPTCAT_E_CDF_BAD_GUID_CONV 0x00020001
54 #define CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES 0x00020002
55 #define CRYPTCAT_E_CDF_ATTR_TYPECOMBO 0x00020004
56 
57 #include <pshpack8.h>
58 
59 typedef struct CRYPTCATATTRIBUTE_
60 {
68 
69 typedef struct CRYPTCATMEMBER_
70 {
83 
84 typedef struct CATALOG_INFO_
85 {
88 } CATALOG_INFO;
89 
90 typedef struct CRYPTCATCDF_
91 {
99 } CRYPTCATCDF;
100 
101 #include <poppack.h>
102 
104 
119  CRYPTCATMEMBER **, BOOL, LPVOID);
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
struct CRYPTCATATTRIBUTE_ CRYPTCATATTRIBUTE
DWORD cbValue
Definition: mscat.h:64
CRYPTCATATTRIBUTE *WINAPI CryptCATEnumerateAttr(HANDLE, CRYPTCATMEMBER *, CRYPTCATATTRIBUTE *)
Definition: crypt.c:614
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
LPWSTR pwszReferenceTag
Definition: mscat.h:62
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL WINAPI CryptCATAdminRemoveCatalog(HCATADMIN, LPCWSTR, DWORD)
Definition: crypt.c:475
DWORD dwReserved
Definition: mscat.h:66
uint16_t * PWSTR
Definition: typedefs.h:56
DWORD dwCertVersion
Definition: mscat.h:77
GUID gSubjectType
Definition: mscat.h:74
BOOL WINAPI CryptCATCatalogInfoFromContext(HCATINFO, CATALOG_INFO *, DWORD)
Definition: crypt.c:835
struct CATALOG_INFO_ CATALOG_INFO
BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE, DWORD *, BYTE *, DWORD)
Definition: crypt.c:219
CRYPTCATATTRIBUTE *WINAPI CryptCATEnumerateCatAttr(HANDLE, CRYPTCATATTRIBUTE *)
Definition: crypt.c:632
#define DWORD
Definition: nt_native.h:44
struct CRYPTCATMEMBER_ CRYPTCATMEMBER
void(WINAPI * PFN_CDF_PARSE_ERROR_CALLBACK)(DWORD, DWORD, WCHAR *)
Definition: mscat.h:103
DWORD fdwMemberFlags
Definition: mscat.h:75
CRYPTCATATTRIBUTE *WINAPI CryptCATGetAttrInfo(HANDLE, CRYPTCATMEMBER *, LPWSTR)
Definition: crypt.c:563
unsigned int BOOL
Definition: ntddk_ex.h:94
CRYPTCATCDF *WINAPI CryptCATCDFOpen(LPWSTR, PFN_CDF_PARSE_ERROR_CALLBACK)
Definition: crypt.c:1020
HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN, PWSTR, PWSTR, DWORD)
Definition: crypt.c:162
BYTE * pbValue
Definition: mscat.h:65
BOOL WINAPI CryptCATClose(HANDLE)
Definition: crypt.c:540
HANDLE HCATADMIN
Definition: mscat.h:24
HANDLE hFile
Definition: mscat.h:93
struct SIP_INDIRECT_DATA_ * pIndirectData
Definition: mscat.h:76
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN *, const GUID *, DWORD)
Definition: crypt.c:97
#define MAX_PATH
Definition: compat.h:34
#define WINAPI
Definition: msvc.h:6
HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN, BYTE *, DWORD, DWORD, HCATINFO *)
Definition: crypt.c:280
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE hReserved
Definition: mscat.h:79
DWORD dwReserved
Definition: mscat.h:78
struct CRYPTCATCDF_ CRYPTCATCDF
BOOL WINAPI CryptCATAdminReleaseCatalogContext(HCATADMIN, HCATINFO, DWORD)
Definition: crypt.c:412
DWORD cbStruct
Definition: mscat.h:71
CRYPTCATATTRIBUTE *WINAPI CryptCATGetCatAttrInfo(HANDLE, LPWSTR)
Definition: crypt.c:581
LPWSTR pwszResultDir
Definition: mscat.h:97
unsigned char BYTE
Definition: xxhash.c:193
CRYPTCATATTRIBUTE *WINAPI CryptCATCDFEnumCatAttributes(CRYPTCATCDF *, CRYPTCATATTRIBUTE *, PFN_CDF_PARSE_ERROR_CALLBACK)
Definition: crypt.c:994
DWORD dwAttrTypeAndAction
Definition: mscat.h:63
CRYPTCATMEMBER *WINAPI CryptCATEnumerateMember(HANDLE, CRYPTCATMEMBER *)
Definition: crypt.c:650
ULONG_PTR HCRYPTPROV
Definition: wincrypt.h:46
BOOL WINAPI CryptCATAdminResolveCatalogPath(HCATADMIN, WCHAR *, CATALOG_INFO *, DWORD)
Definition: crypt.c:517
WCHAR wszCatalogFile[MAX_PATH]
Definition: mscat.h:87
CRYPT_ATTR_BLOB sEncodedIndirectData
Definition: mscat.h:80
LPWSTR WINAPI CryptCATCDFEnumMembersByCDFTagEx(CRYPTCATCDF *, LPWSTR, PFN_CDF_PARSE_ERROR_CALLBACK, CRYPTCATMEMBER **, BOOL, LPVOID)
Definition: crypt.c:1006
DWORD dwCurFilePos
Definition: mscat.h:94
DWORD cbStruct
Definition: mscat.h:92
DWORD dwLastMemberOffset
Definition: mscat.h:95
HANDLE WINAPI CryptCATOpen(LPWSTR, DWORD, HCRYPTPROV, DWORD, DWORD)
Definition: crypt.c:854
HANDLE HCATINFO
Definition: mscat.h:25
HANDLE hCATStore
Definition: mscat.h:98
CRYPTCATMEMBER *WINAPI CryptCATGetMemberInfo(HANDLE, LPWSTR)
Definition: crypt.c:596
DWORD cbStruct
Definition: mscat.h:61
BOOL fEOF
Definition: mscat.h:96
WCHAR * LPWSTR
Definition: xmlstorage.h:184
CRYPT_ATTR_BLOB sEncodedMemberInfo
Definition: mscat.h:81
LPWSTR pwszFileName
Definition: mscat.h:73
BOOL WINAPI CryptCATCDFClose(CRYPTCATCDF *)
Definition: crypt.c:984
LPWSTR pwszReferenceTag
Definition: mscat.h:72
DWORD cbStruct
Definition: mscat.h:86
BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN, DWORD)
Definition: crypt.c:444