IsPasswordProtected

Checks if the macro is password protected or not.

Declarations:

VC++

long IsPasswordProtected (_bstr_t pFileName, long * pIsPassword );

VISUAL BASIC:

IsPasswordProtected (ByVal pFileName As String, ByRef pIsPassword As Long) As Long

Parameters:

Return Value:

Returns 1 if there is any kind of failure, or 0 if successful.