Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Next Release (5.12.0)

Features
--------
* [#1429](https://github.com/java-native-access/jna/pull/1429): Add missing `Winspool.PRINTER_INFO_X` structs [@tresf](https://github.com/tresf).

Bug Fixes
---------
Expand Down
31 changes: 30 additions & 1 deletion contrib/platform/src/com/sun/jna/platform/win32/User32.java
Original file line number Diff line number Diff line change
Expand Up @@ -1857,6 +1857,35 @@ HWND CreateWindowEx(int dwExStyle, String lpClassName,
*/
BOOL EnumDisplayMonitors(HDC hdc, RECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData);

/**
* retrieves information about one of the graphics modes for a display device. To retrieve information for
* all the graphics modes of a display device, make a series of calls to this function.
*
* @param lpszDeviceName A pointer to a null-terminated string that specifies the display device about
* whose graphics mode the function will obtain information. This parameter is either NULL or a
* DISPLAY_DEVICE.DeviceName returned from EnumDisplayDevices. A NULL value specifies the current
* display device on the computer on which the calling thread is running.
*
* @param iModeNum Graphics mode indexes start at zero. To obtain information for all of a display device's
* graphics modes, make a series of calls to EnumDisplaySettings, as follows: Set iModeNum to zero
* for the first call, and increment iModeNum by one for each subsequent call. Continue calling the
* function until the return value is zero.
* When you call EnumDisplaySettings with iModeNum set to zero, the operating system initializes and
* caches information about the display device. When you call EnumDisplaySettings with iModeNum set
* to a nonzero value, the function returns the information that was cached the last time the function
* was called with iModeNum set to zero.
*
* @param lpDevMode A pointer to a DEVMODE structure into which the function stores information about the
* specified graphics mode. Before calling EnumDisplaySettings, set the dmSize member to
* sizeof(DEVMODE), and set the dmDriverExtra member to indicate the size, in bytes, of the additional
* space available to receive private driver data.
*
* @return If the function succeeds, the return value is nonzero. If the function fails, the return value
* is zero.
* @see <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumdisplaysettingsa">MSDN</a>
*/
BOOL EnumDisplaySettings(String lpszDeviceName, int iModeNum, Pointer lpDevMode);

/**
* Retrieves the show state and the restored, minimized, and maximized
* positions of the specified window.
Expand Down Expand Up @@ -2437,7 +2466,7 @@ HANDLE SetWinEventHook(int eventMin, int eventMax, HMODULE hmodWinEventProc, Win
* duplicate icon. <br>
* If the function fails, the return value is NULL. To get extended
* error information, call GetLastError.
* @see <a href="https://msdn.microsoft.com/en-us/library/ms648058(S.85).aspx">MSDN</a>
* @see <a href="https://msdn.microsoft.com/en-us/library/ms648058(S.85).aspx">MSDN</a>*
*/
HICON CopyIcon(HICON hIcon);

Expand Down
Loading