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

<root>
  <func>


    <title>cnc_rddsdir</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rddsdir(unsigned short FlibHndl, char *dev_name, short *host, char *path); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <ul class="dd">
                <li>DATA SERVER</li>
                The current folder name of the ATA card of DATA SERVER function is taken out with a full path.<br/><br/>
                <li>DATA SERVER Host</li>
                The connection host number as which the DATA SERVER function is chosen,or the current folder receive with a full path.<br/><br/>
                <li>Embedded Ethernet</li>
                The connection host number as which the embedded ethernet function is chosen,or the current folder receive with a full path.<br/><br/>
            </ul>
        </cmn>
    </doc>



    <argument>
        <common>
            <cmn>
                <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>dev_name</name>
                    <type>in</type>
                    <content>
                        The pointer of the variable area where the device name to specify is stored is specified.<br/>
                        Specify the device name is as follows:<br/>
                        <dl>
                        <dd><table border="0">
                        <tr> <td>DATA SERVER      </td><td>:</td><td>"DATA_SV"   </td> </tr>
                        <tr> <td>DATA SERVER Host </td><td>:</td><td>"DTSVR_HOST"</td> </tr>
                        <tr> <td>Embedded Ethernet</td><td>:</td><td>"EMB_ETHER" </td> </tr>
                        </table></dd></dl><br/>
                    </content>
                </item>
                <item>
                    <name>host</name>
                    <type>out</type>
                   <content>
                        (*Used only at time of DATA SERVER Host or Embedded Ethernet)<br/>
                        The pointer to the variable area which stores the taken out connection host number is specfied.<br/>
                        The numerical value of 1 to 3 returns.<br/>
                        Moreover, when not using it, 0 returns.<br/><br/>
                    </content>
                </item>
                <item>
                    <name>path</name>
                    <type>out</type>
                   <content>
                        The pointer to the variable area which stores the taken out current folder name is specfied.<br/>
                        The current folder name to receive 256 bytes or less of ASCII characters string including NULL.<br/>
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>
                In order to get more information for this err_no return value, execute <a href="Misc/cnc_getdtailerr.htm" target="_parent">cnc_getdtailerr()</a> function.<br/>
                The following details status will be set onto the member, err_no of ODBERR structure.<br/>
                <table class="dd">
                    <tr> <td>22</td><td>:</td><td>The option board is nothing</td> </tr>
                    <tr> <td>24</td><td>:</td><td>The DATA SERVER function is nothing. </td> </tr>
                    <tr> <td>26</td><td>:</td><td>The ATA Card is nothing. </td> </tr>
                </table>
            </content>
        </item>
        <item>
            <name>EW_BUSY</name>
            <content>
                Busy<br/>
                DATA SERVER or embedded Ethernet is processing. <br/>
            </content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>Data error<br/>
                     The Specification of dev_name is wrong.<br/>
            </content>
        </item>
        <item>
            <name>EW_DTSRVR</name>
            <content>DATA SERVER error<br/>
                     In order to get more information for this err_no return value,In order to get more information for this err_no return value,<a href="Misc/cnc_getdtailerr.htm" target="_parent">cnc_getdtailerr()</a> function.<br/>
                     The following details status will be set onto the member, err_no of ODBERR structure.<br/>
                     <li>DATA SERVER</li>
                     <table class="dd">
                         <tr> <td>464</td><td>:</td><td>The ATA card is not formated.</td> </tr>
                     </table>
                     <li>DATA SERVER Host,Embedded Ethernet</li>
                     <table class="dd">
                         <tr> <td>468</td><td>:</td><td>Connection host is not found.</td> </tr>
                         <tr> <td>501</td><td>:</td><td>Acquision of file information went wrong from the host computer.</td> </tr>
                         <tr> <td>507</td><td>:</td><td>Change of a directory went wrong.</td> </tr>
                         <tr> <td>508</td><td>:</td><td>Login to a connection host went wrong.</td> </tr>
                         <tr> <td>509</td><td>:</td><td>Connection with a connection host went wrong.</td> </tr>
                         <tr> <td>511</td><td>:</td><td>An error is in a connection host's parameter.</td> </tr>
                     </table>
            </content>
        </item>
    </errcode>



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



    <parameter></parameter>
    <!-- 300is -->
    <is_parameter></is_parameter>



    <mode></mode>
    <!-- 300is -->
    <is_mode></is_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>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>X</fs16ib>
            <fs18ib>X</fs18ib>
            <fs21ib>X</fs21ib>
            <fs30i>H</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>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>X</fs16ib>
            <fs18ib>X</fs18ib>
            <fs21ib>X</fs21ib>
            <fs30i>H</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>
        <!-- 300is -->
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_rddsfile</name>
            <file>Data/cnc_rddsfile.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
