Package jtermios.windows
Class WinAPI.Windows_kernel32_lib_Direct
- java.lang.Object
-
- jtermios.windows.WinAPI.Windows_kernel32_lib_Direct
-
- All Implemented Interfaces:
com.sun.jna.AltCallingConvention,com.sun.jna.Library,com.sun.jna.win32.StdCall,com.sun.jna.win32.StdCallLibrary,WinAPI.Windows_kernel32_lib
- Enclosing class:
- WinAPI
public static class WinAPI.Windows_kernel32_lib_Direct extends Object implements WinAPI.Windows_kernel32_lib
-
-
Constructor Summary
Constructors Constructor Description Windows_kernel32_lib_Direct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanCancelIo(WinAPI.HANDLE hFile)booleanClearCommBreak(WinAPI.HANDLE hFile)booleanClearCommError(WinAPI.HANDLE hFile, int[] n, WinAPI.COMSTAT s)booleanCloseHandle(WinAPI.HANDLE hFile)WinAPI.HANDLECreateEvent(WinAPI.SECURITY_ATTRIBUTES lpEventAttributes, boolean bManualReset, boolean bInitialState, String lpName)WinAPI.HANDLECreateFile(String name, int access, int mode, WinAPI.SECURITY_ATTRIBUTES security, int create, int atteribs, com.sun.jna.Pointer template)booleanEscapeCommFunction(WinAPI.HANDLE hFile, int func)booleanFlushFileBuffers(WinAPI.HANDLE hFile)intFormatMessageW(int flags, com.sun.jna.Pointer src, int msgId, int langId, com.sun.jna.Pointer dst, int sze, com.sun.jna.Pointer va_list)booleanGetCommMask(WinAPI.HANDLE hFile, int[] dwEvtMask)booleanGetCommModemStatus(WinAPI.HANDLE hFile, int[] stat)booleanGetCommState(WinAPI.HANDLE hFile, WinAPI.DCB dcb)booleanGetOverlappedResult(WinAPI.HANDLE hFile, com.sun.jna.Pointer lpOverlapped, int[] lpNumberOfBytesTransferred, boolean bWait)booleanPurgeComm(WinAPI.HANDLE hFile, int qmask)intQueryDosDevice(String name, byte[] buffer, int bsize)booleanReadFile(WinAPI.HANDLE hFile, byte[] buf, int rdn, int[] nrd, com.sun.jna.Pointer lpOverlapped)booleanReadFile(WinAPI.HANDLE hFile, com.sun.jna.Pointer lpBuffer, int rdn, int[] nrd, com.sun.jna.Pointer lpOverlapped)booleanResetEvent(WinAPI.HANDLE hEvent)booleanSetCommBreak(WinAPI.HANDLE hFile)booleanSetCommMask(WinAPI.HANDLE hFile, int dwEvtMask)booleanSetCommState(WinAPI.HANDLE hFile, WinAPI.DCB dcb)booleanSetCommTimeouts(WinAPI.HANDLE hFile, WinAPI.COMMTIMEOUTS tout)booleanSetEvent(WinAPI.HANDLE hEvent)booleanSetupComm(WinAPI.HANDLE hFile, int dwInQueue, int dwOutQueue)booleanWaitCommEvent(WinAPI.HANDLE hFile, com.sun.jna.ptr.IntByReference lpEvtMask, com.sun.jna.Pointer lpOverlapped)intWaitForSingleObject(WinAPI.HANDLE hHandle, int dwMilliseconds)booleanWriteFile(WinAPI.HANDLE hFile, byte[] buf, int wrn, int[] nwrtn, com.sun.jna.Pointer lpOverlapped)booleanWriteFile(WinAPI.HANDLE hFile, com.sun.jna.Pointer buf, int wrn, int[] nwrtn, com.sun.jna.Pointer lpOverlapped)
-
-
-
Method Detail
-
CreateFile
public WinAPI.HANDLE CreateFile(String name, int access, int mode, WinAPI.SECURITY_ATTRIBUTES security, int create, int atteribs, com.sun.jna.Pointer template) throws com.sun.jna.LastErrorException
- Specified by:
CreateFilein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
WriteFile
public boolean WriteFile(WinAPI.HANDLE hFile, byte[] buf, int wrn, int[] nwrtn, com.sun.jna.Pointer lpOverlapped) throws com.sun.jna.LastErrorException
- Specified by:
WriteFilein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
WriteFile
public boolean WriteFile(WinAPI.HANDLE hFile, com.sun.jna.Pointer buf, int wrn, int[] nwrtn, com.sun.jna.Pointer lpOverlapped) throws com.sun.jna.LastErrorException
- Specified by:
WriteFilein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
ReadFile
public boolean ReadFile(WinAPI.HANDLE hFile, byte[] buf, int rdn, int[] nrd, com.sun.jna.Pointer lpOverlapped) throws com.sun.jna.LastErrorException
- Specified by:
ReadFilein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
ReadFile
public boolean ReadFile(WinAPI.HANDLE hFile, com.sun.jna.Pointer lpBuffer, int rdn, int[] nrd, com.sun.jna.Pointer lpOverlapped) throws com.sun.jna.LastErrorException
- Specified by:
ReadFilein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
FlushFileBuffers
public boolean FlushFileBuffers(WinAPI.HANDLE hFile) throws com.sun.jna.LastErrorException
- Specified by:
FlushFileBuffersin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
PurgeComm
public boolean PurgeComm(WinAPI.HANDLE hFile, int qmask) throws com.sun.jna.LastErrorException
- Specified by:
PurgeCommin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
CancelIo
public boolean CancelIo(WinAPI.HANDLE hFile) throws com.sun.jna.LastErrorException
- Specified by:
CancelIoin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
CloseHandle
public boolean CloseHandle(WinAPI.HANDLE hFile) throws com.sun.jna.LastErrorException
- Specified by:
CloseHandlein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
ClearCommError
public boolean ClearCommError(WinAPI.HANDLE hFile, int[] n, WinAPI.COMSTAT s) throws com.sun.jna.LastErrorException
- Specified by:
ClearCommErrorin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetCommMask
public boolean SetCommMask(WinAPI.HANDLE hFile, int dwEvtMask) throws com.sun.jna.LastErrorException
- Specified by:
SetCommMaskin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
GetCommMask
public boolean GetCommMask(WinAPI.HANDLE hFile, int[] dwEvtMask) throws com.sun.jna.LastErrorException
- Specified by:
GetCommMaskin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
GetCommState
public boolean GetCommState(WinAPI.HANDLE hFile, WinAPI.DCB dcb) throws com.sun.jna.LastErrorException
- Specified by:
GetCommStatein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetCommState
public boolean SetCommState(WinAPI.HANDLE hFile, WinAPI.DCB dcb) throws com.sun.jna.LastErrorException
- Specified by:
SetCommStatein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetCommTimeouts
public boolean SetCommTimeouts(WinAPI.HANDLE hFile, WinAPI.COMMTIMEOUTS tout) throws com.sun.jna.LastErrorException
- Specified by:
SetCommTimeoutsin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetupComm
public boolean SetupComm(WinAPI.HANDLE hFile, int dwInQueue, int dwOutQueue) throws com.sun.jna.LastErrorException
- Specified by:
SetupCommin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetCommBreak
public boolean SetCommBreak(WinAPI.HANDLE hFile) throws com.sun.jna.LastErrorException
- Specified by:
SetCommBreakin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
ClearCommBreak
public boolean ClearCommBreak(WinAPI.HANDLE hFile) throws com.sun.jna.LastErrorException
- Specified by:
ClearCommBreakin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
GetCommModemStatus
public boolean GetCommModemStatus(WinAPI.HANDLE hFile, int[] stat) throws com.sun.jna.LastErrorException
- Specified by:
GetCommModemStatusin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
EscapeCommFunction
public boolean EscapeCommFunction(WinAPI.HANDLE hFile, int func) throws com.sun.jna.LastErrorException
- Specified by:
EscapeCommFunctionin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
CreateEvent
public WinAPI.HANDLE CreateEvent(WinAPI.SECURITY_ATTRIBUTES lpEventAttributes, boolean bManualReset, boolean bInitialState, String lpName) throws com.sun.jna.LastErrorException
- Specified by:
CreateEventin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
ResetEvent
public boolean ResetEvent(WinAPI.HANDLE hEvent) throws com.sun.jna.LastErrorException
- Specified by:
ResetEventin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
SetEvent
public boolean SetEvent(WinAPI.HANDLE hEvent) throws com.sun.jna.LastErrorException
- Specified by:
SetEventin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
WaitCommEvent
public boolean WaitCommEvent(WinAPI.HANDLE hFile, com.sun.jna.ptr.IntByReference lpEvtMask, com.sun.jna.Pointer lpOverlapped) throws com.sun.jna.LastErrorException
- Specified by:
WaitCommEventin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
WaitForSingleObject
public int WaitForSingleObject(WinAPI.HANDLE hHandle, int dwMilliseconds)
- Specified by:
WaitForSingleObjectin interfaceWinAPI.Windows_kernel32_lib
-
GetOverlappedResult
public boolean GetOverlappedResult(WinAPI.HANDLE hFile, com.sun.jna.Pointer lpOverlapped, int[] lpNumberOfBytesTransferred, boolean bWait) throws com.sun.jna.LastErrorException
- Specified by:
GetOverlappedResultin interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
FormatMessageW
public int FormatMessageW(int flags, com.sun.jna.Pointer src, int msgId, int langId, com.sun.jna.Pointer dst, int sze, com.sun.jna.Pointer va_list)- Specified by:
FormatMessageWin interfaceWinAPI.Windows_kernel32_lib
-
QueryDosDevice
public int QueryDosDevice(String name, byte[] buffer, int bsize) throws com.sun.jna.LastErrorException
- Specified by:
QueryDosDevicein interfaceWinAPI.Windows_kernel32_lib- Throws:
com.sun.jna.LastErrorException
-
-