Callback Function |
Top Previous Next |
A callback function (or just callback for short) is a function that can be called from other functions. The calling functions can reside in your program, other Dlls or in Windows' system code. Callbacks must follow the C rules for function calling. Callback functions are defined by a calling convention (normally WINAPI) and their parameters. At runtime only the address of the callback function is required to call it. A prominent example of a callback function is the window procedure of a window class.
For an explanation how to provide callbacks with Cockpit, see here. |