?? setfilepointer.htm
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>SetFilePointer</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16"><a name="SetFilePointer">SetFilePointer</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="101%" colspan="3">VB聲明</td>
</tr>
<tr>
<td width="101%" colspan="3">Declare Function SetFilePointer Lib "kernel32"
Alias "SetFilePointer" (ByVal hFile As Long, ByVal lDistanceToMove As Long,
lpDistanceToMoveHigh As Long, ByVal dwMoveMethod As Long) As Long</td>
</tr>
<tr>
<td width="101%" colspan="3">說明</td>
</tr>
<tr>
<td width="101%" colspan="3">在一個(gè)文件中設(shè)置當(dāng)前的讀寫位置</td>
</tr>
<tr>
<td width="101%" colspan="3">返回值</td>
</tr>
<tr>
<td width="101%" colspan="3">Long,返回一個(gè)新位置,它采用從文件起始處開始算起的一個(gè)字節(jié)偏移量。HFILE_ERROR意味著出錯(cuò)。會(huì)設(shè)置<a
href="GetLastError.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="101%" colspan="3">參數(shù)表</td>
</tr>
<tr>
<td width="25%">參數(shù)</td>
<td width="76%" colspan="2">類型及說明</td>
</tr>
<tr>
<td width="25%">hFile</td>
<td width="76%" colspan="2">Long,系統(tǒng)文件句柄</td>
</tr>
<tr>
<td width="25%">lDistanceToMove</td>
<td width="76%" colspan="2">Long,字節(jié)偏移量</td>
</tr>
<tr>
<td width="25%">lpDistanceToMoveHigh</td>
<td width="76%" colspan="2">Long,指定一個(gè)長(zhǎng)整數(shù)變量,其中包含了要使用的一個(gè)高雙字偏移??稍O(shè)為零(將聲明變?yōu)锽yVal),表示只使用lDistanceToMove<br>
原文:A long variable containing a high double word offset to use. May be zero (change
declaration to ByVal) to use only lDistanceToMove.</td>
</tr>
<tr>
<td width="25%" rowspan="4">dwMoveMethod</td>
<td width="76%" colspan="2">Long,下述常數(shù)之一</td>
</tr>
<tr>
<td width="37%">FILE_BEGIN</td>
<td width="38%">lOffset將新位置設(shè)為從文件起始處開始算的起的一個(gè)偏移</td>
</tr>
<tr>
<td width="37%">FILE_CURRENT</td>
<td width="38%">lOffset將新位置設(shè)為從當(dāng)前位置開始計(jì)算的一個(gè)偏移</td>
</tr>
<tr>
<td width="37%">FILE_END</td>
<td width="38%">lOffset將新位置設(shè)為從文件尾開始計(jì)算的一個(gè)偏移</td>
</tr>
<tr>
<td width="101%" colspan="3">注解</td>
</tr>
<tr>
<td width="101%" colspan="3"><p align="left">這個(gè)函數(shù)與vb的seek語句類似。不要將函數(shù)用于通過vb的open命令打開的文件。利用這個(gè)函數(shù),可以處理那些長(zhǎng)度大于2^64字節(jié)的大型文件</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right"><a href="#SetFilePointer">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -