?? loadlibraryex.htm
字號:
<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>LoadLibraryEx</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">LoadLibraryEx</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF" height="197">
<tr>
<td width="100%" colspan="2" height="14">VB聲明</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">Declare Function LoadLibraryEx Lib
"kernel32" Alias "LoadLibraryExA" (ByVal lpLibFileName As String,
ByVal hFile As Long, ByVal dwFlags As Long) As Long<br>
</td>
</tr>
<tr>
<td width="100%" colspan="2" height="13">說明</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">裝載指定的動態鏈接庫,并為當前進程把它映射到地址空間。一旦載入,就可以訪問庫內保存的資源</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">Long,成功則返回庫模塊的句柄,零表示失敗。會設置<a
href="GetLastError.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">參數表</td>
</tr>
<tr>
<td width="25%" height="14">參數</td>
<td width="75%" height="14">類型及說明</td>
</tr>
<tr>
<td width="25%" height="7">lpLibFileName</td>
<td width="75%" height="7">String,指定要載入的動態鏈接庫的名稱。采用與<a
href="CreatProcess.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/CreatProcess.htm">CreateProcess</a>函數的lpCommandLine參數指定的同樣的搜索順序</td>
</tr>
<tr>
<td width="25%" height="7">hFile</td>
<td width="75%" height="7">Long,未用,設為零</td>
</tr>
<tr>
<td width="25%" height="7" rowspan="4">dwFlags</td>
<td width="75%" height="3">Long,指定下述常數的一個或多個</td>
</tr>
<tr>
<td width="75%" height="1">DONT_RESOLVE_DLL_REFERENCES:不對DLL進行初始化,僅用于NT</td>
</tr>
<tr>
<td width="75%" height="1">LOAD_LIBRARY_AS_DATAFILE:不準備DLL執行。如裝載一個DLL只是為了訪問它的資源,就可以改善一部分性能</td>
</tr>
<tr>
<td width="75%" height="2">LOAD_WITH_ALTERED_SEARCH_PATH:指定搜索的路徑</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14">注解</td>
</tr>
<tr>
<td width="100%" colspan="2" height="14"><p align="left">一旦不需要,用<a
href="FreeLibray.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/FreeLibray.htm">FreeLibrary</a>函數釋放DLL</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">Top</td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -