|
13 | 13 | package com.sun.jna.platform.win32;
|
14 | 14 |
|
15 | 15 | import com.sun.jna.Native;
|
| 16 | +import com.sun.jna.WString; |
16 | 17 | import com.sun.jna.platform.win32.Guid.GUID;
|
17 | 18 | import com.sun.jna.platform.win32.WinDef.DWORD;
|
18 | 19 | import com.sun.jna.platform.win32.WinDef.HICON;
|
@@ -376,5 +377,26 @@ public interface Shell32 extends ShellAPI, StdCallLibrary {
|
376 | 377 | * @see <a href="https://msdn.microsoft.com/en-us/library/ms648069(VS.85).aspx">MSDN</a>
|
377 | 378 | */
|
378 | 379 | int ExtractIconEx(String lpszFile, int nIconIndex, HICON[] phiconLarge, HICON[] phiconSmall, int nIcons);
|
| 380 | + |
| 381 | + /** |
| 382 | + * Retrieves the application-defined, explicit Application User Model ID (AppUserModelID) for the current process. |
| 383 | + * |
| 384 | + * @param ppszAppID |
| 385 | + * A pointer that receives the address of the AppUserModelID assigned to the process. The caller is responsible for freeing this string with {@link Ole32#CoTaskMemFree} when it is no longer needed. |
| 386 | + * @return If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. |
| 387 | + * @see <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd378419(v=vs.85).aspx">MSDN</a> |
| 388 | + */ |
| 389 | + HRESULT GetCurrentProcessExplicitAppUserModelID(PointerByReference ppszAppID); |
| 390 | + |
| 391 | + /** |
| 392 | + * Specifies a unique application-defined Application User Model ID (AppUserModelID) that identifies the current process to the taskbar. This identifier allows an application to group its associated processes and windows under a single taskbar button. |
| 393 | + * |
| 394 | + * @param appID |
| 395 | + * The AppUserModelID to assign to the current process. |
| 396 | + * @return If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. |
| 397 | + * @see <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd378422(v=vs.85).aspx">MSDN</a> |
| 398 | + */ |
| 399 | + HRESULT SetCurrentProcessExplicitAppUserModelID(WString appID); |
| 400 | + |
379 | 401 | }
|
380 | 402 |
|
0 commit comments