/usr/share/mingw-w64/include/windows.security.cryptography.h is in mingw-w64-common 4.0.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | /*** Autogenerated by WIDL 1.5.31 from include/windows.security.cryptography.idl - Do not edit ***/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __windows_security_cryptography_h__
#define __windows_security_cryptography_h__
/* Forward declarations */
#ifndef __ICryptographicBufferStatics_FWD_DEFINED__
#define __ICryptographicBufferStatics_FWD_DEFINED__
typedef interface ICryptographicBufferStatics ICryptographicBufferStatics;
#endif
/* Headers for imported files */
#include <inspectable.h>
#include <windows.storage.streams.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __IBuffer_FWD_DEFINED__
#define __IBuffer_FWD_DEFINED__
typedef interface IBuffer IBuffer;
#endif
#ifndef __ICryptographicBufferStatics_FWD_DEFINED__
#define __ICryptographicBufferStatics_FWD_DEFINED__
typedef interface ICryptographicBufferStatics ICryptographicBufferStatics;
#endif
enum BinaryStringEncoding;
typedef enum BinaryStringEncoding {
Utf8 = 0,
Utf16LE = 1,
Utf16BE = 2
} BinaryStringEncoding;
/*****************************************************************************
* ICryptographicBufferStatics interface
*/
#ifndef __ICryptographicBufferStatics_INTERFACE_DEFINED__
#define __ICryptographicBufferStatics_INTERFACE_DEFINED__
DEFINE_GUID(IID_ICryptographicBufferStatics, 0x320b7e22, 0x3cb0, 0x4cdf, 0x86,0x63, 0x1d,0x28,0x91,0x00,0x65,0xeb);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("320b7e22-3cb0-4cdf-8663-1d28910065eb")
ICryptographicBufferStatics : public IInspectable
{
virtual HRESULT STDMETHODCALLTYPE Compare(
IBuffer *object1,
IBuffer *object2,
boolean *isEqual) = 0;
virtual HRESULT STDMETHODCALLTYPE GenerateRandom(
UINT32 length,
IBuffer **buffer) = 0;
virtual HRESULT STDMETHODCALLTYPE GenerateRandomNumber(
UINT32 *value) = 0;
virtual HRESULT STDMETHODCALLTYPE CreateFromByteArray(
UINT32 __valueSize,
BYTE *value,
IBuffer **buffer) = 0;
virtual HRESULT STDMETHODCALLTYPE CopyToByteArray(
IBuffer *buffer,
UINT32 *__valueSize,
BYTE **value) = 0;
virtual HRESULT STDMETHODCALLTYPE DecodeFromHexString(
HSTRING value,
IBuffer **buffer) = 0;
virtual HRESULT STDMETHODCALLTYPE EncodeToHexString(
IBuffer *buffer,
HSTRING *value) = 0;
virtual HRESULT STDMETHODCALLTYPE DecodeFromBase64String(
HSTRING value,
IBuffer **buffer) = 0;
virtual HRESULT STDMETHODCALLTYPE EncodeToBase64String(
IBuffer *buffer,
HSTRING *value) = 0;
virtual HRESULT STDMETHODCALLTYPE ConvertStringToBinary(
HSTRING value,
BinaryStringEncoding encoding,
IBuffer **buffer) = 0;
virtual HRESULT STDMETHODCALLTYPE ConvertBinaryToString(
BinaryStringEncoding encoding,
IBuffer *buffer,
HSTRING *value) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ICryptographicBufferStatics, 0x320b7e22, 0x3cb0, 0x4cdf, 0x86,0x63, 0x1d,0x28,0x91,0x00,0x65,0xeb)
#endif
#else
typedef struct ICryptographicBufferStaticsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ICryptographicBufferStatics* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ICryptographicBufferStatics* This);
ULONG (STDMETHODCALLTYPE *Release)(
ICryptographicBufferStatics* This);
/*** IInspectable methods ***/
HRESULT (STDMETHODCALLTYPE *GetIids)(
ICryptographicBufferStatics* This,
ULONG *iidCount,
IID **iids);
HRESULT (STDMETHODCALLTYPE *GetRuntimeClassName)(
ICryptographicBufferStatics* This,
HSTRING *className);
HRESULT (STDMETHODCALLTYPE *GetTrustLevel)(
ICryptographicBufferStatics* This,
TrustLevel *trustLevel);
/*** ICryptographicBufferStatics methods ***/
HRESULT (STDMETHODCALLTYPE *Compare)(
ICryptographicBufferStatics* This,
IBuffer *object1,
IBuffer *object2,
boolean *isEqual);
HRESULT (STDMETHODCALLTYPE *GenerateRandom)(
ICryptographicBufferStatics* This,
UINT32 length,
IBuffer **buffer);
HRESULT (STDMETHODCALLTYPE *GenerateRandomNumber)(
ICryptographicBufferStatics* This,
UINT32 *value);
HRESULT (STDMETHODCALLTYPE *CreateFromByteArray)(
ICryptographicBufferStatics* This,
UINT32 __valueSize,
BYTE *value,
IBuffer **buffer);
HRESULT (STDMETHODCALLTYPE *CopyToByteArray)(
ICryptographicBufferStatics* This,
IBuffer *buffer,
UINT32 *__valueSize,
BYTE **value);
HRESULT (STDMETHODCALLTYPE *DecodeFromHexString)(
ICryptographicBufferStatics* This,
HSTRING value,
IBuffer **buffer);
HRESULT (STDMETHODCALLTYPE *EncodeToHexString)(
ICryptographicBufferStatics* This,
IBuffer *buffer,
HSTRING *value);
HRESULT (STDMETHODCALLTYPE *DecodeFromBase64String)(
ICryptographicBufferStatics* This,
HSTRING value,
IBuffer **buffer);
HRESULT (STDMETHODCALLTYPE *EncodeToBase64String)(
ICryptographicBufferStatics* This,
IBuffer *buffer,
HSTRING *value);
HRESULT (STDMETHODCALLTYPE *ConvertStringToBinary)(
ICryptographicBufferStatics* This,
HSTRING value,
BinaryStringEncoding encoding,
IBuffer **buffer);
HRESULT (STDMETHODCALLTYPE *ConvertBinaryToString)(
ICryptographicBufferStatics* This,
BinaryStringEncoding encoding,
IBuffer *buffer,
HSTRING *value);
END_INTERFACE
} ICryptographicBufferStaticsVtbl;
interface ICryptographicBufferStatics {
CONST_VTBL ICryptographicBufferStaticsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ICryptographicBufferStatics_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ICryptographicBufferStatics_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ICryptographicBufferStatics_Release(This) (This)->lpVtbl->Release(This)
/*** IInspectable methods ***/
#define ICryptographicBufferStatics_GetIids(This,iidCount,iids) (This)->lpVtbl->GetIids(This,iidCount,iids)
#define ICryptographicBufferStatics_GetRuntimeClassName(This,className) (This)->lpVtbl->GetRuntimeClassName(This,className)
#define ICryptographicBufferStatics_GetTrustLevel(This,trustLevel) (This)->lpVtbl->GetTrustLevel(This,trustLevel)
/*** ICryptographicBufferStatics methods ***/
#define ICryptographicBufferStatics_Compare(This,object1,object2,isEqual) (This)->lpVtbl->Compare(This,object1,object2,isEqual)
#define ICryptographicBufferStatics_GenerateRandom(This,length,buffer) (This)->lpVtbl->GenerateRandom(This,length,buffer)
#define ICryptographicBufferStatics_GenerateRandomNumber(This,value) (This)->lpVtbl->GenerateRandomNumber(This,value)
#define ICryptographicBufferStatics_CreateFromByteArray(This,__valueSize,value,buffer) (This)->lpVtbl->CreateFromByteArray(This,__valueSize,value,buffer)
#define ICryptographicBufferStatics_CopyToByteArray(This,buffer,__valueSize,value) (This)->lpVtbl->CopyToByteArray(This,buffer,__valueSize,value)
#define ICryptographicBufferStatics_DecodeFromHexString(This,value,buffer) (This)->lpVtbl->DecodeFromHexString(This,value,buffer)
#define ICryptographicBufferStatics_EncodeToHexString(This,buffer,value) (This)->lpVtbl->EncodeToHexString(This,buffer,value)
#define ICryptographicBufferStatics_DecodeFromBase64String(This,value,buffer) (This)->lpVtbl->DecodeFromBase64String(This,value,buffer)
#define ICryptographicBufferStatics_EncodeToBase64String(This,buffer,value) (This)->lpVtbl->EncodeToBase64String(This,buffer,value)
#define ICryptographicBufferStatics_ConvertStringToBinary(This,value,encoding,buffer) (This)->lpVtbl->ConvertStringToBinary(This,value,encoding,buffer)
#define ICryptographicBufferStatics_ConvertBinaryToString(This,encoding,buffer,value) (This)->lpVtbl->ConvertBinaryToString(This,encoding,buffer,value)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ICryptographicBufferStatics_QueryInterface(ICryptographicBufferStatics* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ICryptographicBufferStatics_AddRef(ICryptographicBufferStatics* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ICryptographicBufferStatics_Release(ICryptographicBufferStatics* This) {
return This->lpVtbl->Release(This);
}
/*** IInspectable methods ***/
static FORCEINLINE HRESULT ICryptographicBufferStatics_GetIids(ICryptographicBufferStatics* This,ULONG *iidCount,IID **iids) {
return This->lpVtbl->GetIids(This,iidCount,iids);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_GetRuntimeClassName(ICryptographicBufferStatics* This,HSTRING *className) {
return This->lpVtbl->GetRuntimeClassName(This,className);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_GetTrustLevel(ICryptographicBufferStatics* This,TrustLevel *trustLevel) {
return This->lpVtbl->GetTrustLevel(This,trustLevel);
}
/*** ICryptographicBufferStatics methods ***/
static FORCEINLINE HRESULT ICryptographicBufferStatics_Compare(ICryptographicBufferStatics* This,IBuffer *object1,IBuffer *object2,boolean *isEqual) {
return This->lpVtbl->Compare(This,object1,object2,isEqual);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_GenerateRandom(ICryptographicBufferStatics* This,UINT32 length,IBuffer **buffer) {
return This->lpVtbl->GenerateRandom(This,length,buffer);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_GenerateRandomNumber(ICryptographicBufferStatics* This,UINT32 *value) {
return This->lpVtbl->GenerateRandomNumber(This,value);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_CreateFromByteArray(ICryptographicBufferStatics* This,UINT32 __valueSize,BYTE *value,IBuffer **buffer) {
return This->lpVtbl->CreateFromByteArray(This,__valueSize,value,buffer);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_CopyToByteArray(ICryptographicBufferStatics* This,IBuffer *buffer,UINT32 *__valueSize,BYTE **value) {
return This->lpVtbl->CopyToByteArray(This,buffer,__valueSize,value);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_DecodeFromHexString(ICryptographicBufferStatics* This,HSTRING value,IBuffer **buffer) {
return This->lpVtbl->DecodeFromHexString(This,value,buffer);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_EncodeToHexString(ICryptographicBufferStatics* This,IBuffer *buffer,HSTRING *value) {
return This->lpVtbl->EncodeToHexString(This,buffer,value);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_DecodeFromBase64String(ICryptographicBufferStatics* This,HSTRING value,IBuffer **buffer) {
return This->lpVtbl->DecodeFromBase64String(This,value,buffer);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_EncodeToBase64String(ICryptographicBufferStatics* This,IBuffer *buffer,HSTRING *value) {
return This->lpVtbl->EncodeToBase64String(This,buffer,value);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_ConvertStringToBinary(ICryptographicBufferStatics* This,HSTRING value,BinaryStringEncoding encoding,IBuffer **buffer) {
return This->lpVtbl->ConvertStringToBinary(This,value,encoding,buffer);
}
static FORCEINLINE HRESULT ICryptographicBufferStatics_ConvertBinaryToString(ICryptographicBufferStatics* This,BinaryStringEncoding encoding,IBuffer *buffer,HSTRING *value) {
return This->lpVtbl->ConvertBinaryToString(This,encoding,buffer,value);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_Compare_Proxy(
ICryptographicBufferStatics* This,
IBuffer *object1,
IBuffer *object2,
boolean *isEqual);
void __RPC_STUB ICryptographicBufferStatics_Compare_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_GenerateRandom_Proxy(
ICryptographicBufferStatics* This,
UINT32 length,
IBuffer **buffer);
void __RPC_STUB ICryptographicBufferStatics_GenerateRandom_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_GenerateRandomNumber_Proxy(
ICryptographicBufferStatics* This,
UINT32 *value);
void __RPC_STUB ICryptographicBufferStatics_GenerateRandomNumber_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_CreateFromByteArray_Proxy(
ICryptographicBufferStatics* This,
UINT32 __valueSize,
BYTE *value,
IBuffer **buffer);
void __RPC_STUB ICryptographicBufferStatics_CreateFromByteArray_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_CopyToByteArray_Proxy(
ICryptographicBufferStatics* This,
IBuffer *buffer,
UINT32 *__valueSize,
BYTE **value);
void __RPC_STUB ICryptographicBufferStatics_CopyToByteArray_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_DecodeFromHexString_Proxy(
ICryptographicBufferStatics* This,
HSTRING value,
IBuffer **buffer);
void __RPC_STUB ICryptographicBufferStatics_DecodeFromHexString_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_EncodeToHexString_Proxy(
ICryptographicBufferStatics* This,
IBuffer *buffer,
HSTRING *value);
void __RPC_STUB ICryptographicBufferStatics_EncodeToHexString_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_DecodeFromBase64String_Proxy(
ICryptographicBufferStatics* This,
HSTRING value,
IBuffer **buffer);
void __RPC_STUB ICryptographicBufferStatics_DecodeFromBase64String_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_EncodeToBase64String_Proxy(
ICryptographicBufferStatics* This,
IBuffer *buffer,
HSTRING *value);
void __RPC_STUB ICryptographicBufferStatics_EncodeToBase64String_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_ConvertStringToBinary_Proxy(
ICryptographicBufferStatics* This,
HSTRING value,
BinaryStringEncoding encoding,
IBuffer **buffer);
void __RPC_STUB ICryptographicBufferStatics_ConvertStringToBinary_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ICryptographicBufferStatics_ConvertBinaryToString_Proxy(
ICryptographicBufferStatics* This,
BinaryStringEncoding encoding,
IBuffer *buffer,
HSTRING *value);
void __RPC_STUB ICryptographicBufferStatics_ConvertBinaryToString_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ICryptographicBufferStatics_INTERFACE_DEFINED__ */
/* Begin additional prototypes for all interfaces */
ULONG __RPC_USER HSTRING_UserSize (ULONG *, ULONG, HSTRING *);
unsigned char * __RPC_USER HSTRING_UserMarshal (ULONG *, unsigned char *, HSTRING *);
unsigned char * __RPC_USER HSTRING_UserUnmarshal(ULONG *, unsigned char *, HSTRING *);
void __RPC_USER HSTRING_UserFree (ULONG *, HSTRING *);
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __windows_security_cryptography_h__ */
|