PT-9230 Mobile Computer SDK Programming Manual 66
FindFirstFTPFile
Get first file information from share folder in the connected device.
DWORD FindFirstFTPFile
{
WCHAR *path,
FTP_FILE *File
}
Parameters
path
[in] The path of connected device for search file.
File
[out] The first searched file information in the path, see FTP_FILE data structure.
Returned Values
If the action succeeds, the returned value is E_FUNC_SUCCEED. If the action fails, possible returned values are
E_FUNC_PAR_ERROR, BT_ERR_DEVICE_NOT_CONNECT, BT_ERR_FTP_DIR_FAIL,
BT_ERR_FTP_EMPTY_FILE.
Example
FTP_FILE File;
DWORD dwErr = FindFirstFTPFile(_T(“\\”), &File);
If(dwErr==E_FUNC_SUCCEED){
Do{
…………
dwErr = FindNextFTPFile(&File);
}while(dwErr == E_FUNC_SUCCEED);
}
Requirements
OS Versions: Windows CE 6.0 or beyond.
Header: sysapiax.h
Link Library: sysapiax.lib
Link DLL: sysapiax.dll
Device: PT90