[PATCH] include: Add constants for CryptProtectMemory/CryptUnprotectMemory.
Alex Henrie
alexhenrie24 at gmail.com
Sun Jan 29 22:38:16 CST 2017
These definitions are needed to compile PuTTY with Winelib, and we're
going to need them anyway before we implement these functions. See
https://git.tartarus.org/?p=simon/putty.git;a=blob;f=windows/winshare.c;h=56276045b7ed29a6cbec4a075ba3d7332ab90ec2;hb=769ce54734f0359068a72d71bca99da9d5d3555e#l20
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
include/wincrypt.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/wincrypt.h b/include/wincrypt.h
index 88b4b65d4c..d8b116edf0 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -2046,6 +2046,12 @@ static const WCHAR MS_ENH_RSA_AES_PROV_XP_W[] = { 'M','i','c','r','o','s','o','f
#define CRYPTPROTECT_AUDIT 0x0010
#define CRYPTPROTECT_VERIFY_PROTECTION 0x0040
+/* Crypt{Protect,Unprotect}Memory */
+#define CRYPTPROTECTMEMORY_BLOCK_SIZE 16
+#define CRYPTPROTECTMEMORY_SAME_PROCESS 0x0000
+#define CRYPTPROTECTMEMORY_CROSS_PROCESS 0x0001
+#define CRYPTPROTECTMEMORY_SAME_LOGON 0x0002
+
/* Blob Types */
#define SIMPLEBLOB 0x1
#define PUBLICKEYBLOB 0x6
--
2.11.0
More information about the wine-patches
mailing list