AdsAmsRegisterRouterNotification

The AdsAmsRegisterNotificationReq() function can be used to detect a change in the state of the TwinCAT router. The given callback function is invoked each time the state changes. The AdsAmsUnRegisterNotification() function ends the state monitoring of the router again.

LONG AdsAmsRegisterRouterNotification(
PAmsRouterNotificationFuncEx   pNoteFunc,
);

Parameter

pNoteFunc

[in] Name of the callback function

Return value

Returns the function's error state. 

Comments:

Sample