Platform SDK: Fax Services |
The fax service calls the FaxRouteDeviceChangeNotification function to inform a fax routing extension DLL that a fax device has been removed from the fax server, or that a new fax device has been installed. Each fax routing extension must export the FaxRouteDeviceChangeNotification function.
BOOL WINAPI FaxRouteDeviceChangeNotification( DWORD DeviceId, // fax device identifier BOOL NewDevice // new fax device flag );
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the NewDevice parameter is equal to TRUE, it indicates that the fax service detects the installation of a new fax device. The fax routing extension must perform any initialization procedures necessary to enable the extension to route inbound fax transmissions using the new device.
If the NewDevice parameter is equal to FALSE, it indicates that the fax service detects the removal of the fax device identified by the DeviceId parameter. The fax routing extension should perform required cleanup routines at this time.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxroute.h.
Import Library: User-defined.
Fax Routing Extension Application Programming Interface Overview, Fax Routing Extension Functions, FaxRouteDeviceEnable