¡@

Home 

java Programming Glossary: setcurrentprocessexplicitappusermodelid

Pinning a Java application to the Windows 7 taskbar

http://stackoverflow.com/questions/1834599/pinning-a-java-application-to-the-windows-7-taskbar

to Windows. There is a shell32 method for this SetCurrentProcessExplicitAppUserModelID . Following Gregory Pakosz suggestion I implemented it in an.. Object args Vendor.MyJavaApplication String functionName SetCurrentProcessExplicitAppUserModelID try Function function lib.getFunction functionName int ret function.invokeInt.. id L com.stackoverflow.homework.MyApplication HRESULT hr SetCurrentProcessExplicitAppUserModelID id return hr S_OK Your question explicitly asked for a JNI solution...

Using JNA to get/set application identifier

http://stackoverflow.com/questions/1907735/using-jna-to-get-set-application-identifier

System.out.println 1 function.getString 0 functionName SetCurrentProcessExplicitAppUserModelID function lib.getFunction functionName Set the new AppId int.. . So I suggest you take only the implementation for SetCurrentProcessExplicitAppUserModelID package com.stackoverflow.AppIdTest import com.sun.jna.Native.. final String appID if SetCurrentProcessExplicitAppUserModelID new WString appID .longValue 0 throw new RuntimeException unable..