d3d8/tests: Make the window client rect match the d3d swapchain size.
[wine.git] / include / ncrypt.h
blob2bfdae0652a1a385f2db4d20c53aad93938360f2
1 /*
2 * Copyright (c) 2016 Austin English
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.
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.
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
19 #ifndef __NCRYPT_H__
20 #define __NCRYPT_H__
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #ifndef WINAPI
27 #define WINAPI __stdcall
28 #endif
30 #ifndef __SECSTATUS_DEFINED__
31 typedef LONG SECURITY_STATUS;
32 #define __SECSTATUS_DEFINED__
33 #endif
35 typedef ULONG_PTR NCRYPT_HANDLE;
36 typedef ULONG_PTR NCRYPT_PROV_HANDLE;
37 typedef ULONG_PTR NCRYPT_KEY_HANDLE;
38 typedef ULONG_PTR NCRYPT_HASH_HANDLE;
39 typedef ULONG_PTR NCRYPT_SECRET_HANDLE;
41 SECURITY_STATUS WINAPI NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE, NCRYPT_KEY_HANDLE *, const WCHAR *, const WCHAR *, DWORD, DWORD);
42 SECURITY_STATUS WINAPI NCryptDecrypt(NCRYPT_KEY_HANDLE, BYTE *, DWORD, void *, BYTE *, DWORD, DWORD *, DWORD);
43 SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE, BYTE *, DWORD, void *, BYTE *, DWORD, DWORD *, DWORD);
44 SECURITY_STATUS WINAPI NCryptFinalizeKey(NCRYPT_KEY_HANDLE, DWORD);
45 SECURITY_STATUS WINAPI NCryptFreeObject(NCRYPT_HANDLE);
46 SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE, NCRYPT_KEY_HANDLE *, const WCHAR *, DWORD, DWORD);
47 SECURITY_STATUS WINAPI NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE *, const WCHAR *, DWORD);
49 #ifdef __cplusplus
51 #endif
53 #endif /* __NCRYPT_H__ */