--- a/amf/public/include/components/DisplayCapture.h +++ b/amf/public/include/components/DisplayCapture.h @@ -40,11 +40,13 @@ #include "Component.h" +#if defined(__cplusplus) // FIX198: this declaration uses C++ namespace types. extern "C" { // To create capture component with Desktop Duplication API use this function AMF_RESULT AMF_CDECL_CALL AMFCreateComponentDisplayCapture(amf::AMFContext* pContext, void* reserved, amf::AMFComponent** ppComponent); } +#endif // To create AMD Direct Capture component use this component ID with AMFFactory::CreateComponent() #define AMFDisplayCapture L"AMFDisplayCapture"