Hi Nikolay,

The widl does include the extern "C" block which I didn't realise. 

Regards
Alistair.


From: wine-devel <wine-devel-bounces@winehq.org> on behalf of Nikolay Sivov <nsivov@codeweavers.com>
Sent: Tuesday, 16 April 2019 1:19 AM
To: wine-devel@winehq.org
Subject: Re: [PATCH] include: Add IMFPMediaPlayer definition.
 
On 4/15/19 1:20 PM, Alistair Leslie-Hughes wrote:

> Hi Nikolay,
>
> On 15/4/19 3:35 pm, Nikolay Sivov wrote:
>> +cpp_quote("HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_CREATION_OPTIONS options, ")
>> +cpp_quote("        IMFPMediaPlayerCallback *callback, HWND hwnd, IMFPMediaPlayer **player);")
> This need to have extern "C" around the function.

Like Jacek already said, widl will wrap everything in extern "C" block.
That also reminded me, was
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.winehq.org%2Fgit%2Fwine.git%2Fcommit%2F0501ad920afd208d85cf807c9fcec1d4e8245164really&amp;data=02%7C01%7C%7Cce0ed24c599845ebce8f08d6c1b5e7b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636909384348864453&amp;sdata=Ec%2BwZvzOqFyUd%2F4qUS%2BSoghK08FEY4z4ZwdZRp2c8jM%3D&amp;reserved=0
necessary?

Now generated header has nested extern "C".

>
> Regards
>
> Alistair
>
>