A system and method for generically intercepting any type of application
programming interface (API) events. The API event interception system
includes an intercept library and an API. The application program calls
the API to process the client event generated. The API receives the
request for service from the application program and determines if
intercepting of events is enabled. If intercepting is enabled, the API
sends the event to the intercept library. The intercept library
determines that the intercept library is enabled to support the event. If
the intercept library is enabled to support the event, the intercept
library invokes the required event program. If the intercept library is
not enabled to support the event, the intercept library returns a message
instructing the API to process the event.