3 ms·
I just ran across a COM interface in the MOST unexpected of places: Apple's CoreMediaIO CFPlugIn video capture device plugin interface! https://github.com/phr
by DonHopkins 7y ago
I just ran across a COM interface in the MOST unexpected of places:
Apple's CoreMediaIO CFPlugIn video capture device plugin interface!
https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.7.sdk/System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Headers/CMIOHardwarePlugIn.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
/*
File: CMIOHardwarePlugIn.h
Contains: API for the CFPlugIn that implements an CMIO driver for the DAL from user space
Copyright: © 2004-2010 by Apple Inc., all rights reserved.
*/
[...]
/*!
@method QueryInterface
@abstract The IUnknown method for finding an interface on a CFPlugIn type.
@param self
The CFPlugIn type to query.
@param uuid
The UUID of the interface to find.
@param interface
The returned interface or NULL if none was found.
@result An error code indicating success of failure.
*/
HRESULT
(STDMETHODCALLTYPE *QueryInterface)( void* self,
REFIID uuid,
LPVOID* interface);
BUSTED!
https://github.com/lvsti/CoreMediaIO-DAL-Example/blob/0392cbf27ed33425a1a5bd9f495b2ccec8f20501/Sources/Extras/CoreMediaIO/DeviceAbstractionLayer/Devices/DP/Base/CMIO_DP_HardwarePlugInInterface.cpp#L98 https://github.com/lvsti/CoreMediaIO-DAL-Example/blob/0392cb...
- pcr910303 7y agoApple's CoreFoundation has used COM since 1.3... and CFPlugIns[0] are the ones that implement them. [0] https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFPlugIns/Concepts/com.html https://developer.apple.com/library/archive/documentation/Co...
- saagarjha 7y agoThey're probably there for iTunes on Windows or similar.
- jjoonathan 7y agoThere are a bunch of COM interfaces in CoreFoundation. My first COM tutorial came from Apple documentation!