rv = SetFilePointer((HANDLE)fd->secret->md.osfd, offset, 0, whence);
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_LSEEK(PRFileDesc *fd, PRInt32 offset, int whence){    PRInt32 rv;    rv = SetFilePointer((HANDLE)fd->secret->md.osfd, offset, 0, 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;	} else		return rv;}