ReactOS 0.4.15-dev-7931-gfd331f1
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
26
27#ifdef __cplusplus
28extern "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
59typedef struct CRYPTCATATTRIBUTE_
60{
68
69typedef struct CRYPTCATMEMBER_
70{
83
84typedef struct CATALOG_INFO_
85{
89
90typedef struct CRYPTCATCDF_
91{
100
101#include <poppack.h>
102
104
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
struct CATALOG_INFO_ CATALOG_INFO
BOOL WINAPI CryptCATCDFClose(CRYPTCATCDF *)
Definition: crypt.c:984
CRYPTCATMEMBER *WINAPI CryptCATGetMemberInfo(HANDLE, LPWSTR)
Definition: crypt.c:596
CRYPTCATCDF *WINAPI CryptCATCDFOpen(LPWSTR, PFN_CDF_PARSE_ERROR_CALLBACK)
Definition: crypt.c:1020
HANDLE WINAPI CryptCATOpen(LPWSTR, DWORD, HCRYPTPROV, DWORD, DWORD)
Definition: crypt.c:854
struct CRYPTCATATTRIBUTE_ CRYPTCATATTRIBUTE
BOOL WINAPI CryptCATCatalogInfoFromContext(HCATINFO, CATALOG_INFO *, DWORD)
Definition: crypt.c:835
BOOL WINAPI CryptCATAdminReleaseCatalogContext(HCATADMIN, HCATINFO, DWORD)
Definition: crypt.c:412
HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN, PWSTR, PWSTR, DWORD)
Definition: crypt.c:162
BOOL WINAPI CryptCATAdminRemoveCatalog(HCATADMIN, LPCWSTR, DWORD)
Definition: crypt.c:475
BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE, DWORD *, BYTE *, DWORD)
Definition: crypt.c:219
CRYPTCATATTRIBUTE *WINAPI CryptCATGetAttrInfo(HANDLE, CRYPTCATMEMBER *, LPWSTR)
Definition: crypt.c:563
BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN, DWORD)
Definition: crypt.c:444
BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN *, const GUID *, DWORD)
Definition: crypt.c:97
CRYPTCATATTRIBUTE *WINAPI CryptCATCDFEnumCatAttributes(CRYPTCATCDF *, CRYPTCATATTRIBUTE *, PFN_CDF_PARSE_ERROR_CALLBACK)
Definition: crypt.c:994
HANDLE HCATINFO
Definition: mscat.h:25
struct CRYPTCATMEMBER_ CRYPTCATMEMBER
BOOL WINAPI CryptCATClose(HANDLE)
Definition: crypt.c:540
void(WINAPI * PFN_CDF_PARSE_ERROR_CALLBACK)(DWORD, DWORD, WCHAR *)
Definition: mscat.h:103
HANDLE HCATADMIN
Definition: mscat.h:24
CRYPTCATATTRIBUTE *WINAPI CryptCATEnumerateAttr(HANDLE, CRYPTCATMEMBER *, CRYPTCATATTRIBUTE *)
Definition: crypt.c:614
struct CRYPTCATCDF_ CRYPTCATCDF
HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN, BYTE *, DWORD, DWORD, HCATINFO *)
Definition: crypt.c:280
CRYPTCATATTRIBUTE *WINAPI CryptCATGetCatAttrInfo(HANDLE, LPWSTR)
Definition: crypt.c:581
BOOL WINAPI CryptCATAdminResolveCatalogPath(HCATADMIN, WCHAR *, CATALOG_INFO *, DWORD)
Definition: crypt.c:517
CRYPTCATATTRIBUTE *WINAPI CryptCATEnumerateCatAttr(HANDLE, CRYPTCATATTRIBUTE *)
Definition: crypt.c:632
LPWSTR WINAPI CryptCATCDFEnumMembersByCDFTagEx(CRYPTCATCDF *, LPWSTR, PFN_CDF_PARSE_ERROR_CALLBACK, CRYPTCATMEMBER **, BOOL, LPVOID)
Definition: crypt.c:1006
CRYPTCATMEMBER *WINAPI CryptCATEnumerateMember(HANDLE, CRYPTCATMEMBER *)
Definition: crypt.c:650
#define DWORD
Definition: nt_native.h:44
WCHAR wszCatalogFile[MAX_PATH]
Definition: mscat.h:87
DWORD cbStruct
Definition: mscat.h:86
LPWSTR pwszReferenceTag
Definition: mscat.h:62
BYTE * pbValue
Definition: mscat.h:65
DWORD cbValue
Definition: mscat.h:64
DWORD cbStruct
Definition: mscat.h:61
DWORD dwReserved
Definition: mscat.h:66
DWORD dwAttrTypeAndAction
Definition: mscat.h:63
BOOL fEOF
Definition: mscat.h:96
DWORD dwCurFilePos
Definition: mscat.h:94
HANDLE hCATStore
Definition: mscat.h:98
HANDLE hFile
Definition: mscat.h:93
DWORD dwLastMemberOffset
Definition: mscat.h:95
LPWSTR pwszResultDir
Definition: mscat.h:97
DWORD cbStruct
Definition: mscat.h:92
DWORD dwReserved
Definition: mscat.h:78
CRYPT_ATTR_BLOB sEncodedIndirectData
Definition: mscat.h:80
struct SIP_INDIRECT_DATA_ * pIndirectData
Definition: mscat.h:76
GUID gSubjectType
Definition: mscat.h:74
HANDLE hReserved
Definition: mscat.h:79
DWORD cbStruct
Definition: mscat.h:71
DWORD dwCertVersion
Definition: mscat.h:77
CRYPT_ATTR_BLOB sEncodedMemberInfo
Definition: mscat.h:81
DWORD fdwMemberFlags
Definition: mscat.h:75
LPWSTR pwszFileName
Definition: mscat.h:73
LPWSTR pwszReferenceTag
Definition: mscat.h:72
uint16_t * PWSTR
Definition: typedefs.h:56
ULONG_PTR HCRYPTPROV
Definition: wincrypt.h:46
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193