[This is preliminary documentation and subject to change.]
Sets a hook into the DDI stream.
WINDDIAPI HDDI WINAPI SetDDIHook(
HDC hdcHook,
HMODULE hModCode,
LONG lPrivateData,
UINT hookClass,
DDIHOOKPROC lpfnDdiHook
);
DDIHOOK_FONTS | Font enhancers. |
DDIHOOK_MAGNIFIER | Screen magnifiers. |
DDIHOOK_RECORDER | Screen readers and screen capture utilities. |
DDIHOOK_REMOTE | Remoting utilities. |
Returns an HDDI value identifying this DDI hook instance if successful, or zero otherwise. Your application should save the return value to use with the UnhookDDIHook function.
The hook class determines the order in which DDI callbacks are called. The actual display device is always the last called. See the winddi.h file in the INC16 directory for more information on what GDI passes to the callback function.
Note The callback procedure specified by the lpfnDdiHook parameter must be written into a 16-bit dynamic-link library (DLL).
Setting a DDI Hook, Unhooking a DDI Hook