ConnectionStatusHandler function
Represents the function that will handle the ConnectionStatusChanged event which notifies the client of changes in the device’s network connection status.
Syntax
HRESULT ConnectionStatusHandler(
_In_ IBasicDevice *sender,
_In_ ConnectionStatus arg
);
Parameters
sender [in]
A reference to the event source.arg [in]
A ConnectionStatus enumeration value.
Return value
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
S_OK | The function succeeded. |
Remarks
To register this handler with the ConnectionStatusChanged event call the add_ConnectionStatusChanged method, and to unregister it call the remove_ConnectionStatusChanged method.
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
Mfidl.h |
Library |
Mf.lib |
DLL |
Mf.dll |