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.win... necessary?
Now generated header has nested extern "C".
Regards
Alistair