Aspose.Email - Check PST Password Protection

if (pst.getMessageStoreProperties().contains(MapiPropertyTag.PR_PST_PASSWORD))
{
    long passwordHash = pst.getMessageStoreProperties().get_Item(MapiPropertyTag.PR_PST_PASSWORD).getLong();
    return passwordHash != 0;
}

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jan 2, 2015 at 3:01 PM by shoaibkhan, version 1