Top Description Fields Methods
com.sun.jna.platform.win32

public Interface Dxva2

extends StdCallLibrary, PhysicalMonitorEnumerationAPI, HighLevelMonitorConfigurationAPI, LowLevelMonitorConfigurationAPI
Imports
java.util.Collections, .HashMap, .Map, com.sun.jna.DefaultTypeMapper, .Library, .Native, com.sun.jna.platform.EnumConverter, com.sun.jna.platform.win32.WTypes.LPSTR, .WinDef.BOOL, .WinDef.BYTE, .WinDef.DWORD, .WinDef.DWORDByReference, .WinNT.HANDLE, .WinUser.HMONITOR, com.sun.jna.win32.StdCallLibrary

A port of dxva2.dll
Author
Martin Steiger

Field Summary

Modifier and TypeField and Description
public static final Map<String, Object>
public static final Dxva2
INSTANCE

The only instance of the library

Inherited from com.sun.jna.platform.win32.PhysicalMonitorEnumerationAPI:
PHYSICAL_MONITOR_DESCRIPTION_SIZE
Inherited from com.sun.jna.win32.StdCallLibrary:
FUNCTION_MAPPERSTDCALL_CONVENTION

Method Summary

Modifier and TypeMethod and Description
public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
CapabilitiesRequestAndCapabilitiesReply
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
WTypes.LPSTR
Pointer to a buffer that receives the monitor's capabilities string. The caller must allocate this buffer. To get the size of the string, call GetCapabilitiesStringLength. The capabilities string is always an ASCII string. The buffer must include space for the terminating null character.
pszASCIICapabilitiesString
,
WinDef.DWORD
Size of pszASCIICapabilitiesString in characters, including the terminating null character.
dwCapabilitiesStringLengthInCharacters
)

Retrieves a string describing a monitor's capabilities.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
DegaussMonitor
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
)

Degausses a monitor.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
DestroyPhysicalMonitor
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
)

Closes a handle to a physical monitor.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
DestroyPhysicalMonitors
(int
Number of elements in the pPhysicalMonitorArray array.
dwPhysicalMonitorArraySize
,
PhysicalMonitorEnumerationAPI.PHYSICAL_MONITOR[]
Pointer to an array of PHYSICAL_MONITOR structures.
pPhysicalMonitorArray
)

Closes an array of physical monitor handles.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetCapabilitiesStringLength
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
WinDef.DWORDByReference
Receives the length of the capabilities string, in characters, including the terminating null character.
pdwCapabilitiesStringLengthInCharacters
)

Retrieves the length of a monitor's capabilities string.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetMonitorBrightness
(WinNT.HANDLE
Handle to a physical monitor
hMonitor
,
WinDef.DWORDByReference
Receives the monitor's minimum brightness.
pdwMinimumBrightness
,
WinDef.DWORDByReference
Receives the monitor's current brightness.
pdwCurrentBrightness
,
WinDef.DWORDByReference
Receives the monitor's maximum brightness.
pdwMaximumBrightness
)

Retrieves a monitor's minimum, maximum, and current brightness settings.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

The function fails if the monitor does not support DDC/CI.

GetMonitorCapabilities
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
WinDef.DWORDByReference
Receives a bitwise OR of capabilities flags. (MC_CAPS_*)
pdwMonitorCapabilities
,
WinDef.DWORDByReference
Receives a bitwise OR of color temperature flags. (MC_SUPPORTED_COLOR_TEMPERATURE_*)
pdwSupportedColorTemperatures
)

Retrieves the configuration capabilities of a monitor.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetMonitorColorTemperature
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_COLOR_TEMPERATURE.ByReference
Receives the monitor's current color temperature.
pctCurrentColorTemperature
)

Retrieves a monitor's current color temperature.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetMonitorContrast
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
WinDef.DWORDByReference
Receives the monitor's minimum contrast.
pdwMinimumContrast
,
WinDef.DWORDByReference
Receives the monitor's current contrast.
pdwCurrentContrast
,
WinDef.DWORDByReference
Receives the monitor's maximum contrast.
pdwMaximumContrast
)

