Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
1` DF
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetFilePointer" in [All]

advapi32

1: Tyde
.

SetFilePointer

kernel32

.
Summary
.

    static extern unsafe uint SetFilePointer(

.

    static extern uint SetFilePointer(

.

    Shared Function SetFilePointer( _

.

    private static extern int SetFilePointer(IntPtr handle, int lDistanceToMove, out int lpDistanceToMoveHigh, uint dwMoveMethod);

.

    lo = SetFilePointer(handle, lo, out hi, moveMethod);

.
Documentation
[SetFilePointer] on MSDN
.
Summary
.

static extern bool SetFilePointerEx(IntPtr hFile, long liDistanceToMove,

.

public static extern bool SetFilePointerEx(

.

SetFilePointerEx(handle, 0, ptr, FILE_CURRENT);//ptr contains current location of file pointer. handle is a pointer to an open file handle.

.
Documentation
[SetFilePointerEx] on MSDN
.

If you are passing a System.Threading.NativeOverlapped struct in (for lpOverlapped) then there's no need to also call SetFilePointer or SetFilePointerEx. The offset in the OVERLAPPED structure trumps wherever the file position was previouly set to.

coredll

.

    SetFilePointer hFile, 0, 0, FILE_END


 
Access PInvoke.net directly from VS: