2 * Copyright 2014 Michael Müller for Pipelight
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "physicalmonitorenumerationapi.h"
25 #include "lowlevelmonitorconfigurationapi.h"
26 #include "highlevelmonitorconfigurationapi.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(dxva2
);
32 BOOL WINAPI
CapabilitiesRequestAndCapabilitiesReply( HMONITOR monitor
, LPSTR buffer
, DWORD length
)
34 FIXME("(%p, %p, %d): stub\n", monitor
, buffer
, length
);
36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
40 HRESULT WINAPI
DXVA2CreateDirect3DDeviceManager9( UINT
*resetToken
, IDirect3DDeviceManager9
**dxvManager
)
42 FIXME("(%p, %p): stub\n", resetToken
, dxvManager
);
47 HRESULT WINAPI
DXVA2CreateVideoService( IDirect3DDevice9
*device
, REFIID riid
, void **ppv
)
49 FIXME("(%p, %s, %p): stub\n", device
, debugstr_guid(riid
), ppv
);
54 BOOL WINAPI
DegaussMonitor( HMONITOR monitor
)
56 FIXME("(%p): stub\n", monitor
);
58 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
62 BOOL WINAPI
DestroyPhysicalMonitor( HMONITOR monitor
)
64 FIXME("(%p): stub\n", monitor
);
66 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
70 BOOL WINAPI
DestroyPhysicalMonitors( DWORD arraySize
, LPPHYSICAL_MONITOR array
)
72 FIXME("(0x%x, %p): stub\n", arraySize
, array
);
74 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
78 BOOL WINAPI
GetCapabilitiesStringLength( HMONITOR monitor
, LPDWORD length
)
80 FIXME("(%p, %p): stub\n", monitor
, length
);
82 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
86 BOOL WINAPI
GetMonitorBrightness( HMONITOR monitor
, LPDWORD minimum
, LPDWORD current
, LPDWORD maximum
)
88 FIXME("(%p, %p, %p, %p): stub\n", monitor
, minimum
, current
, maximum
);
90 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
94 BOOL WINAPI
GetMonitorCapabilities( HMONITOR monitor
, LPDWORD capabilities
, LPDWORD temperatures
)
96 FIXME("(%p, %p, %p): stub\n", monitor
, capabilities
, temperatures
);
98 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
103 BOOL WINAPI
GetMonitorColorTemperature( HMONITOR monitor
, LPMC_COLOR_TEMPERATURE temperature
)
105 FIXME("(%p, %p): stub\n", monitor
, temperature
);
107 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
111 BOOL WINAPI
GetMonitorContrast( HMONITOR monitor
, LPDWORD minimum
, LPDWORD current
, LPDWORD maximum
)
113 FIXME("(%p, %p, %p, %p): stub\n", monitor
, minimum
, current
, maximum
);
115 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
119 BOOL WINAPI
GetMonitorDisplayAreaPosition( HMONITOR monitor
, MC_POSITION_TYPE type
, LPDWORD minimum
,
120 LPDWORD current
, LPDWORD maximum
)
122 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor
, type
, minimum
, current
, maximum
);
124 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
128 BOOL WINAPI
GetMonitorDisplayAreaSize( HMONITOR monitor
, MC_SIZE_TYPE type
, LPDWORD minimum
,
129 LPDWORD current
, LPDWORD maximum
)
131 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor
, type
, minimum
, current
, maximum
);
133 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
137 BOOL WINAPI
GetMonitorRedGreenOrBlueDrive( HMONITOR monitor
, MC_DRIVE_TYPE type
, LPDWORD minimum
,
138 LPDWORD current
, LPDWORD maximum
)
140 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor
, type
, minimum
, current
, maximum
);
142 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
146 BOOL WINAPI
GetMonitorRedGreenOrBlueGain( HMONITOR monitor
, MC_GAIN_TYPE type
, LPDWORD minimum
,
147 LPDWORD current
, LPDWORD maximum
)
149 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor
, type
, minimum
, current
, maximum
);
151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
155 BOOL WINAPI
GetMonitorTechnologyType( HMONITOR monitor
, LPMC_DISPLAY_TECHNOLOGY_TYPE type
)
157 FIXME("(%p, %p): stub\n", monitor
, type
);
159 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
163 BOOL WINAPI
GetNumberOfPhysicalMonitorsFromHMONITOR( HMONITOR monitor
, LPDWORD number
)
165 FIXME("(%p, %p): stub\n", monitor
, number
);
167 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
171 HRESULT WINAPI
GetNumberOfPhysicalMonitorsFromIDirect3DDevice9( IDirect3DDevice9
*device
, LPDWORD number
)
173 FIXME("(%p, %p): stub\n", device
, number
);
178 BOOL WINAPI
GetPhysicalMonitorsFromHMONITOR( HMONITOR monitor
, DWORD arraySize
, LPPHYSICAL_MONITOR array
)
180 FIXME("(%p, 0x%x, %p): stub\n", monitor
, arraySize
, array
);
182 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
186 HRESULT WINAPI
GetPhysicalMonitorsFromIDirect3DDevice9( IDirect3DDevice9
*device
, DWORD arraySize
, LPPHYSICAL_MONITOR array
)
188 FIXME("(%p, 0x%x, %p): stub\n", device
, arraySize
, array
);
193 BOOL WINAPI
GetTimingReport( HMONITOR monitor
, LPMC_TIMING_REPORT timingReport
)
195 FIXME("(%p, %p): stub\n", monitor
, timingReport
);
197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
201 BOOL WINAPI
GetVCPFeatureAndVCPFeatureReply( HMONITOR monitor
, BYTE vcpCode
, LPMC_VCP_CODE_TYPE pvct
,
202 LPDWORD current
, LPDWORD maximum
)
204 FIXME("(%p, 0x%02x, %p, %p, %p): stub\n", monitor
, vcpCode
, pvct
, current
, maximum
);
206 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
210 HRESULT WINAPI
OPMGetVideoOutputsFromHMONITOR( HMONITOR monitor
, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos
,
211 ULONG
*numVideoOutputs
, /* IOPMVideoOutput */ void ***videoOutputs
)
213 FIXME("(%p, 0x%x, %p, %p): stub\n", monitor
, vos
, numVideoOutputs
, videoOutputs
);
218 HRESULT WINAPI
OPMGetVideoOutputsFromIDirect3DDevice9Object( IDirect3DDevice9
*device
, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos
,
219 ULONG
*numVideoOutputs
, /* IOPMVideoOutput */ void ***videoOutputs
)
221 FIXME("(%p, 0x%x, %p, %p): stub\n", device
, vos
, numVideoOutputs
, videoOutputs
);
226 BOOL WINAPI
RestoreMonitorFactoryColorDefaults( HMONITOR monitor
)
228 FIXME("(%p): stub\n", monitor
);
230 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
234 BOOL WINAPI
RestoreMonitorFactoryDefaults( HMONITOR monitor
)
236 FIXME("(%p): stub\n", monitor
);
238 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
242 BOOL WINAPI
SaveCurrentMonitorSettings( HMONITOR monitor
)
244 FIXME("(%p): stub\n", monitor
);
246 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
250 BOOL WINAPI
SaveCurrentSettings( HMONITOR monitor
)
252 FIXME("(%p): stub\n", monitor
);
254 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
258 BOOL WINAPI
SetMonitorBrightness( HMONITOR monitor
, DWORD brightness
)
260 FIXME("(%p, 0x%x): stub\n", monitor
, brightness
);
262 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
266 BOOL WINAPI
SetMonitorColorTemperature( HMONITOR monitor
, MC_COLOR_TEMPERATURE temperature
)
268 FIXME("(%p, 0x%x): stub\n", monitor
, temperature
);
270 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
274 BOOL WINAPI
SetMonitorContrast( HMONITOR monitor
, DWORD contrast
)
276 FIXME("(%p, 0x%x): stub\n", monitor
, contrast
);
278 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
282 BOOL WINAPI
SetMonitorDisplayAreaPosition( HMONITOR monitor
, MC_POSITION_TYPE type
, DWORD position
)
284 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, position
);
286 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
290 BOOL WINAPI
SetMonitorDisplayAreaSize( HMONITOR monitor
, MC_SIZE_TYPE type
, DWORD size
)
292 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, size
);
294 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
298 BOOL WINAPI
SetMonitorRedGreenOrBlueDrive( HMONITOR monitor
, MC_DRIVE_TYPE type
, DWORD drive
)
300 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, drive
);
302 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
306 BOOL WINAPI
SetMonitorRedGreenOrBlueGain( HMONITOR monitor
, MC_GAIN_TYPE type
, DWORD gain
)
308 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, gain
);
310 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
314 BOOL WINAPI
SetVCPFeature( HMONITOR monitor
, BYTE vcpCode
, DWORD value
)
316 FIXME("(%p, 0x%02x, 0x%x): stub\n", monitor
, vcpCode
, value
);
318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
322 BOOL WINAPI
DllMain (HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
324 TRACE("%p,%x,%p\n", hinstDLL
, fdwReason
, lpvReserved
);
327 case DLL_WINE_PREATTACH
:
328 return FALSE
; /* prefer native version */
329 case DLL_PROCESS_ATTACH
:
330 DisableThreadLibraryCalls(hinstDLL
);