Preparation for transition of wsd-API-headers to IDL. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6512 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/wincrypt.idl b/mingw-w64-headers/include/wincrypt.idl new file mode 100644 index 0000000..8dcf920 --- /dev/null +++ b/mingw-w64-headers/include/wincrypt.idl
@@ -0,0 +1,64 @@ +/** + * This file is part of the mingw-w64 runtime package. + * No warranty is given; refer to the file DISCLAIMER within this package. + */ + +/* This IDL is not for generation of wincrypt-header. Instead it is + there for having an ability to import wincrypt's types for use in + wsdbase.idl file. + Therefore DON'T add this IDL-file to Makefile!!!!! +*/ + +cpp_quote("#include <winapifamily.h>") + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef FARPROC +typedef int (__stdcall FARPROC) (); +#endif + +#ifndef PBYTE +typedef BYTE *PBYTE; +#endif + +#ifndef PDWORD +typedef DWORD *PDWORD; +#endif + +#ifndef size_t +#if defined (_WIN64) +typedef unsigned int size_t; +#else +typedef unsigned __int64 size_t; +#endif +#endif + +#ifndef VOID +typedef void VOID; +#endif + +#ifndef ULONG_PTR +#if defined (_WIN64) +typedef unsigned __int64 ULONG_PTR; +#else +typedef unsigned long ULONG_PTR; +#endif +#endif + +#ifndef BASETYPES +#define BASETYPES +typedef unsigned long ULONG; +typedef ULONG *PULONG; +typedef unsigned short USHORT; +typedef USHORT *PUSHORT; +typedef unsigned char UCHAR; +typedef UCHAR *PUCHAR; +typedef char *PSZ; +#endif + +typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR; +typedef const WCHAR *LPCWSTR,*PCWSTR; + +#include "wincrypt.h" + +cpp_quote("#endif")