FtpEventProc Method  
 
VOID CALLBACK FtpEventProc(
  HCLIENT hClient,  
  UINT nEventId,  
  DWORD dwError,  
  DWORD_PTR dwParam  
);

The FtpEventProc function is an application-defined callback function that processes events generated by the client.

Parameters

hClient
Handle to the client session.
nEventId
An unsigned integer which specifies which event occurred. For a complete list of events, refer to the RegisterEvent method.
dwError
An unsigned integer which specifies any error that occurred. If no error occurred, then this parameter will be zero.
dwParam
A user-defined integer value which was specified when the event callback was registered.

Return Value

None.

Remarks

An application must register this callback function by passing its address to the RegisterEvent method. The FtpEventProc function is a placeholder for the application-defined function name. Note that if the callback function is a member of the class, it must be declared as static. The most common approach is to specify the this pointer as the user-defined parameter, and then cast that to a class pointer inside the callback function.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftpv10.lib

See Also

DisableEvents, EnableEvents, FreezeEvents, RegisterEvent