?? llseek.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>llseek</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="llseek">llseek</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolordark="#FFFFFF" cellspacing="0"
bordercolorlight="#808080">
<tr>
<td width="101%" colspan="3">VB聲明</td>
</tr>
<tr>
<td width="101%" colspan="3">Declare Function llseek Lib "kernel32" Alias
"_llseek" (ByVal hFile As Long, ByVal lOffset As Long, ByVal iOrigin As Long) As
Long</td>
</tr>
<tr>
<td width="101%" colspan="3">說(shuō)明</td>
</tr>
<tr>
<td width="101%" colspan="3">設(shè)置文件中進(jìn)行讀寫(xiě)的當(dāng)前位置。該函數(shù)與vb的seek語(yǔ)句類似。如果用vb的open命令打開(kāi)了一個(gè)文件,那么不要再對(duì)這個(gè)文件使用<a
name="llseek">llseek</a>函數(shù)</td>
</tr>
<tr>
<td width="101%" colspan="3">返回值</td>
</tr>
<tr>
<td width="101%" colspan="3">Long,返回一個(gè)新位置,設(shè)置成從文件起始處算起的一個(gè)偏移量。HFILE_ERROR表示函數(shù)執(zhí)行出錯(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">類型及說(shuō)明</td>
</tr>
<tr>
<td width="25%">hFile</td>
<td width="76%" colspan="2">Long,系統(tǒng)文件句柄</td>
</tr>
<tr>
<td width="25%">lOffset</td>
<td width="76%" colspan="2">Long,字節(jié)偏移量</td>
</tr>
<tr>
<td width="25%" rowspan="4">iOrigin</td>
<td width="76%" colspan="2">Long,下述常數(shù)之一</td>
</tr>
<tr>
<td width="37%">FILE_BEGIN</td>
<td width="38%">lOffset將新位置指定成從文件起始處的一個(gè)偏移距離</td>
</tr>
<tr>
<td width="37%">FILE_CURRENT</td>
<td width="38%">lOffset將新位置指定成從當(dāng)前位置開(kāi)始的一個(gè)偏移距離</td>
</tr>
<tr>
<td width="37%">FILE_END</td>
<td width="38%">lOffset將新位置指定成從文件結(jié)尾開(kāi)始的的一個(gè)偏移距離</td>
</tr>
<tr>
<td width="101%" colspan="3">注解</td>
</tr>
<tr>
<td width="101%" colspan="3"><p align="left">參考<a href="SetFilePointer.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/SetFilePointer.htm">SetFilePointer</a>函數(shù),認(rèn)識(shí)能對(duì)較大文件進(jìn)行處理的一個(gè)近似函數(shù).</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="#llseek">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -