Function

CGEventTapIsEnabled

Returns a Boolean value indicating whether an event tap is enabled.

Declaration

bool CGEventTapIsEnabled(CFMachPortRef tap);

Parameters

myTap

The event tap to test.

Return Value

If YES, the specified event tap is enabled; otherwise, NO.

Discussion

For more information, see the function CGEventTapEnable.

See Also

Working With Event Taps

CGEventTapCreate

Creates an event tap.

CGEventTapCreateForPSN

Creates an event tap for a specified process.

CGEventTapEnable

Enables or disables an event tap.

CGEventTapPostEvent

Posts a Quartz event from an event tap into the event stream.

CGEventPost

Posts a Quartz event into the event stream at a specified location.

CGEventPostToPSN

Posts a Quartz event into the event stream for a specific application.

CGGetEventTapList

Gets a list of currently installed event taps.

CGEventMaskBit

Generates an event mask for a single type of event.