Retrieves a monitor's minimum, maximum, and current contrast settings.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetMonitorDisplayAreaPosition
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_POSITION_TYPE
A member of the MC_POSITION_TYPE enumeration, specifying whether to retrieve the horizontal position or the vertical position.
ptPositionType
,
WinDef.DWORDByReference
Receives the minimum horizontal or vertical position.
pdwMinimumPosition
,
WinDef.DWORDByReference
Receives the current horizontal or vertical position.
pdwCurrentPosition
,
WinDef.DWORDByReference
Receives the maximum horizontal or vertical position.
pdwMaximumPosition
)

Retrieves a monitor's minimum, maximum, and current horizontal or vertical position.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetMonitorDisplayAreaSize
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_SIZE_TYPE
A member of the MC_SIZE_TYPE enumeration, specifying whether to retrieve the width or the height.
stSizeType
,
WinDef.DWORDByReference
Receives the minimum width or height.
pdwMinimumWidthOrHeight
,
WinDef.DWORDByReference
Receives the current width or height.
pdwCurrentWidthOrHeight
,
WinDef.DWORDByReference
Receives the maximum width or height.
pdwMaximumWidthOrHeight
)

Retrieves a monitor's minimum, maximum, and current width or height.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetMonitorRedGreenOrBlueDrive
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_DRIVE_TYPE
A member of the MC_DRIVE_TYPE enumeration, specifying whether to retrieve the red, green, or blue drive value.
dtDriveType
,
WinDef.DWORDByReference
Receives the minimum red, green, or blue drive value.
pdwMinimumDrive
,
WinDef.DWORDByReference
Receives the current red, green, or blue drive value.
pdwCurrentDrive
,
WinDef.DWORDByReference
Receives the maximum red, green, or blue drive value.
pdwMaximumDrive
)

Retrieves a monitor's red, green, or blue drive value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetMonitorRedGreenOrBlueGain
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_GAIN_TYPE
A member of the MC_GAIN_TYPE enumeration, specifying whether to retrieve the red, green, or blue gain value.
gtGainType
,
WinDef.DWORDByReference
Receives the minimum red, green, or blue gain value.
pdwMinimumGain
,
WinDef.DWORDByReference
Receives the current red, green, or blue gain value.
pdwCurrentGain
,
WinDef.DWORDByReference
Receives the maximum red, green, or blue gain value.
pdwMaximumGain
)

Retrieves a monitor's red, green, or blue gain value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetMonitorTechnologyType
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_DISPLAY_TECHNOLOGY_TYPE.ByReference
Receives the technology type as defined in HighLevelMonitorConfigurationAPI.MC_DISPLAY_TECHNOLOGY_TYPE.
pdtyDisplayTechnologyType
)

Retrieves the type of technology used by a monitor.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetNumberOfPhysicalMonitorsFromHMONITOR
(WinUser.HMONITOR
A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow, which are part of the graphics device interface (GDI).
hMonitor
,
WinDef.DWORDByReference
Receives the number of physical monitors associated with the monitor handle.
pdwNumberOfPhysicalMonitors
)

Retrieves the number of physical monitors associated with an HMONITOR monitor handle.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
GetPhysicalMonitorsFromHMONITOR
(WinUser.HMONITOR
A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow, which are part of the graphics device interface (GDI).
hMonitor
,
int
Number of elements in pPhysicalMonitorArray. To get the required size of the array, call GetNumberOfPhysicalMonitorsFromHMONITOR.
dwPhysicalMonitorArraySize
,
PhysicalMonitorEnumerationAPI.PHYSICAL_MONITOR[]
Pointer to an array of PHYSICAL_MONITOR structures. The caller must allocate the array.
pPhysicalMonitorArray
)

Retrieves the physical monitors associated with an HMONITOR monitor handle.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetTimingReport
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
LowLevelMonitorConfigurationAPI.MC_TIMING_REPORT
Pointer to an MC_TIMING_REPORT structure that receives the timing information.
pmtrMonitorTimingReport
)

