ScheduleCallbackOnServiceClose (open)
Schedules a function to be called when a service closes
Syntax
LOADLIB "mod::system/lib/services.whlib";
MACRO ScheduleCallbackOnServiceClose(OBJECT service, FUNCTION PTR onclose)
Parameters
OBJECT service
Service
FUNCTION PTR onclose
Function to call when the service closes