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
);
190 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
194 BOOL WINAPI
GetTimingReport( HMONITOR monitor
, LPMC_TIMING_REPORT timingReport
)
196 FIXME("(%p, %p): stub\n", monitor
, timingReport
);
198 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
202 BOOL WINAPI
GetVCPFeatureAndVCPFeatureReply( HMONITOR monitor
, BYTE vcpCode
, LPMC_VCP_CODE_TYPE pvct
,
203 LPDWORD current
, LPDWORD maximum
)
205 FIXME("(%p, 0x%02x, %p, %p, %p): stub\n", monitor
, vcpCode
, pvct
, current
, maximum
);
207 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
211 HRESULT WINAPI
OPMGetVideoOutputsFromHMONITOR( HMONITOR monitor
, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos
,
212 ULONG
*numVideoOutputs
, /* IOPMVideoOutput */ void ***videoOutputs
)
214 FIXME("(%p, 0x%x, %p, %p): stub\n", monitor
, vos
, numVideoOutputs
, videoOutputs
);
219 HRESULT WINAPI
OPMGetVideoOutputsFromIDirect3DDevice9Object( IDirect3DDevice9
*device
, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos
,
220 ULONG
*numVideoOutputs
, /* IOPMVideoOutput */ void ***videoOutputs
)
222 FIXME("(%p, 0x%x, %p, %p): stub\n", device
, vos
, numVideoOutputs
, videoOutputs
);
227 BOOL WINAPI
RestoreMonitorFactoryColorDefaults( HMONITOR monitor
)
229 FIXME("(%p): stub\n", monitor
);
231 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
235 BOOL WINAPI
RestoreMonitorFactoryDefaults( HMONITOR monitor
)
237 FIXME("(%p): stub\n", monitor
);
239 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
243 BOOL WINAPI
SaveCurrentMonitorSettings( HMONITOR monitor
)
245 FIXME("(%p): stub\n", monitor
);
247 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
251 BOOL WINAPI
SaveCurrentSettings( HMONITOR monitor
)
253 FIXME("(%p): stub\n", monitor
);
255 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
259 BOOL WINAPI
SetMonitorBrightness( HMONITOR monitor
, DWORD brightness
)
261 FIXME("(%p, 0x%x): stub\n", monitor
, brightness
);
263 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
267 BOOL WINAPI
SetMonitorColorTemperature( HMONITOR monitor
, MC_COLOR_TEMPERATURE temperature
)
269 FIXME("(%p, 0x%x): stub\n", monitor
, temperature
);
271 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
275 BOOL WINAPI
SetMonitorContrast( HMONITOR monitor
, DWORD contrast
)
277 FIXME("(%p, 0x%x): stub\n", monitor
, contrast
);
279 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
283 BOOL WINAPI
SetMonitorDisplayAreaPosition( HMONITOR monitor
, MC_POSITION_TYPE type
, DWORD position
)
285 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, position
);
287 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
291 BOOL WINAPI
SetMonitorDisplayAreaSize( HMONITOR monitor
, MC_SIZE_TYPE type
, DWORD size
)
293 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, size
);
295 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
299 BOOL WINAPI
SetMonitorRedGreenOrBlueDrive( HMONITOR monitor
, MC_DRIVE_TYPE type
, DWORD drive
)
301 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, drive
);
303 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
307 BOOL WINAPI
SetMonitorRedGreenOrBlueGain( HMONITOR monitor
, MC_GAIN_TYPE type
, DWORD gain
)
309 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor
, type
, gain
);
311 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
315 BOOL WINAPI
SetVCPFeature( HMONITOR monitor
, BYTE vcpCode
, DWORD value
)
317 FIXME("(%p, 0x%02x, 0x%x): stub\n", monitor
, vcpCode
, value
);
319 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
323 BOOL WINAPI
DllMain (HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
325 TRACE("%p,%x,%p\n", hinstDLL
, fdwReason
, lpvReserved
);
328 case DLL_WINE_PREATTACH
:
329 return FALSE
; /* prefer native version */
330 case DLL_PROCESS_ATTACH
:
331 DisableThreadLibraryCalls(hinstDLL
);