CryptUnprotectData function crypt32
Win32Result<bool>
CryptUnprotectData(
- Pointer<
CRYPT_INTEGER_BLOB> pDataIn, - Pointer<
Pointer< ? ppszDataDescr,Utf16> > - Pointer<
CRYPT_INTEGER_BLOB> ? pOptionalEntropy, - Pointer<
CRYPTPROTECT_PROMPTSTRUCT> ? pPromptStruct, - int dwFlags,
- Pointer<
CRYPT_INTEGER_BLOB> pDataOut,
Decrypts and does an integrity check of the data in a DATA_BLOB structure.
To learn more, see learn.microsoft.com/windows/win32/api/dpapi/nf-dpapi-cryptunprotectdata.
Implementation
Win32Result<bool> CryptUnprotectData(
Pointer<CRYPT_INTEGER_BLOB> pDataIn,
Pointer<Pointer<Utf16>>? ppszDataDescr,
Pointer<CRYPT_INTEGER_BLOB>? pOptionalEntropy,
Pointer<CRYPTPROTECT_PROMPTSTRUCT>? pPromptStruct,
int dwFlags,
Pointer<CRYPT_INTEGER_BLOB> pDataOut,
) {
final result_ = CryptUnprotectData_Wrapper(
pDataIn,
ppszDataDescr ?? nullptr,
pOptionalEntropy ?? nullptr,
nullptr,
pPromptStruct ?? nullptr,
dwFlags,
pDataOut,
);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}