xfDefNotifyProc

#include <fte.h>

DWORD WINAPI xfDefNotifyProc(hSession, hConnection, dwNotificationCode, dwParam)
HSESSION
hSession; /* handle of session in which event occurred */
HCONNECTION
hConnection; /* handle of connection in which event occurred */
DWORD
dwNotificationCode; /* code specifying which event that occurred */
DWORD
dwParam; /* parameter for notification code */

The xfDefNotifyProc function invokes the use of the default action in response to a notification event.

Parameters

hSession

Identifies the session provided by the xfNotifyProc routine.

hConnection

Identifies the connection provided by the xfNotifyProc routine.

dwNotificationCode

Identifies the file transfer event that occurred. See xfNotifyProc for possible values.

dwParam

Specifies a parameter for the notification event. See xfNotifyProc for possible values.

Return Value


Depends on the dwNotificationCode.

Comments

The file transfer engine calls the notification procedure when a file transfer event occurs. The notification procedure can execute application code to respond appropriately, or it can call the xfDefNotifyProc function to invoke the default action in response to the event.

For instance, the application is responsible for the user interface for file transfers, unless the notification procedure calls xfDefNotifyProc. Then the user interacts with the default file transfer interface.

See Also

xfNotifyProc, xfInitialize