Smart Device Functions:
Tips & Tricks:
The third argument (lpNewFilePointer) is of type LARGE_INTEGER, which has a size of 64 bits. For this reason use a UInt64 for this argument. (See sample below)
IntPtr ptr = new IntPtr(&n);
SetFilePointerEx(handle, 0, ptr, FILE_CURRENT);//ptr contains current location of file pointer. handle is a pointer to an open file handle.
Alternative Managed API:
Do you know one? Please contribute it!
LARGE_INTEGER - http://msdn.microsoft.com/en-us/library/aa383713(VS.85).aspx
The SetFilePointerEx API
9/18/2012 8:07:38 PM - firstname.lastname@example.org
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 11:00:13 AM - tsahi-126.96.36.199
Please edit this page!
Do you have...