[PSDK] and [NDK]
authorAleksey Bragin <aleksey@reactos.org>
Mon, 13 Oct 2014 10:53:58 +0000 (10:53 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 13 Oct 2014 10:53:58 +0000 (10:53 +0000)
- Since NTSTATUS definition is returned into bcrypt.h, then let's define PNTSTATUS too. Otherwise it makes no sense and errors out.
- Handle BCRYPT_H and __WINE_BCRYPT_H in ndk/umtypes.h. Thomas said that BCRYPT_H is not an option - but our NDK should be compatible with ReactOS PSDK too. If I am wrong, please feel free to change __WINE_BCRYPT_H to BCRYPT_H in psdk/bcrypt.h, fix related probelms and revert my change. Thanks!

svn path=/trunk/; revision=64713

reactos/include/ndk/umtypes.h
reactos/include/psdk/bcrypt.h

index a97580c..39c70cc 100644 (file)
@@ -129,7 +129,7 @@ typedef LONG KPRIORITY;
 //
 #if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) && !defined(_NTSECAPI_)
 
-#ifndef __BCRYPT_H__
+#if !defined(__BCRYPT_H__) && !defined(__WINE_BCRYPT_H)
 typedef _Return_type_success_(return >= 0) long NTSTATUS, *PNTSTATUS;
 #endif
 
index 629418a..c3837a4 100644 (file)
@@ -37,6 +37,7 @@
 
 #ifndef _NTDEF_
 typedef _Return_type_success_(return >= 0) LONG NTSTATUS;
+typedef NTSTATUS *PNTSTATUS;
 #endif
 
 typedef struct _BCRYPT_ALGORITHM_IDENTIFIER