-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A convenience jar that contains all the native dispatch libraries #523
Conversation
…va Calendar object
Added initialization and conversion between Windows SYSTEMTIME and Ja…
I ran into this using eclipse, and the solution there was to copy the newly-built native bits into eclipse’s space. Maybe you could just make an ant target to create the jar (“idea-jar”), since it’s something that’s easy to create on the fly and not something that we’d necessarily need to distribute. Whether or not it permanently winds up in “dist” it should have a rule to recreate it.
|
Added com.sun.jna.platform.win32.Mpr, com.sun.jna.platform.win32.LmShare, and com.sun.jna.platform.win32.Winnetwk Added ACCESS_* definitions to com.sun.jna.platform.win32.LmAccess Added NetShareAdd and NetShareDel to com.sun.jna.platform.win32.Netapi32
Added new library Mpr and functions to Netapi32
* Advapi32 * Added LOGON_WITH_PROFILE constant * Added LOGON_NETCREDENTIALS_ONLY constant * Added CreateProcessWithLogonW(String, String, String, int, String, String, int, Pointer, String, STARTUPINFO, PROCESS_INFORMATION) * No Unit Test - I would have to make it create a user to be 100% able to run a process as another user and that would be a security issue I figure. * Crypt32 * Added CertAddEncodedCertificateToSystemStore(String, Pointer, DWORD) * No Unit Test - I doubt anyone would want the security risk of a unit test installing a root certificate. * GDI32 * Added SRCCOPY constant * Added BitBlt(HDC, int, int, int, int, HDC, int, int, int) * No direct unit test - the test for GDI32Util.getScreenshot() seemed to cover it just fine. * Added GDI32Util.getScreenshot(HWND) * Added unit test as GDI32UtilTest.testGetScreenshot() * Shell32 * Added SHERB_NOCONFIRMATION constant * Added SHERB_NOPROGRESSUI constant * Added SHERB_NOSOUND constant * Added SEE_MASK_NOCLOSEPROCESS constant * Added SHEmptyRecycleBin(HANDLE, String, int) * No unit test - no idea how to tell if the recycle bin is empty afterwards * Added ShellExecuteEx(SHELLEXECUTEINFO) * No unit test - there are a bunch of cases where the hProcess member in SHELLEXECUTEINFO isn't set - not sure how to control for that * ShellAPI * Added SHELLEXECUTEINFO structure * User32 * Added GetDesktopWindow() * Added test as User32Test.testGetDesktopWindow() * WinGDI * Added HGDI_ERROR * Removed superfluous "public" and "public final" from WinGDI
Prefer String over WString Fix some w32 API callback types to be stdcall Fix platform test execution from top level 'test-platform' target
…api-cleanup Clean up w32 platform-specific tests
…api-cleanup Avoid overwriting test results from different platforms
…/Load/LockResource, etc) Updated changelog.
…ditional-1 Kernel32.ProcessIdToSessionId and resource extraction functions
Add GetSystemTimes() to Kernel32
…ditional-2 Added EnumResourceTypes and EnumResourceNames to Kernel32
Return 64-bit unsigned integer from FILETIME
…nterface et al don't crash the whole JVM
Motivation: We did miss to cleanup some coode when refactoring. Modifications: - Remove unused static method - Remove not needed constructor Result: Cleanup
Trying to make JNA work in Idea is somewhat tedious, as the dispatch dlls are not found. The jars under lib/native don't have the proper directory structure inside them, so including them in the class path will not fix loading the dispatch library.
This jar could probably be generated automatically, but I don't have sufficient understanding of the build machinery.