SetEnable
Enables or disables the delivery of events to your code.
Declaration
virtual kern_return_t SetEnable(bool enable);Parameters
- enable:
A Boolean value that indicates whether to enable or disable the dispatch source. Specify
trueto enable it orfalseto disable it.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.