The kernel is a shared environment. Accordingly, many different
kernel-mode drivers utilize services provided by the kernel. Furthermore,
when shimming of drivers is necessary, it is desirable to support shim
reuse amongst drivers with similar problems or issues, rather than
generating a customized shim for each driver. To facilitate kernel-mode
shimming and shim reuse, context information needs to be retrieved and
maintained so that shims can identify particular driver calls and
preserve driver specific linkage information. The present invention
accomplishes the forgoing by employing an intermediate structure, a
content component, between a client or driver call and a common shared
shim to provide the shim with contextual information.