include vmm.inc
mov esi, OFFSET32 NmiProc
VMMCall Hook_NMI_Event
Installs a Non-Maskable Interrupt (NMI) event procedure. Virtual devices use this service to install event procedures to carry out tasks that are not permitted in NMI handlers. This service is available only during initialization. Uses Flags.
The system calls each installed NMI event procedure after the last handler in the NMI handler chain has executed. If more than one NMI event procedure is installed, the system calls the procedures in the order in which they were installed.
NMIEventCallback, Unhook_NMI_Event