ReactOS 0.4.15-dev-7897-g78dc504
mssip.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002 Patrik Stridvall
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_MSSIP_H
20#define __WINE_MSSIP_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* defined(__cplusplus) */
25
26/**********************************************************************/
27
29
30/**********************************************************************/
31
32#define MSSIP_FLAGS_PROHIBIT_RESIZE_ON_CREATE 0x00010000
33#define MSSIP_FLAGS_USE_CATALOG 0x00020000
34
35#define SPC_INC_PE_RESOURCES_FLAG 0x80
36#define SPC_INC_PE_DEBUG_INFO_FLAG 0x40
37#define SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG 0x20
38
39#define MSSIP_ADDINFO_NONE 0
40#define MSSIP_ADDINFO_FLAT 1
41#define MSSIP_ADDINFO_CATMEMBER 2
42#define MSSIP_ADDINFO_BLOB 3
43#define MSSIP_ADDINFO_NONMSSIP 500
44
45#define SIP_MAX_MAGIC_NUMBER 4
46
47/**********************************************************************/
48
49#include <pshpack8.h>
50typedef struct SIP_SUBJECTINFO_ {
56
59
68
70 union {
75
78#include <poppack.h>
79
80#include <pshpack8.h>
81typedef struct MS_ADDINFO_FLAT_ {
83
86#include <poppack.h>
87
88#include <pshpack8.h>
91
92 struct CRYPTCATSTORE_ *pStore;
95#include <poppack.h>
96
97#include <pshpack8.h>
98typedef struct MS_ADDINFO_BLOB_ {
100
103
107#include <poppack.h>
108
109#include <pshpack8.h>
110typedef struct SIP_INDIRECT_DATA_ {
115#include <poppack.h>
116
122
123#include <pshpack8.h>
124typedef struct SIP_DISPATCH_INFO_ {
126
128
135#include <poppack.h>
136
139
140#include <pshpack8.h>
142{
144
146
149
151
157
159
160 /* NTDDI_VERSION >= NTDDI_WIN8 */
163#include <poppack.h>
164
165/**********************************************************************/
166
172
178
179#ifdef __cplusplus
180} /* extern "C" */
181#endif /* defined(__cplusplus) */
182
183#endif /* __WINE_MSSIP_H */
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL(WINAPI * pCryptSIPGetSignedDataMsg)(SIP_SUBJECTINFO *, DWORD *, DWORD, DWORD *, BYTE *)
Definition: mssip.h:117
struct SIP_INDIRECT_DATA_ SIP_INDIRECT_DATA
struct MS_ADDINFO_BLOB_ MS_ADDINFO_BLOB
BOOL WINAPI CryptSIPLoad(const GUID *, DWORD, SIP_DISPATCH_INFO *)
Definition: sip.c:690
BOOL(WINAPI * pCryptSIPPutSignedDataMsg)(SIP_SUBJECTINFO *, DWORD, DWORD *, DWORD, BYTE *)
Definition: mssip.h:118
struct SIP_ADD_NEWPROVIDER_ * PSIP_ADD_NEWPROVIDER
BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO *, SIP_INDIRECT_DATA *)
Definition: sip.c:792
CRYPT_HASH_BLOB CRYPT_DIGEST_DATA
Definition: mssip.h:28
BOOL WINAPI CryptSIPRetrieveSubjectGuidForCatalogFile(LPCWSTR, HANDLE, GUID *)
Definition: sip.c:809
BOOL(WINAPI * pfnIsFileSupportedName)(WCHAR *, GUID *)
Definition: mssip.h:138
BOOL(WINAPI * pfnIsFileSupported)(HANDLE, GUID *)
Definition: mssip.h:137
BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO *, DWORD *, SIP_INDIRECT_DATA *)
Definition: sip.c:715
struct MS_ADDINFO_CATALOGMEMBER_ MS_ADDINFO_CATALOGMEMBER
struct SIP_SUBJECTINFO_ SIP_SUBJECTINFO
BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO *, DWORD)
Definition: sip.c:775
struct SIP_DISPATCH_INFO_ SIP_DISPATCH_INFO
BOOL(WINAPI * pCryptSIPVerifyIndirectData)(SIP_SUBJECTINFO *, SIP_INDIRECT_DATA *)
Definition: mssip.h:120
BOOL WINAPI CryptSIPRetrieveSubjectGuid(LPCWSTR, HANDLE, GUID *)
Definition: sip.c:310
struct MS_ADDINFO_CATALOGMEMBER_ * PMS_ADDINFO_CATALOGMEMBER
BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO *, DWORD, DWORD *, DWORD, BYTE *)
Definition: sip.c:756
BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *)
Definition: sip.c:207
struct SIP_INDIRECT_DATA_ * PSIP_INDIRECT_DATA
BOOL(WINAPI * pCryptSIPRemoveSignedDataMsg)(SIP_SUBJECTINFO *, DWORD)
Definition: mssip.h:121
BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO *, DWORD *, DWORD, DWORD *, BYTE *)
Definition: sip.c:737
BOOL WINAPI CryptSIPRemoveProvider(GUID *)
Definition: sip.c:112
struct MS_ADDINFO_FLAT_ MS_ADDINFO_FLAT
struct MS_ADDINFO_BLOB_ * PMS_ADDINFO_BLOB
struct SIP_ADD_NEWPROVIDER_ SIP_ADD_NEWPROVIDER
struct MS_ADDINFO_FLAT_ * PMS_ADDINFO_FLAT
BOOL(WINAPI * pCryptSIPCreateIndirectData)(SIP_SUBJECTINFO *, DWORD *, SIP_INDIRECT_DATA *)
Definition: mssip.h:119
struct SIP_SUBJECTINFO_ * LPSIP_SUBJECTINFO
struct SIP_DISPATCH_INFO_ * LPSIP_DISPATCH_INFO
#define BOOL
Definition: nt_native.h:43
#define DWORD
Definition: nt_native.h:44
DWORD cbMemObject
Definition: mssip.h:101
BYTE * pbMemObject
Definition: mssip.h:102
BYTE * pbMemSignedMsg
Definition: mssip.h:105
DWORD cbStruct
Definition: mssip.h:99
DWORD cbMemSignedMsg
Definition: mssip.h:104
struct CRYPTCATMEMBER_ * pMember
Definition: mssip.h:93
struct CRYPTCATSTORE_ * pStore
Definition: mssip.h:92
struct SIP_INDIRECT_DATA_ * pIndirectData
Definition: mssip.h:84
DWORD cbStruct
Definition: mssip.h:82
WCHAR * pwszPutFuncName
Definition: mssip.h:153
WCHAR * pwszCreateFuncName
Definition: mssip.h:154
GUID * pgSubject
Definition: mssip.h:145
WCHAR * pwszMagicNumber
Definition: mssip.h:148
WCHAR * pwszGetCapFuncName
Definition: mssip.h:161
WCHAR * pwszRemoveFuncName
Definition: mssip.h:156
WCHAR * pwszIsFunctionName
Definition: mssip.h:150
WCHAR * pwszGetFuncName
Definition: mssip.h:152
WCHAR * pwszIsFunctionNameFmt2
Definition: mssip.h:158
WCHAR * pwszVerifyFuncName
Definition: mssip.h:155
WCHAR * pwszDLLFileName
Definition: mssip.h:147
pCryptSIPVerifyIndirectData pfVerify
Definition: mssip.h:132
pCryptSIPRemoveSignedDataMsg pfRemove
Definition: mssip.h:133
pCryptSIPGetSignedDataMsg pfGet
Definition: mssip.h:129
pCryptSIPPutSignedDataMsg pfPut
Definition: mssip.h:130
pCryptSIPCreateIndirectData pfCreate
Definition: mssip.h:131
CRYPT_ATTRIBUTE_TYPE_VALUE Data
Definition: mssip.h:111
CRYPT_HASH_BLOB Digest
Definition: mssip.h:113
CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm
Definition: mssip.h:112
DWORD dwIndex
Definition: mssip.h:67
CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm
Definition: mssip.h:61
HANDLE hFile
Definition: mssip.h:53
union SIP_SUBJECTINFO_::@3061 DUMMYUNIONNAME
DWORD dwEncodingType
Definition: mssip.h:63
struct MS_ADDINFO_BLOB_ * psBlob
Definition: mssip.h:73
DWORD dwReserved2
Definition: mssip.h:64
DWORD dwUnionChoice
Definition: mssip.h:69
struct MS_ADDINFO_FLAT_ * psFlat
Definition: mssip.h:71
DWORD fdwCAPISettings
Definition: mssip.h:65
LPCWSTR pwsFileName
Definition: mssip.h:54
struct MS_ADDINFO_CATALOGMEMBER_ * psCatMember
Definition: mssip.h:72
DWORD dwIntVersion
Definition: mssip.h:58
GUID * pgSubjectType
Definition: mssip.h:52
LPCWSTR pwsDisplayName
Definition: mssip.h:55
DWORD cbSize
Definition: mssip.h:51
HCRYPTPROV hProv
Definition: mssip.h:60
DWORD dwFlags
Definition: mssip.h:62
DWORD dwReserved1
Definition: mssip.h:57
LPVOID pClientData
Definition: mssip.h:76
DWORD fdwSecuritySettings
Definition: mssip.h:66
PVOID HANDLE
Definition: typedefs.h:73
ULONG_PTR HCRYPTPROV
Definition: wincrypt.h:46
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193