9.5 Application Disconnect

If the WOSA/XFS subsystem loses connection to an application, it closes the session (see Section 3.6) and generates this system event. The WFSRESULT data structure (defined in Section 8.1) is utilized as follows:

Field Description

RequestID (not used)

hService Service handle identifying the session associated with the event

tsTimestamp Time the event occurred (local time, in a Win32 SYSTEMTIME structure)

hResult (not used)

u.dwEventID = WFS_SYSE_APP_DISCONNECT

lpBuffer Pointer to a WFSAPPDISC structure:

typedef struct _wfs_appdisc {
 LPSTR   lpszLogicalName;
 LPSTR   lpszWorkstationName;
 LPSTR   lpszAppID;
} WFSAPPDISC, * LPWFSAPPDISC;

The members of this structure are:

Field Description

lpszLogicalName Pointer to the logical service name of the service that the application was connected to

lpszWorkstationName Pointer to the the name of the workstation in which the logical service name is defined

lpszAppID Pointer to the the application ID associated with the session that generated the event