public interface LibDwmApi
extends com.sun.jna.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.
Modifier and Type | Field and Description |
---|---|
static int |
DWM_EC_DISABLECOMPOSITION
Disable composition.
|
static int |
DWM_EC_ENABLECOMPOSITION
Enable composition.
|
static LibDwmApi |
INSTANCE
Native library instance.
|
static int |
S_OK
API success code.
|
Modifier and Type | Method and Description |
---|---|
com.sun.jna.platform.win32.WinNT.HRESULT |
DwmEnableComposition(int uCompositionAction)
Enable/disable desktop window composition.
|
com.sun.jna.platform.win32.WinNT.HRESULT |
DwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)
Check whether or not desktop window composition is currently enabled.
|
static final LibDwmApi INSTANCE
static final int DWM_EC_DISABLECOMPOSITION
static final int DWM_EC_ENABLECOMPOSITION
static final int S_OK
com.sun.jna.platform.win32.WinNT.HRESULT DwmEnableComposition(int uCompositionAction)
uCompositionAction
- enable/disable, i.e. DWM_EC_ENABLECOMPOSITION or DWM_EC_DISABLECOMPOSITIONcom.sun.jna.platform.win32.WinNT.HRESULT DwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)
pfEnabled
- pointer to enabled/disabled flag.Copyright © 2009–2015 Caprica Software Limited. All rights reserved.