include vmm.inc
GetDeviceServiceOrdinal eax, Service
mov esi, HookProc
VMMCall Unhook_Device_Service
Unhooks a device service that was previously hooked with the Hook_Device_Service service. Uses Flags.
The service number is invalid.
The hook procedure could not be found in the chain.
A non-HookProc hook existed in the chain.
In order for Hook_Device_Service to succeed, the hook to be unhooked and all hooks that were made after the specified hook must have been declared as Hook_Proc's using the BeginProc macro. This macro is provided to correctly generate the procedure header necessary for creating a hook chain that can be processed quickly and still allows hooks to be removed from the chain.
BeginProc, Hook_Device_Service