com.sun.jna.FromNativeContext Java Examples
The following examples show how to use
com.sun.jna.FromNativeContext.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WindowsNotifier.java From netbeans with Apache License 2.0 | 5 votes |
/** Override to the appropriate object for INVALID_HANDLE_VALUE. */ @Override public Object fromNative(Object nativeValue, FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (INVALID_HANDLE_VALUE.equals(o)) return INVALID_HANDLE_VALUE; return o; }
Example #2
Source File: Win32APISupport.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Object fromNative(Object nativeValue, FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (INVALID_HANDLE.equals(o)) { return INVALID_HANDLE; } return o; }
Example #3
Source File: W32API.java From AILibs with GNU Affero General Public License v3.0 | 5 votes |
@Override public Object fromNative(final Object nativeValue, final FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (W32API.invalidHandleValue.equals(o)) { return W32API.invalidHandleValue; } return o; }
Example #4
Source File: WinNT.java From jpexs-decompiler with GNU General Public License v3.0 | 5 votes |
/** * Override to the appropriate object for INVALID_HANDLE_VALUE. * * @param nativeValue nativeValue * @param context context * @return result */ @Override public Object fromNative(Object nativeValue, FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (WinBase.INVALID_HANDLE_VALUE.equals(o)) { return WinBase.INVALID_HANDLE_VALUE; } return o; }
Example #5
Source File: W32API.java From consulo with Apache License 2.0 | 5 votes |
/** Override to the appropriate object for INVALID_HANDLE_VALUE. */ public Object fromNative(Object nativeValue, FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (INVALID_HANDLE_VALUE.equals(o)) return INVALID_HANDLE_VALUE; return o; }
Example #6
Source File: W32API.java From carina with Apache License 2.0 | 5 votes |
@Override public Object fromNative(Object nativeValue, FromNativeContext context) { Object o = super.fromNative(nativeValue, context); if (INVALID_HANDLE_VALUE.equals(o)) return INVALID_HANDLE_VALUE; return o; }
Example #7
Source File: GnomeKeyringLibrary.java From netbeans with Apache License 2.0 | 4 votes |
@Override public Object fromNative(Object value, FromNativeContext context) { return ((Integer) value) != 0; }