UseCNG Property
Whether to use CNG DPAPI.
Syntax
ANSI (Cross Platform) int GetUseCNG();
int SetUseCNG(int bUseCNG); Unicode (Windows) BOOL GetUseCNG();
INT SetUseCNG(BOOL bUseCNG);
@property (nonatomic,readwrite,assign,getter=useCNG,setter=setUseCNG:) BOOL useCNG; - (BOOL)useCNG; - (void)setUseCNG:(BOOL)newUseCNG;
#define PID_DPAPI_USECNG 11 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_DPAPI_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_DPAPI_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
FALSE
Remarks
The class supports protecting data using either the classic DPAPI or CNG DPAPI implementation. When set to True the CNG DPAPI implementation is sued. When set to False (default) the classic DPAPI implementation is used.
Data Type
Boolean