ReactOS  0.4.14-dev-358-gbef841c
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
23 extern "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>
50 typedef struct SIP_SUBJECTINFO_ {
56 
59 
68 
70  union {
75 
78 #include <poppack.h>
79 
80 #include <pshpack8.h>
81 typedef struct MS_ADDINFO_FLAT_ {
83 
86 #include <poppack.h>
87 
88 #include <pshpack8.h>
89 typedef struct MS_ADDINFO_CATALOGMEMBER_ {
91 
92  struct CRYPTCATSTORE_ *pStore;
95 #include <poppack.h>
96 
97 #include <pshpack8.h>
98 typedef struct MS_ADDINFO_BLOB_ {
100 
103 
107 #include <poppack.h>
108 
109 #include <pshpack8.h>
110 typedef struct SIP_INDIRECT_DATA_ {
115 #include <poppack.h>
116 
122 
123 #include <pshpack8.h>
124 typedef struct SIP_DISPATCH_INFO_ {
126 
128 
135 #include <poppack.h>
136 
139 
140 #include <pshpack8.h>
141 typedef struct SIP_ADD_NEWPROVIDER_
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 */
DWORD dwFlags
Definition: mssip.h:62
struct MS_ADDINFO_FLAT_ * PMS_ADDINFO_FLAT
DWORD cbMemSignedMsg
Definition: mssip.h:104
struct MS_ADDINFO_CATALOGMEMBER_ * psCatMember
Definition: mssip.h:72
DWORD cbMemObject
Definition: mssip.h:101
CRYPT_HASH_BLOB Digest
Definition: mssip.h:113
struct MS_ADDINFO_BLOB_ MS_ADDINFO_BLOB
struct SIP_SUBJECTINFO_ * LPSIP_SUBJECTINFO
WCHAR * pwszGetFuncName
Definition: mssip.h:152
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WCHAR * pwszVerifyFuncName
Definition: mssip.h:155
pCryptSIPGetSignedDataMsg pfGet
Definition: mssip.h:129
HANDLE hFile
Definition: mssip.h:53
WCHAR * pwszDLLFileName
Definition: mssip.h:147
struct MS_ADDINFO_FLAT_ * psFlat
Definition: mssip.h:71
DWORD dwReserved2
Definition: mssip.h:64
BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO *, DWORD, DWORD *, DWORD, BYTE *)
Definition: sip.c:756
DWORD dwIntVersion
Definition: mssip.h:58
pCryptSIPCreateIndirectData pfCreate
Definition: mssip.h:131
LPVOID pClientData
Definition: mssip.h:76
CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm
Definition: mssip.h:61
BOOL(WINAPI * pfnIsFileSupported)(HANDLE, GUID *)
Definition: mssip.h:137
BOOL WINAPI CryptSIPRetrieveSubjectGuid(LPCWSTR, HANDLE, GUID *)
Definition: sip.c:310
DWORD dwEncodingType
Definition: mssip.h:63
pCryptSIPPutSignedDataMsg pfPut
Definition: mssip.h:130
BOOL(WINAPI * pCryptSIPRemoveSignedDataMsg)(SIP_SUBJECTINFO *, DWORD)
Definition: mssip.h:121
struct SIP_DISPATCH_INFO_ SIP_DISPATCH_INFO
#define BOOL
Definition: nt_native.h:43
#define DWORD
Definition: nt_native.h:44
BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO *, DWORD *, DWORD, DWORD *, BYTE *)
Definition: sip.c:737
BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO *, DWORD)
Definition: sip.c:775
struct SIP_ADD_NEWPROVIDER_ * PSIP_ADD_NEWPROVIDER
DWORD cbStruct
Definition: mssip.h:82
struct SIP_DISPATCH_INFO_ * LPSIP_DISPATCH_INFO
DWORD cbStruct
Definition: mssip.h:99
GUID * pgSubject
Definition: mssip.h:145
WCHAR * pwszPutFuncName
Definition: mssip.h:153
unsigned int BOOL
Definition: ntddk_ex.h:94
pCryptSIPVerifyIndirectData pfVerify
Definition: mssip.h:132
DWORD dwIndex
Definition: mssip.h:67
BOOL WINAPI CryptSIPLoad(const GUID *, DWORD, SIP_DISPATCH_INFO *)
Definition: sip.c:690
DWORD dwUnionChoice
Definition: mssip.h:69
struct CRYPTCATSTORE_ * pStore
Definition: mssip.h:92
struct CRYPTCATMEMBER_ * pMember
Definition: mssip.h:93
BOOL(WINAPI * pCryptSIPGetSignedDataMsg)(SIP_SUBJECTINFO *, DWORD *, DWORD, DWORD *, BYTE *)
Definition: mssip.h:117
BOOL(WINAPI * pCryptSIPCreateIndirectData)(SIP_SUBJECTINFO *, DWORD *, SIP_INDIRECT_DATA *)
Definition: mssip.h:119
HCRYPTPROV hProv
Definition: mssip.h:60
struct SIP_SUBJECTINFO_ SIP_SUBJECTINFO
CRYPT_ATTRIBUTE_TYPE_VALUE Data
Definition: mssip.h:111
__wchar_t WCHAR
Definition: xmlstorage.h:180
GUID * pgSubjectType
Definition: mssip.h:52
struct MS_ADDINFO_BLOB_ * PMS_ADDINFO_BLOB
#define WINAPI
Definition: msvc.h:8
DWORD fdwSecuritySettings
Definition: mssip.h:66
PVOID HANDLE
Definition: typedefs.h:71
unsigned long DWORD
Definition: ntddk_ex.h:95
struct SIP_INDIRECT_DATA_ * pIndirectData
Definition: mssip.h:84
LPCWSTR pwsDisplayName
Definition: mssip.h:55
unsigned char BYTE
Definition: mem.h:68
DWORD cbSize
Definition: mssip.h:51
DWORD fdwCAPISettings
Definition: mssip.h:65
BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO *, DWORD *, SIP_INDIRECT_DATA *)
Definition: sip.c:715
WCHAR * pwszIsFunctionNameFmt2
Definition: mssip.h:158
struct MS_ADDINFO_BLOB_ * psBlob
Definition: mssip.h:73
BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *)
Definition: sip.c:207
CRYPT_HASH_BLOB CRYPT_DIGEST_DATA
Definition: mssip.h:28
ULONG_PTR HCRYPTPROV
Definition: wincrypt.h:46
WCHAR * pwszGetCapFuncName
Definition: mssip.h:161
union SIP_SUBJECTINFO_::@2952 DUMMYUNIONNAME
struct SIP_INDIRECT_DATA_ SIP_INDIRECT_DATA
BOOL(WINAPI * pfnIsFileSupportedName)(WCHAR *, GUID *)
Definition: mssip.h:138
BOOL WINAPI CryptSIPRetrieveSubjectGuidForCatalogFile(LPCWSTR, HANDLE, GUID *)
Definition: sip.c:809
BYTE * pbMemSignedMsg
Definition: mssip.h:105
BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO *, SIP_INDIRECT_DATA *)
Definition: sip.c:792
DWORD dwReserved1
Definition: mssip.h:57
pCryptSIPRemoveSignedDataMsg pfRemove
Definition: mssip.h:133
WCHAR * pwszRemoveFuncName
Definition: mssip.h:156
struct MS_ADDINFO_FLAT_ MS_ADDINFO_FLAT
BOOL(WINAPI * pCryptSIPPutSignedDataMsg)(SIP_SUBJECTINFO *, DWORD, DWORD *, DWORD, BYTE *)
Definition: mssip.h:118
struct MS_ADDINFO_CATALOGMEMBER_ MS_ADDINFO_CATALOGMEMBER
LPCWSTR pwsFileName
Definition: mssip.h:54
WCHAR * pwszCreateFuncName
Definition: mssip.h:154
BYTE * pbMemObject
Definition: mssip.h:102
WCHAR * pwszMagicNumber
Definition: mssip.h:148
CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm
Definition: mssip.h:112
struct SIP_ADD_NEWPROVIDER_ SIP_ADD_NEWPROVIDER
BOOL(WINAPI * pCryptSIPVerifyIndirectData)(SIP_SUBJECTINFO *, SIP_INDIRECT_DATA *)
Definition: mssip.h:120
struct MS_ADDINFO_CATALOGMEMBER_ * PMS_ADDINFO_CATALOGMEMBER
struct SIP_INDIRECT_DATA_ * PSIP_INDIRECT_DATA
BOOL WINAPI CryptSIPRemoveProvider(GUID *)
Definition: sip.c:112
WCHAR * pwszIsFunctionName
Definition: mssip.h:150