Package uk.co.caprica.vlcj.binding
Interface LibDwmApi
-
- All Superinterfaces:
com.sun.jna.Library
public interface LibDwmApi extends com.sun.jna.LibraryJNA interface to the native LibDwm (Desktop Window Manager) library.This library is only available on Windows platforms.
The functionality provided by this library may be helpful especially when working with full-screen exclusive mode in Java which suffers from numerous idiosyncrasies on Windows, some of which can be mitigated by ensuring that desktop window composition is disabled. Disabling composition can be done at the operating system level, but is more convenient for end-users if the application itself does it.
This class may be removed in future versions of vlcj due to it's uselessness.
-
-
Field Summary
Fields Modifier and Type Field Description static intDWM_EC_DISABLECOMPOSITIONDisable composition.static intDWM_EC_ENABLECOMPOSITIONEnable composition.static LibDwmApiINSTANCENative library instance.static intS_OKAPI success code.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.sun.jna.platform.win32.WinNT.HRESULTDwmEnableComposition(int uCompositionAction)Enable/disable desktop window composition.com.sun.jna.platform.win32.WinNT.HRESULTDwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)Check whether or not desktop window composition is currently enabled.
-
-
-
Field Detail
-
INSTANCE
static final LibDwmApi INSTANCE
Native library instance.
-
DWM_EC_DISABLECOMPOSITION
static final int DWM_EC_DISABLECOMPOSITION
Disable composition.- See Also:
- Constant Field Values
-
DWM_EC_ENABLECOMPOSITION
static final int DWM_EC_ENABLECOMPOSITION
Enable composition.- See Also:
- Constant Field Values
-
S_OK
static final int S_OK
API success code.- See Also:
- Constant Field Values
-
-
Method Detail
-
DwmEnableComposition
com.sun.jna.platform.win32.WinNT.HRESULT DwmEnableComposition(int uCompositionAction)
Enable/disable desktop window composition.- Parameters:
uCompositionAction- enable/disable, i.e. DWM_EC_ENABLECOMPOSITION or DWM_EC_DISABLECOMPOSITION- Returns:
- S_OK or HRESULT error code
-
DwmIsCompositionEnabled
com.sun.jna.platform.win32.WinNT.HRESULT DwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)
Check whether or not desktop window composition is currently enabled.- Parameters:
pfEnabled- pointer to enabled/disabled flag.- Returns:
- S_OK or HRESULT error code
-
-