⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 openevent.htm

📁 vb的api函数
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>OpenEvent</title>
</head>

<body background="../../../images/gray_weave.gif" 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">OpenEvent</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="102%" colspan="3">VB声明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Declare Function OpenEvent Lib &quot;kernel32&quot; Alias 
    &quot;OpenEventA&quot; (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal 
    lpName As String) As Long</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">说明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">为一个现有的命名事件对象创建一个新句柄</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">返回值</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Long,如执行成功,返回对象的句柄;零表示失败。会设置<a
    href="GetLastError.htm">GetLastError</a></td>
  </tr>
  <tr>
    <td width="102%" colspan="3">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="77%" colspan="2">类型及说明</td>
  </tr>
  <tr>
    <td width="25%" rowspan="4">dwDesiredAccess</td>
    <td width="77%" colspan="2">Long,下述常数之一:</td>
  </tr>
  <tr>
    <td width="37%">EVENT_ALL_ACCESS</td>
    <td width="38%">要求对事件对象进行完全访问</td>
  </tr>
  <tr>
    <td width="37%">EVENT_MODIFY_STATE</td>
    <td width="38%">允许<a href="SetEvent.htm">SetEvent</a> 和 <a href="ResetEvent.htm">ResetEvent</a>函数</td>
  </tr>
  <tr>
    <td width="37%">SYNCHRONIZE</td>
    <td width="38%">允许事件对象的使用同步</td>
  </tr>
  <tr>
    <td width="25%">bInheritHandle</td>
    <td width="77%" colspan="2">Long,如希望子进程能够继承句柄,则为TRUE</td>
  </tr>
  <tr>
    <td width="25%">lpName</td>
    <td width="77%" colspan="2">String,指定要打开的对象的名字</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">注解</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">一旦不再需要,注意一定要用<a
    href="CloseHandle.htm">CloseHandle</a>关闭事件句柄。如对象的所有句柄都已关闭,那么对象也会删除</td>
  </tr>
</table>
</center></div>


</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -