Close a connection to an IOService and destroy the connect handle.
- macOS 10.0+
- Mac Catalyst 13.0+
The connect handle created by IOServiceOpen. It will be destroyed by this function, and should not be released with IOObjectRelease.
A kern_return_t error code.
A connection created with the IOServiceOpen should be closed when the connection is no longer to be used with IOServiceClose.