下面列出了怎么用com.sun.jna.ptr.ByteByReference的API类实例代码及写法,或者点击链接到github查看源代码。
public void NSFItemQueryEx(
long note_handle,
NotesBlockIdStruct.ByValue item_bid,
Memory item_name,
short return_buf_len,
ShortByReference name_len_ptr,
ShortByReference item_flags_ptr,
ShortByReference value_datatype_ptr,
NotesBlockIdStruct value_bid_ptr,
IntByReference value_len_ptr,
ByteByReference retSeqByte,
ByteByReference retDupItemID);
public native void NSFItemQueryEx(
int note_handle,
NotesBlockIdStruct.ByValue item_bid,
Memory item_name,
short return_buf_len,
ShortByReference name_len_ptr,
ShortByReference item_flags_ptr,
ShortByReference value_datatype_ptr,
NotesBlockIdStruct value_bid_ptr,
IntByReference value_len_ptr,
ByteByReference retSeqByte,
ByteByReference retDupItemID);
public void NSFItemQueryEx(
int note_handle,
NotesBlockIdStruct.ByValue item_bid,
Memory item_name,
short return_buf_len,
ShortByReference name_len_ptr,
ShortByReference item_flags_ptr,
ShortByReference value_datatype_ptr,
NotesBlockIdStruct value_bid_ptr,
IntByReference value_len_ptr,
ByteByReference retSeqByte,
ByteByReference retDupItemID);
public native void NSFItemQueryEx(
long note_handle,
NotesBlockIdStruct.ByValue item_bid,
Memory item_name,
short return_buf_len,
ShortByReference name_len_ptr,
ShortByReference item_flags_ptr,
ShortByReference value_datatype_ptr,
NotesBlockIdStruct value_bid_ptr,
IntByReference value_len_ptr,
ByteByReference retSeqByte,
ByteByReference retDupItemID);
/**
* The GetLayeredWindowAttributes function retrieves the opacity and
* transparency color key of a layered window.
*
* @param hwnd Handle to the layered window. A layered window is created by
* specifying WS_EX_LAYERED when creating the window with the CreateWindowEx
* function or by setting WS_EX_LAYERED via SetWindowLong after the window
* has been created.
* @param pcrKey Pointer to a COLORREF value that receives the transparency
* color key to be used when composing the layered window. All pixels
* painted by the window in this color will be transparent. This can be NULL
* if the argument is not needed.
* @param pbAlpha Pointer to a BYTE that receives the Alpha value used to
* describe the opacity of the layered window. Similar to the
* SourceConstantAlpha member of the BLENDFUNCTION structure. When the
* variable referred to by pbAlpha is 0, the window is completely
* transparent. When the variable referred to by pbAlpha is 255, the window
* is opaque. This can be NULL if the argument is not needed.
* @param pdwFlags Pointer to a DWORD that receives a layering flag. This
* can be NULL if the argument is not needed.
* @return If the function succeeds, the return value is nonzero. If the
* function fails, the return value is zero. To get extended error
* information, call GetLastError.
*/
boolean GetLayeredWindowAttributes(HWND hwnd, IntByReference pcrKey,
ByteByReference pbAlpha, IntByReference pdwFlags);
public boolean NSFNoteIsSignedOrSealed(long note_handle, ByteByReference signed_flag_ptr, ByteByReference sealed_flag_ptr);
public native boolean NSFNoteIsSignedOrSealed(int note_handle, ByteByReference signed_flag_ptr, ByteByReference sealed_flag_ptr);
public boolean NSFNoteIsSignedOrSealed(int note_handle, ByteByReference signed_flag_ptr, ByteByReference sealed_flag_ptr);
public native boolean NSFNoteIsSignedOrSealed(long note_handle, ByteByReference signed_flag_ptr, ByteByReference sealed_flag_ptr);