rv = SetFilePointer((HANDLE)fd->secret->md.osfd, low, &hi, whence);   if (-1 == rv) { _PR_MD_MAP_LSEEK_ERROR(GetLastError()); return -1;
switch (whence) { case PR_SEEK_SET: moveMethod = FILE_BEGIN; break; case PR_SEEK_CUR: moveMethod = FILE_CURRENT; break; case PR_SEEK_END: moveMethod = FILE_END; break; default: PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); return -1;
_PR_MD_LSEEK64(PRFileDesc *fd, PRInt64 offset, int whence){    PRInt64 result;    PRInt32 rv, low = (PRInt32)offset, hi = (PRInt32)(offset >> 32);    rv = SetFilePointer((HANDLE)fd->secret->md.osfd, low, &hi, whence);	/*	 * If the lpDistanceToMoveHigh argument (third argument) is	 * NULL, SetFilePointer returns 0xffffffff on failure.	 */	if (-1 == rv)    {		_PR_MD_MAP_LSEEK_ERROR(GetLastError());        return -1;    }    result = (hi << 32) + rv;	return result;}