ISensNetwork::ConnectionLost method (sensevts.h)
The ConnectionLost method notifies your application that the specified connection has been dropped.
Syntax
HRESULT ConnectionLost(
[in] BSTR bstrConnection,
[in] ULONG ulType
);
Parameters
[in] bstrConnection
For WAN connections, the information passed is the connection name. For WAN connections, the connection name is the name of the phone book entry. For LAN connections, the information passed is "LAN connection".
[in] ulType
Connection type. This value can be one of the following values.
Value | Meaning |
---|---|
|
The connection is to a Local Area Network (LAN). |
|
The connection is to a Wide Area Network (WAN). |
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Method returned successfully. |
Remarks
SENS calls this method to notify your application that the specified connection has been dropped.
Filtering can be performed on the publisher property ulConnectionLostType by setting it to either CONNECTION_LAN or CONNECTION_WAN or both. Use IEventSubscription::PutPublisherProperty to set the publisher property.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | sensevts.h (include Sensevts.h, Sens.h) |
DLL | Sens.dll |
See also
About System Event Notification Service