<?xml version="1.0" encoding="Shift_JIS"?>
<?xml-stylesheet type="text/xsl" href="../Fmethod_xsl/fmethod_he_c.xsl"?>

<root>
  <func>


    <title>ds_rdhddinfo</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI ds_rdhddinfo(unsigned short FlibHndl, ODBHDDINF *hddinfo);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
<p>
Get the information of hard disk of DATA SERVER.
</p>
<p>
The following information can be acquired.
</p>
    <dd>- The remainder capacity of hard disk.</dd>
    <dd>- The name of work directory.</dd>
    <dd>- The number of files in work directory.</dd>
        </cmn>
    </doc>



    <argument>
        <hssb>
            <vc>
                <item>
                    <name>FlibHndl</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the library handle. See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
                        </p>
                    </content>
                </item>

                <item>
                    <name>hddinfo</name>
                    <type>out</type>
                    <content>
                        <p>
Specify the pointer to ODBHDDINF structure to store the directory information which is acquired.
                        </p>
The ODBHDDINF structure is as follows.
<pre>
typedef struct _odbhddinf {
    long    file_num;
    long    remainder_l;
    long    remainder_h;
    char    current_dir[32];
} ODBHDDINF;
</pre>

<dt>hddinfo.file_num</dt>
<table class="dd">The numbers of files in the work directory.</table>

<dt>hddinfo.remainder_l, hddinfo.remainder_h</dt>
<table class="dd">
The remainder capacity of hard disk.<br/>
The disk capacity is 8 bytes.  The lower value is set in the remainder_l and the upper value is set in the remainder_h.
</table>

<dt>hddinfo.current_dir[32]</dt>
<table class="dd">
The name of work directory.<br/>
The Ascii string less than 32 characters which included NULL is set.<br/>
The directory name is acquired with PATH.<br/>
When the directory name is longer than 31 characters, the last 29 characters is  acquired as follows.<br/><br/>
                       <dd>"." + "." + "last 29 characters" + NULL</dd>
</table>
                    </content>
                </item>
            </vc>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>No option</content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                     CNC execution rejection<br/>
                     The DATA SERVER is doing another processing.
            </content>
        </item>
        <item>
            <name>EW_DTSRVR</name>
            <content>
                     DATA SERVER error<br/>
                     Error occurred in DATA SERVER.
            </content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The DATA SERVER function and the extended driver/library function are necessary.</hssb>
        <add></add>
    </option>



    <parameter>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>X</fs15>
            <fs15i>X</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>H</fs16ia>
           <fs18ia>H</fs18ia>
           <fs21ia>H</fs21ia>
           <fs16ib>H</fs16ib>
           <fs18ib>H</fs18ib>
           <fs21ib>H</fs21ib>
            <fs30i>X</fs30i>
        </m>
        <t>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>X</fs15>
            <fs15i>X</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>H</fs16ia>
           <fs18ia>H</fs18ia>
           <fs21ia>H</fs21ia>
           <fs16ib>H</fs16ib>
           <fs18ib>H</fs18ib>
           <fs21ib>H</fs21ib>
            <fs30i>X</fs30i>
        </t>
        <lc>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>X</fs15>
            <fs15i>X</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>X</fs16ia>
           <fs18ia>X</fs18ia>
           <fs21ia>X</fs21ia>
           <fs16ib>X</fs16ib>
           <fs18ib>X</fs18ib>
           <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </lc>
        <p>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </p>
        <l>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
        <add><b></b></add>
    </support>



    <reference></reference>



    <example></example>



  </func>
</root>
