http://bugs.winehq.org/show_bug.cgi?id=19400
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2009-11-09 23:03:16 --- Except ExtDeviceMode is not declared as WINAPI in PSDK. So it could be application's bug:
LONG ExtDeviceMode( IN HWND hWnd, IN HANDLE hInst, OUT LPDEVMODEA pDevModeOutput, IN LPSTR pDeviceName, IN LPSTR pPort, IN LPDEVMODEA pDevModeInput, IN LPSTR pProfile, OUT DWORD fMode );
Where you right is the order of the parameters. Indeed Wine's declarations is: INT CDECL PSDRV_ExtDeviceMode( LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput, LPSTR lpszDevice, LPSTR lpszPort, LPDEVMODEA lpdmInput, LPSTR lpszProfile, DWORD dwMode);