.. highlightlang:: us .. index:: DocGetProtectionFlags .. _docgetprotectionflags: DocGetProtectionFlags ===================== .. us.tag DocGetProtectionFlags DocGet New400 :ref:`DocGetProtectionFlags` returns the protection flag. .. function:: flags = DocGetProtectionFlags(hDoc) .. us.return **Return Value** *flags* is the protection flag. .. list-table:: :header-rows: 1 * - value - meaning * - PROTECT_NONE (0) - No Protection. * - PROTECT_READ (1) - File open protection. UniPlot requires the user to enter a password to open the document. * - PROTECT_WRITE (2) - File modify protection. The flags ``PROTECT_READ`` and ``PROTECT_WRITE`` can be **OR** ed. ``PROTECT_READ|PROTECT_WRITE`` protects the document against opening and modifying. .. us.params **Parameters** .. uparam:: hDoc Identifies the document. .. seealso:: :ref:`overview-documents`, :ref:`DocSetProtectionFlags`, :ref:`DocGetProtectionComment` :sub:`id-831319`