DATA_BLOB in; DATA_BLOB out; BYTE *pin=(BYTE*)"FIPL2"; DWORD din=strlen((char*)pin)+1; in.pbData = pin; in.cbData = din; if(CryptProtectData(&in,L"what is it",NULL,NULL,NULL,0,&out)) { BYTE *b=out.pbData; // <<--HERE }
if
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)