Retrieves a monitor's horizontal and vertical synchronization frequencies.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
GetVCPFeatureAndVCPFeatureReply
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
WinDef.BYTE
VCP code to query. The VCP codes are Include the VESA Monitor Control Command Set (MCCS) standard, versions 1.0 and 2.0. This parameter must specify a continuous or non-continuous VCP, or a vendor-specific code. It should not be a table control code.
bVCPCode
,
LowLevelMonitorConfigurationAPI.MC_VCP_CODE_TYPE.ByReference
Receives the VCP code type, as a member of the MC_VCP_CODE_TYPE enumeration. This parameter can be NULL.
pvct
,
WinDef.DWORDByReference
Receives the current value of the VCP code. This parameter can be NULL.
pdwCurrentValue
,
WinDef.DWORDByReference
If bVCPCode specifies a continuous VCP code, this parameter receives the maximum value of the VCP code. If bVCPCode specifies a non-continuous VCP code, the value received in this parameter is undefined. This parameter can be NULL.
pdwMaximumValue
)

Retrieves the current value, maximum value, and code type of a Virtual Control Panel (VCP) code for a monitor.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
RestoreMonitorFactoryColorDefaults
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
)

Restores a monitor's color settings to their factory defaults.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
RestoreMonitorFactoryDefaults
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
)

Restores a monitor's settings to their factory defaults.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
SaveCurrentMonitorSettings
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
)

Saves the current monitor settings to the display's nonvolatile storage.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
SaveCurrentSettings
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
)

Saves the current monitor settings to the display's nonvolatile storage.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
SetMonitorBrightness
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
int
Brightness value. To get the monitor's minimum and maximum brightness values, call GetMonitorBrightness.
dwNewBrightness
)

Sets a monitor's brightness value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
SetMonitorColorTemperature
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_COLOR_TEMPERATURE
Color temperature, specified as a member of the MC_COLOR_TEMPERATURE enumeration.
ctCurrentColorTemperature
)

Sets a monitor's color temperature.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
SetMonitorContrast
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
int
Contrast value. To get the monitor's minimum and maximum contrast values, call GetMonitorContrast.
dwNewContrast
)

Sets a monitor's contrast value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
SetMonitorDisplayAreaPosition
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_POSITION_TYPE
A member of the MC_POSITION_TYPE enumeration, specifying whether to set the horizontal position or the vertical position.
ptPositionType
,
int
Horizontal or vertical position. To get the minimum and maximum position, call GetMonitorDisplayAreaPosition.
dwNewPosition
)

Sets the horizontal or vertical position of a monitor's display area.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
SetMonitorDisplayAreaSize
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_SIZE_TYPE
A member of the MC_SIZE_TYPE enumeration, specifying whether to set the width or the height.
stSizeType
,
int
Display area width or height. To get the minimum and maximum width and height, call GetMonitorDisplayAreaSize.
dwNewDisplayAreaWidthOrHeight
)

Sets the width or height of a monitor's display area.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
SetMonitorRedGreenOrBlueDrive
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_DRIVE_TYPE
A member of the MC_DRIVE_TYPE enumeration, specifying whether to set the red, green, or blue drive value.
dtDriveType
,
int
Red, green, or blue drive value. To get the monitor's minimum and maximum drive values, call GetMonitorRedGreenOrBlueDrive.
dwNewDrive
)

Sets a monitor's red, green, or blue drive value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE
SetMonitorRedGreenOrBlueGain
(WinNT.HANDLE
Handle to a physical monitor.
hMonitor
,
HighLevelMonitorConfigurationAPI.MC_GAIN_TYPE
A member of the MC_GAIN_TYPE enumeration, specifying whether to set the red, green, or blue gain.
gtGainType
,
int
Red, green, or blue gain value. To get the monitor's minimum and maximum gain values, call GetMonitorRedGreenOrBlueGain.
dwNewGain
)

Sets a monitor's red, green, or blue gain value.

public WinDef.BOOL

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
SetVCPFeature
(WinNT.HANDLE
Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR
hMonitor
,
WinDef.BYTE
VCP code to set. The VCP codes are defined in the VESA Monitor Control Command Set (MCCS) standard, version 1.0 and 2.0. This parameter must specify a continuous or non-continuous VCP, or a vendor-specific code. It should not be a table control code.
bVCPCode
,
WinDef.DWORD
Value of the VCP code.
dwNewValue
)

Sets the value of a Virtual Control Panel (VCP) code for a monitor.