?? createmailslot.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>CreateMailslot</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16">CreateMailslot</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="100%" colspan="2">Declare Function CreateMailslot Lib "kernel32"
Alias "CreateMailslotA" (ByVal lpName As String, ByVal nMaxMessageSize As Long,
ByVal lReadTimeout As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long</td>
</tr>
<tr>
<td width="100%" colspan="2">說明</td>
</tr>
<tr>
<td width="100%" colspan="2">創建一個郵路。返回的句柄由郵路服務器使用(收件人)</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Long,如執行成功,返回郵路的句柄;INVALID_HANDLE_VALUE表示失敗。會設置<a
href="GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="100%" colspan="2">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="75%">類型及說明</td>
</tr>
<tr>
<td width="25%">lpName</td>
<td width="75%">String,指定郵路的名字,采用的形式如下:\\.\郵路\[路徑\]郵路名</td>
</tr>
<tr>
<td width="25%">nMaxMessageSize</td>
<td width="75%">Long,指定一個郵路消息的最大長度。零表示無限長。請注意,對于穿越一個網絡域到多個郵路的廣播消息,最大長度是400</td>
</tr>
<tr>
<td width="25%">lReadTimeout</td>
<td width="75%">Long,等待指定的數據時,用這個參數指定郵路使用的默認超時設置,以毫秒為單位。零表示不等待。常數MAILSLOT_WAIT_FOREVER表示一直等到數據到達</td>
</tr>
<tr>
<td width="25%">lpSecurityAttributes</td>
<td width="75%">SECURITY_ATTRIBUTES,指定一個結構,或傳遞零值(將參數聲明為ByVal
As Long,并傳遞零值),表示使用不允許繼承的默認描述符</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 + -