1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_NdGetFileAsync</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__nd_8h_1e35dbd5de31151be1f0887a0ad2572f7"></a>
14<h1 align="left">DWC_NdGetFileAsync</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>BOOL <a href=DWC_NdGetFileAsync.html#dwc__nd_8h_1e35dbd5de31151be1f0887a0ad2572f7>DWC_NdGetFileAsync</a>(<a href=DWCNdFileInfo.html#>DWCNdFileInfo</a> *fileinfo,
22                        char *buf,
23                        unsigned int size);</CODE></PRE></dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<TABLE border="1" width="100%">
29  <TBODY>
30
31    <TR>
32<TD width="13%"><EM><STRONG>fileinfo</STRONG></EM></TD>
33<TD width="87%">Pointer to the file information for the download target.</TD>
34    </TR>
35
36    <TR>
37<TD width="13%"><EM><STRONG>buf</STRONG></EM></TD>
38<TD width="87%">Pointer to the buffer to which downloaded data is written.</TD>
39    </TR>
40
41    <TR>
42<TD width="13%"><EM><STRONG>size</STRONG></EM></TD>
43<TD width="87%">Size of the buffer to which downloaded data is written. Specify a value equal to or greater than the <CODE>size</CODE> member of <CODE>fileinfo</CODE>.</TD>
44    </TR>
45
46  </TBODY>
47</TABLE>
48
49<h2>Return Values</h2>
50
51<TABLE border="1" width="100%">
52  <TBODY>
53
54    <TR>
55<TD width="13%"><EM><STRONG>TRUE</STRONG></EM></TD>
56<TD width="87%">Successful.</TD>
57    </TR>
58
59    <TR>
60<TD width="13%"><EM><STRONG>FALSE</STRONG></EM></TD>
61<TD width="87%">Failed. Use the <a href=DWC_GetLastErrorEx.html#dwc__error_8h_118bd79f5d5151259c19c4e552e5e633b><code>DWC_GetLastErrorEx</code></a> function to obtain error information.</TD>
62    </TR>
63
64  </TBODY>
65</TABLE>
66
67<H2>Description</H2>
68<p>Starts file downloading.</p><p>The process fails if communication with the Download server is already in progress.<br>The buffer to which downloaded data is written must have a size in bytes equal to or greater than the <CODE>size</CODE> member of <CODE>fileinfo</CODE>.</p>
69
70<h2>See Also</h2>
71<p>
72
73<CODE><A href="DWC_NdInitAsync.html">DWC_NdInitAsync<BR></A></CODE>
74
75<CODE><A href="DWC_GetLastErrorEx.html">DWC_GetLastErrorEx</A></CODE>
76
77</p>
78
79<H2>Revision History</H2>
80<DL>
81
82<DT><para>1.4.7</DT>
83<DD>Added a description of usage.</DD>
84
85</DL>
86<hr><p>CONFIDENTIAL</p></body>
87</html>
88