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

📄 setwaitabletimer.htm

📁 Visual Basic API help
💻 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>SetWaitableTimer</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">SetWaitableTimer</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 SetWaitableTimer Lib &quot;kernel32&quot; 
    (ByVal hTimer As Long, lpDueTime As FILETIME, ByVal lPeriod As Long, ByVal 
    pfnCompletionRoutine As Long, ByVal lpArgToCompletionRoutine As Long, ByVal fResume As 
    Long) 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,非零表示成功,零表示失败。会设置<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%">hTimer</td>
    <td width="75%">Long,指定一个可等待计时器的句柄</td>
  </tr>
  <tr>
    <td width="25%">lpDueTime</td>
    <td width="75%"><a href="FILETIME.htm">FILETIME</a>,指定一个包含了64位时间值的结构。如果为正,它代表计时器要触发的时间。如果为负,它代表自函数调用以来持续的时间。时间是以100ns为单位指定的</td>
  </tr>
  <tr>
    <td width="25%">lPeriod</td>
    <td width="75%">Long,如果为零,这个计时器只会触发一次。否则,计时器会根据这里设置的持续时间自动重新启动(以毫秒为单位指定)</td>
  </tr>
  <tr>
    <td width="25%">pfnCompletionRoutine</td>
    <td width="75%">Long,指定零或者计时器触发时要调用的一个函数的地址。可在标准模块中用一个函数通过AddressOf操作符提供这个地址。或者使用此类ocx控件。最终的例程采取下述形式:<br>
    Sub myfunc(ByVal lpArgToCompletion&amp;, ByVal dwTimerLow&amp;, ByVal dwTimerHigh&amp;)</td>
  </tr>
  <tr>
    <td width="25%">lpArgToCompletionRoutine</td>
    <td width="75%">Long,传递给最终例程的值</td>
  </tr>
  <tr>
    <td width="25%">fResume</td>
    <td width="75%">Long,如果为TRUE,而且系统支持电源管理,那么在计时器触发的时候,系统会退出省电模式。如设为TRUE,但系统不支持省电模式,<a     href="GetLastError.htm">GetLastError</a>就会返回ERROR_NOT_SUPPORTED</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">适用平台</td>
  </tr>
  <tr>
    <td width="100%" colspan="2"><p align="left">Windows NT</td>
  </tr>
</table>
</center></div>


</body>
</html>

⌨️ 快捷键说明

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