Kernel32BackupSeek Method
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool BackupSeek(
SafeFileHandle hFile,
uint lowBytesToSeek,
uint highBytesToSeek,
ref uint refLowByteSeeked,
ref uint refHighByteSeeked,
ref IntPtr refContext
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function BackupSeek (
hFile As SafeFileHandle,
lowBytesToSeek As UInteger,
highBytesToSeek As UInteger,
ByRef refLowByteSeeked As UInteger,
ByRef refHighByteSeeked As UInteger,
ByRef refContext As IntPtr
) As Boolean
Dim hFile As SafeFileHandle
Dim lowBytesToSeek As UInteger
Dim highBytesToSeek As UInteger
Dim refLowByteSeeked As UInteger
Dim refHighByteSeeked As UInteger
Dim refContext As IntPtr
Dim returnValue As Boolean
returnValue = Kernel32.BackupSeek(hFile,
lowBytesToSeek, highBytesToSeek,
refLowByteSeeked, refHighByteSeeked,
refContext)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool BackupSeek(
SafeFileHandle^ hFile,
unsigned int lowBytesToSeek,
unsigned int highBytesToSeek,
unsigned int% refLowByteSeeked,
unsigned int% refHighByteSeeked,
IntPtr% refContext
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member BackupSeek :
hFile : SafeFileHandle *
lowBytesToSeek : uint32 *
highBytesToSeek : uint32 *
refLowByteSeeked : uint32 byref *
refHighByteSeeked : uint32 byref *
refContext : IntPtr byref -> bool
No code example is currently available or this language may not be supported.
- hFile SafeFileHandle
-
Handle to the file or directory.
This handle is created by using the CreateFile(String, FileAccessRights, FileShare, IntPtr, FileMode, CreateFileFlags, IntPtr) function.
The handle must be synchronous (nonoverlapped).
This means that the Overlapped flag
must not be set when CreateFile(String, FileAccessRights, FileShare, IntPtr, FileMode, CreateFileFlags, IntPtr) is called.
This function does not validate that the handle it receives is synchronous,
so it does not return an error code for a synchronous handle,
but calling it with an asynchronous (overlapped) handle can result in
subtle errors that are very difficult to debug.
- lowBytesToSeek UInt32
-
Low-order part of the number of bytes to seek.
- highBytesToSeek UInt32
-
High-order part of the number of bytes to seek.
- refLowByteSeeked UInt32
-
Receives the low-order bits of the number of bytes the function actually seeks.
- refHighByteSeeked UInt32
-
Receives the high-order bits of the number of bytes the function actually seeks.
- refContext IntPtr
-
Pointer to an internal data structure used by the function.
This structure must be the same structure that was initialized by the
BackupRead(SafeFileHandle, IntPtr, UInt32, UInt32, Boolean, Boolean, IntPtr) or BackupWrite function.
An application must not touch the contents of this structure.
Boolean
If the function could seek the requested amount, the return value is
.
If the function could not seek the requested amount, the return value is
.
To get extended error information, call
GetLastWin32Error.