2007-11-21 Kevin Conaway <kevin_conaway@users.sourceforge.net>

* include/wincrypt.h (CryptProtectData, CryptUnprotectData): define.
This commit is contained in:
Chris Sutcliffe 2007-11-22 03:16:15 +00:00
parent b69b1a36b8
commit 2194c4db86
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-11-21 Kevin Conaway <kevin_conaway@users.sourceforge.net>
* include/wincrypt.h (CryptProtectData, CryptUnprotectData): define.
2007-11-21 elsapo <elsapo@users.sourceforge.net> 2007-11-21 elsapo <elsapo@users.sourceforge.net>
* include/wincrypt.h (CERT_NAME_STR_COMMA_FLAG, * include/wincrypt.h (CERT_NAME_STR_COMMA_FLAG,

View File

@ -1119,6 +1119,14 @@ typedef struct _CRYPTPROTECT_PROMPTSTRUCT {
LPCWSTR szPrompt; LPCWSTR szPrompt;
} CRYPTPROTECT_PROMPTSTRUCT, } CRYPTPROTECT_PROMPTSTRUCT,
*PCRYPTPROTECT_PROMPTSTRUCT; *PCRYPTPROTECT_PROMPTSTRUCT;
/* from http://msdn2.microsoft.com/en-us/library/aa380261.aspx */
BOOL WINAPI CryptProtectData (DATA_BLOB*, LPCWSTR, DATA_BLOB*, PVOID, CRYPTPROTECT_PROMPTSTRUCT*, DWORD, DATA_BLOB*);
/* http://msdn2.microsoft.com/en-us/library/aa380882.aspx */
BOOL WINAPI CryptUnprotectData (DATA_BLOB*, LPWSTR*, DATA_BLOB*, PVOID, CRYPTPROTECT_PROMPTSTRUCT*, DWORD, DATA_BLOB*);
/* from http://msdn2.microsoft.com/en-us/library/aa302402.aspx: */ /* from http://msdn2.microsoft.com/en-us/library/aa302402.aspx: */
#define CRYPTPROTECT_UI_FORBIDDEN 0x1 #define CRYPTPROTECT_UI_FORBIDDEN 0x1
#define CRYPTPROTECT_LOCAL_MACHINE 0x4 #define CRYPTPROTECT_LOCAL_MACHINE 0x4