https://bugs.winehq.org/show_bug.cgi?id=41926
--- Comment #9 from Henri Verbeet hverbeet@gmail.com --- (In reply to Dmitry Timoshkov from comment #8)
Not sure how accurate it is, but https://www.dxgl.info/svn/dxgl/ddraw/ddraw.cpp contains this info:
/// Stub for function found in system ddraw.dll /// Function import is GetSurfaceFromDC DDRAW_API HRESULT WINAPI GlobalGetSurfaceFromDC(LPDIRECTDRAW7 lpDD, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
The number of arguments seems correct, but so far I haven't been able to make it return anything other than E_INVALIDARG. It's perhaps interesting to note that it doesn't crash either, even when passing it random/interesting pointers.