PURPOSE
A convenient function for shutting down interrupt handling.
PROTOTYPE
DWORD InterruptDisable(HANDLE hThread);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| HANDLE | Input |
DESCRIPTION
| Name | Description |
|---|---|
| hThread | Interrupt thread handle, as received from InterruptEnable() [2.18] (*phThread) |
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].
REMARKS
EXAMPLE
main()
{
....
if (!InterruptEnable(&thread_handle, hWD, &Intrp,
interrupt_handler, pData))
{
printf("failed enabling interrupt\n");
}
else
{
printf("Press Enter to uninstall interrupt\n");
fgets(line, sizeof(line), stdin);
InterruptDisable(thread_handle); /* Calls WD_IntDisable() */
}
....
}