| Constructor and Description |
|---|
Fileapi() |
| Modifier and Type | Method and Description |
|---|---|
static Winnt.HANDLE |
CreateFileW(File file,
int dwDesiredAccess,
int dwShareMode,
Minwinbase.SECURITY_ATTRIBUTES lpSecurityAttributes,
int dwCreationDisposition,
int dwFlagsAndAttributes,
Winnt.HANDLE hTemplateFile) |
static Winnt.HANDLE |
CreateFileW(String lpFileName,
int dwDesiredAccess,
int dwShareMode,
Minwinbase.SECURITY_ATTRIBUTES lpSecurityAttributes,
int dwCreationDisposition,
int dwFlagsAndAttributes,
Winnt.HANDLE hTemplateFile) |
static void |
FlushFileBuffers(Winnt.HANDLE hFile) |
static boolean |
HAVE_FILEAPI_H() |
static int |
OPEN_EXISTING() |
static void |
ReadFile(Winnt.HANDLE hFile,
byte[] lpBuffer,
int offset,
int len,
IntRef lpNumberOfBytesRead) |
static void |
ReadFile(Winnt.HANDLE hFile,
ByteBuffer lpBuffer) |
static void |
ReadFile(Winnt.HANDLE hFile,
ByteBuffer lpBuffer,
Minwinbase.OVERLAPPED lpOverlapped)
use @see Ioapiset.GetOverlappedResult(HANDLE, OVERLAPPED, ByteBuffer) to
get the result and fix the ByteBuffers position.
|
static void |
WriteFile(Winnt.HANDLE hFile,
byte[] lpBuffer,
int offset,
int len,
IntRef lpNumberOfBytesWritten) |
static void |
WriteFile(Winnt.HANDLE hFile,
ByteBuffer lpBuffer) |
static void |
WriteFile(Winnt.HANDLE hFile,
ByteBuffer lpBuffer,
Minwinbase.OVERLAPPED lpOverlapped)
use @see Ioapiset.GetOverlappedResult(HANDLE, OVERLAPPED, ByteBuffer) to
get the result and fix the ByteBuffers position.
|
public static final boolean HAVE_FILEAPI_H()
@Define public static final int OPEN_EXISTING()
public static final Winnt.HANDLE CreateFileW(String lpFileName, int dwDesiredAccess, int dwShareMode, Minwinbase.SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, Winnt.HANDLE hTemplateFile) throws NativeErrorException
NativeErrorExceptionpublic static final Winnt.HANDLE CreateFileW(File file, int dwDesiredAccess, int dwShareMode, Minwinbase.SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, Winnt.HANDLE hTemplateFile) throws NativeErrorException
NativeErrorExceptionpublic static final void FlushFileBuffers(Winnt.HANDLE hFile) throws NativeErrorException
NativeErrorExceptionpublic static final void ReadFile(Winnt.HANDLE hFile, byte[] lpBuffer, int offset, int len, IntRef lpNumberOfBytesRead) throws NativeErrorException
NativeErrorExceptionpublic static final void ReadFile(Winnt.HANDLE hFile, ByteBuffer lpBuffer) throws NativeErrorException
NativeErrorExceptionpublic static final void ReadFile(Winnt.HANDLE hFile, ByteBuffer lpBuffer, Minwinbase.OVERLAPPED lpOverlapped) throws NativeErrorException
hFile - lpBuffer - lpOverlapped - NativeErrorExceptionpublic static final void WriteFile(Winnt.HANDLE hFile, ByteBuffer lpBuffer) throws NativeErrorException
NativeErrorExceptionpublic static final void WriteFile(Winnt.HANDLE hFile, ByteBuffer lpBuffer, Minwinbase.OVERLAPPED lpOverlapped) throws NativeErrorException
hFile - lpBuffer - lpOverlapped - NativeErrorExceptionpublic static final void WriteFile(Winnt.HANDLE hFile, byte[] lpBuffer, int offset, int len, IntRef lpNumberOfBytesWritten) throws NativeErrorException
NativeErrorExceptionCopyright © 2019. All rights reserved.