void VerifyPassword()
{
CkZipW zip;
if (zip.UnlockComponent(L"jTriol.ZP10899_uxBpnXXXXXX"))
{
bool success = zip.OpenZip(L"C:/Users/14713/Desktop/test.zip");
if (success != true) {
std::cout << zip.lastErrorText() << "\r\n";
return;
}
zip.put_DecryptPassword(L"123456");
bool passwordOk;
passwordOk = zip.VerifyPassword();
if (passwordOk == true)
{
//操作压缩包
}
else
{
}
zip.CloseZip();
}
}
int main()
{
VerifyPassword();
return 0;
}