We need to determine if a Microsoft Word document is password protected. You will use Visual Basic 6 or VBScript running in Windows Scripting Host. The solution must not require Microsoft Word to be installed on the computer. The solution must be efficient in terms of memory/CPU usage.
## Deliverables
Using Visual Basic 6 or VBScript running in Windows Scripting Host, we need to determine if a Microsoft Word document is password protected. The API for the function can be:
Function IsPasswordProtected(ByVal sPath As String) As Boolean
The solution must not require Microsoft Word to be installed on the computer. The solution should read the Microsoft Word binary file format described here:
[login to view URL]
The solution must be efficient in terms of memory/CPU usage.
We will provide password protected Word 97 to Word 2007 documents for testing the solution.