BOOL VDDInstallUserHook(hVDD, Ucr_Handler, Uterm_Handler,
Ublock_handler,
Uresume_handler)
IN HANDLE hVDD;
IN PFNVDD_UCREATE Ucr_Handler;
IN PFNVDD_UTERMINATE Uterm_Handler;
IN PFNVDD_UBLOCK Ublock_handler;
IN PFNVDD_URESUME Uresume_handler;
VDDInstallUserHook hooks callback events. These callback events include PDB (DOS process) creation, PDB termination, VDM block and VDM resume.
VDDInstallUserHook returns TRUE if successful. GetLastError (see the Win32 SDK) has extended error information.
The VDD can provide whatever event hook it may choose. Not providing a handler has no effect.
VDDDeInstallUserHook