FTPBROWSECALLBACK

#include "ltweb.h"

L_LTWEB_API L_INT YourFunction(pszFile, pFileData, pUserData)

L_TCHAR *pszFile;

/* file name */

pFILEDATA pFileData;

/* pointer to a structure */

L_VOID *pUserData;

/* pointer to additional parameters */

Handles the data generated by calling the L_InetFtpBrowseDir function.

Parameter

Description

pszFile

Character string that contains the file name. This is a NULL terminated string.

pFileData

Pointer to a FILEDATA structure that specifies extra information about the file that was found.

pUserData

A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the calling function.) Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This callback function receives the results of a file search or from browsing a directory.

A call to this callback function is generated when L_InetFtpBrowseDir is called.

This function must return SUCCESS in order to continue browsing a directory.

Required DLLs and Libraries

LTWEB
LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_InetFtpBrowseDir

Topics:

How to Program with FTP Functions

Example

For an example, refer to L_InetFtpBrowseDir example.