ProtectLogicalFile.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="ProtectLogicalFile">
  5. <title>ProtectLogicalFile</title>
  6. <para><emphasis role="bold">STD.File.ProtectLogicalFile<indexterm>
  7. <primary>STD.File.ProtectLogicalFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.ProtectLogicalFile</primary>
  10. </indexterm><indexterm>
  11. <primary>ProtectLogicalFile</primary>
  12. </indexterm>(</emphasis> <emphasis> logicalfilename </emphasis> <emphasis
  13. role="bold">[ </emphasis> <emphasis>, value </emphasis> <emphasis
  14. role="bold"> ] )</emphasis></para>
  15. <informaltable colsep="1" frame="all" rowsep="1">
  16. <tgroup cols="2">
  17. <colspec colwidth="80.50pt" />
  18. <colspec />
  19. <tbody>
  20. <row>
  21. <entry><emphasis>logicalfilename</emphasis></entry>
  22. <entry>A null-terminated string containing the name of the logical
  23. file as it is known by the DFU.</entry>
  24. </row>
  25. <row>
  26. <entry><emphasis>value</emphasis></entry>
  27. <entry>Optional. A boolean flag indicating whether to protect or
  28. un-protect the file. If omitted, the default is TRUE.</entry>
  29. </row>
  30. </tbody>
  31. </tgroup>
  32. </informaltable>
  33. <para>The <emphasis role="bold">ProtectLogicalFile </emphasis>function
  34. toggles protection on and off for the specified
  35. <emphasis>logicalfilename</emphasis>.</para>
  36. <para>Example:</para>
  37. <programlisting format="linespecific">IMPORT STD;
  38. file := '~class::bmf::join::halfkeyed';
  39. STD.File.ProtectLogicalFile(file); //protect
  40. STD.File.ProtectLogicalFile(file, FALSE); //unprotect
  41. </programlisting>
  42. </sect1>