123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
- <sect1 id="ProtectLogicalFile">
- <title>ProtectLogicalFile</title>
- <para><emphasis role="bold">STD.File.ProtectLogicalFile<indexterm>
- <primary>STD.File.ProtectLogicalFile</primary>
- </indexterm><indexterm>
- <primary>File.ProtectLogicalFile</primary>
- </indexterm><indexterm>
- <primary>ProtectLogicalFile</primary>
- </indexterm>(</emphasis> <emphasis> logicalfilename </emphasis> <emphasis
- role="bold">[ </emphasis> <emphasis>, value </emphasis> <emphasis
- role="bold"> ] )</emphasis></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>logicalfilename</emphasis></entry>
- <entry>A null-terminated string containing the name of the logical
- file as it is known by the DFU.</entry>
- </row>
- <row>
- <entry><emphasis>value</emphasis></entry>
- <entry>Optional. A boolean flag indicating whether to protect or
- un-protect the file. If omitted, the default is TRUE.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">ProtectLogicalFile </emphasis>function
- toggles protection on and off for the specified
- <emphasis>logicalfilename</emphasis>.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT STD;
- file := '~class::bmf::join::halfkeyed';
- STD.File.ProtectLogicalFile(file); //protect
- STD.File.ProtectLogicalFile(file, FALSE); //unprotect
- </programlisting>
- </sect1>
|