The program list exit hook called every time a program-list call or initialization file call is invoked by an application. It is called before the call is run. This hook, together with its counterpart, ProgramListEntryHook, lets applications or system components:
BOOL EXPENTRY ProgramListExitHook(HAB hab, PPRFHOOKPARMS pProfileHookParams);
The hab parameter is the anchor block handle.
The pProfileHookParams parameter is the profile hook parameters. These identify the call and give its parameters and return code.
This function returns either TRUE or FALSE. If it returns TRUE, the next hook in the chain is not called. If it returns FALSE, the next hook in the chain is called.