INtime SDK Help
RtAttachInterruptVector (iwin32)
INtime SDK v7.1 > About INtime > Alternate APIs > iwin32 API > iwin32 API > RtAttachInterruptVector (iwin32)

Creates an interrupt thread that wakes up when its hardware interrupt occurs.

HANDLE RtAttachInterruptVector(
    PSECURITY_ATTRIBUTES        pThreadAttributes,
    ULONG                       StackSize,
    VOID (RTFCNDCL *            pRoutineIST)(PVOID ContextIST),
    PVOID                       ContextIST,
    ULONG                       Priority,
    INTERFACE_TYPE              InterfaceType,
    ULONG                       BusNumber,
    ULONG                       BusInterruptLevel,
    ULONG                       BusInterruptVector
);

Parameters

pThreadAttributes
Ignored.
StackSize
The number of bytes to allocate to the new thread's stack.
pRoutineIST
Pointer to the handler to run. This handler runs in a normal thread context.
ContextIST
Parameter passed to the handler.
Priority
The thread priority for the handler routine, specified as a value between 0 (lowest priority) and 127 (highest priority).
InterfaceType
Ignored.
BusNumber
Ignored.
BusInterruptLevel
An integer that defines the hardware interrupt.
BusInterruptVector
Ignored.

Remarks

Return Values

Handle for the interrupt object
Success.
NULL
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h iwin32.h iwin32.lib

Note

This function operates in the real-time portion of your application.

See Also

RtReleasehInterruptVector, RtAttachInterruptVectorEx, Thread priorities, iwin32 API, iwin32 Overview