VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mssip.h@ 33252

Last change on this file since 33252 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 5.8 KB
Line 
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/*
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_MSSIP_H
29#define __WINE_MSSIP_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* defined(__cplusplus) */
34
35/**********************************************************************/
36
37typedef CRYPT_HASH_BLOB CRYPT_DIGEST_DATA;
38
39/**********************************************************************/
40
41#define MSSIP_FLAGS_PROHIBIT_RESIZE_ON_CREATE 0x00010000
42#define MSSIP_FLAGS_USE_CATALOG 0x00020000
43
44#define SPC_INC_PE_RESOURCES_FLAG 0x80
45#define SPC_INC_PE_DEBUG_INFO_FLAG 0x40
46#define SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG 0x20
47
48#define MSSIP_ADDINFO_NONE 0
49#define MSSIP_ADDINFO_FLAT 1
50#define MSSIP_ADDINFO_CATMEMBER 2
51#define MSSIP_ADDINFO_BLOB 3
52#define MSSIP_ADDINFO_NONMSSIP 500
53
54#define SIP_MAX_MAGIC_NUMBER 4
55
56/**********************************************************************/
57
58#include <pshpack8.h>
59typedef struct SIP_SUBJECTINFO_ {
60 DWORD cbSize;
61 GUID *pgSubjectType;
62 HANDLE hFile;
63 LPCWSTR pwsFileName;
64 LPCWSTR pwsDisplayName;
65
66 DWORD dwReserved1;
67 DWORD dwIntVersion;
68
69 HCRYPTPROV hProv;
70 CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm;
71 DWORD dwFlags;
72 DWORD dwEncodingType;
73 DWORD dwReserved2;
74 DWORD fdwCAPISettings;
75 DWORD fdwSecuritySettings;
76 DWORD dwIndex;
77
78 DWORD dwUnionChoice;
79 union {
80 struct MS_ADDINFO_FLAT_ *psFlat;
81 struct MS_ADDINFO_CATALOGMEMBER_ *psCatMember;
82 struct MS_ADDINFO_BLOB_ *psBlob;
83 } DUMMYUNIONNAME;
84
85 LPVOID pClientData;
86} SIP_SUBJECTINFO, *LPSIP_SUBJECTINFO;
87#include <poppack.h>
88
89#include <pshpack8.h>
90typedef struct MS_ADDINFO_FLAT_ {
91 DWORD cbStruct;
92
93 struct SIP_INDIRECT_DATA_ *pIndirectData;
94} MS_ADDINFO_FLAT, *PMS_ADDINFO_FLAT;
95#include <poppack.h>
96
97#include <pshpack8.h>
98typedef struct MS_ADDINFO_CATALOGMEMBER_ {
99 DWORD cbStruct;
100
101 struct CRYPTCATSTORE_ *pStore;
102 struct CRYPTCATMEMBER_ *pMember;
103} MS_ADDINFO_CATALOGMEMBER, *PMS_ADDINFO_CATALOGMEMBER;
104#include <poppack.h>
105
106#include <pshpack8.h>
107typedef struct MS_ADDINFO_BLOB_ {
108 DWORD cbStruct;
109
110 DWORD cbMemObject;
111 BYTE *pbMemObject;
112
113 DWORD cbMemSignedMsg;
114 BYTE *pbMemSignedMsg;
115} MS_ADDINFO_BLOB, *PMS_ADDINFO_BLOB;
116#include <poppack.h>
117
118#include <pshpack8.h>
119typedef struct SIP_INDIRECT_DATA_ {
120 CRYPT_ATTRIBUTE_TYPE_VALUE Data;
121 CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm;
122 CRYPT_HASH_BLOB Digest;
123} SIP_INDIRECT_DATA, *PSIP_INDIRECT_DATA;
124#include <poppack.h>
125
126typedef BOOL (WINAPI * pCryptSIPGetSignedDataMsg)(SIP_SUBJECTINFO *,DWORD *,DWORD,DWORD *,BYTE *);
127typedef BOOL (WINAPI * pCryptSIPPutSignedDataMsg)(SIP_SUBJECTINFO *,DWORD,DWORD *,DWORD,BYTE *);
128typedef BOOL (WINAPI * pCryptSIPCreateIndirectData)(SIP_SUBJECTINFO *,DWORD *,SIP_INDIRECT_DATA *);
129typedef BOOL (WINAPI * pCryptSIPVerifyIndirectData)(SIP_SUBJECTINFO *,SIP_INDIRECT_DATA *);
130typedef BOOL (WINAPI * pCryptSIPRemoveSignedDataMsg)(SIP_SUBJECTINFO *,DWORD);
131
132#include <pshpack8.h>
133typedef struct SIP_DISPATCH_INFO_ {
134 DWORD cbSize;
135
136 HANDLE hSIP;
137
138 pCryptSIPGetSignedDataMsg pfGet;
139 pCryptSIPPutSignedDataMsg pfPut;
140 pCryptSIPCreateIndirectData pfCreate;
141 pCryptSIPVerifyIndirectData pfVerify;
142 pCryptSIPRemoveSignedDataMsg pfRemove;
143} SIP_DISPATCH_INFO, *LPSIP_DISPATCH_INFO;
144#include <poppack.h>
145
146typedef BOOL (WINAPI *pfnIsFileSupported)(HANDLE,GUID *);
147typedef BOOL (WINAPI *pfnIsFileSupportedName)(WCHAR *,GUID *);
148
149#include <pshpack8.h>
150typedef struct SIP_ADD_NEWPROVIDER_
151{
152 DWORD cbStruct;
153
154 GUID *pgSubject;
155
156 WCHAR *pwszDLLFileName;
157 WCHAR *pwszMagicNumber;
158
159 WCHAR *pwszIsFunctionName;
160
161 WCHAR *pwszGetFuncName;
162 WCHAR *pwszPutFuncName;
163 WCHAR *pwszCreateFuncName;
164 WCHAR *pwszVerifyFuncName;
165 WCHAR *pwszRemoveFuncName;
166
167 WCHAR *pwszIsFunctionNameFmt2;
168} SIP_ADD_NEWPROVIDER, *PSIP_ADD_NEWPROVIDER;
169#include <poppack.h>
170
171/**********************************************************************/
172
173BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO *,DWORD *,DWORD,DWORD *,BYTE *);
174BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO *,DWORD,DWORD *,DWORD,BYTE *);
175BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO *,DWORD *,SIP_INDIRECT_DATA *);
176BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO *,SIP_INDIRECT_DATA *);
177BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO *,DWORD);
178
179BOOL WINAPI CryptSIPLoad(const GUID *,DWORD,SIP_DISPATCH_INFO *);
180BOOL WINAPI CryptSIPRetrieveSubjectGuid(LPCWSTR,HANDLE,GUID *);
181BOOL WINAPI CryptSIPRetrieveSubjectGuidForCatalogFile(LPCWSTR,HANDLE,GUID *);
182BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *);
183BOOL WINAPI CryptSIPRemoveProvider(GUID *);
184
185#ifdef __cplusplus
186} /* extern "C" */
187#endif /* defined(__cplusplus) */
188
189#endif /* __WINE_MSSIP_H */
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