CipherLab 9400 Series User Manual page 179

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

PutFile
Purpose
To upload a file to the FTP share folder.
Syntax
int PutFile (int serviceInfo,
Parameters
serviceInfo
[in] A value returned by FindService().
filePath
[in] A string variable that stores the file path information.
Example for C#
int b1 = 0;
string filePath = "\\DiskOnChip\\Test.txt";
b1 = Cipherlab.SystemAPI.Member.PutFile(serviceInfo, filePath);
Example for VB
Dim filePath As String = "\DiskOnChip\Test.txt"
Cipherlab.SystemAPI.Member.PutFile(serviceInfo, filePath)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
See Also
FindService, GetNextFile, StartBrowse
string filePath);
Call GetErrorCode() to find the error condition encountered:
22
ERROR_NO_SERVICE_INFO
26
ERROR_NOT_SERVICEINFO_OBJ
27
ERROR_WRONG_SERVICE_TYPE
29
ERROR_SERVICE_NOT_CONNECTED
31
ERROR_WRONG_ARG
32
ERROR_OPERATION_FAIL
Chapter 3
System API
171

Advertisement

Table of Contents
loading

Table of Contents