Use DtWsmWorkspaceModifiedCallback().
DtWsmWorkspaceModifiedCallback toplevel, wschangecb, NULL);
where:
toplevel is the application's top-level widget.
wschangecb() is the name of the function to be called.
NULL is the parameter for client data to be passed to the callback. In this case, no data is passed.