SetFilePointer (kernel32)
Last changed: timur.kelman+pinvoke@gmail.com-79.193.218.180

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern uint SetFilePointer(IntPtr hFile, int lDistanceToMove,
   IntPtr lpDistanceToMoveHigh, uint dwMoveMethod);

User-Defined Types:

None.

Notes:

If you are using this function to access hard-disk sectors greater than (2^32 - 2) bytes,

then the third argument will not be null or IntPtr.Zero. So when you pass an IntPtr to

the third argument, pass it as a reference. To do this, just change the third argument signature

to: ref IntPtr lpDistanceToMoveHigh.

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation