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

📄 process.htm

📁 一个国人自己实现图像库的程序(有参考价值)
💻 HTM
字号:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<title>进程/线程相关操作</title>
</head>

<body bgcolor="#ffffe7" lang=ZH-CN style='tab-interval:21.0pt'>
<h2 align="center"><b><font color="#FF0000">进程/线程相关操作</font></b></h2><table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF"> 
<tr> <td width="50%"> <div align="center"><font color="#FF6600"><b>类(Classes)</b></font><font color="#FF0000"><b></b></font></div></td><td width="50%"> 
<div align="center"><font color="#FF0000"><b><font color="#FF6600">函数(Functions)</font></b></font><font color="#FF6600"></font></div></td></tr> 
</table><h2><font color="#FF0000"><b>类(Classes):</b></font></h2><table width="85%" border="0" bordercolor="0" align="center" cellpadding="0" bgcolor="#CCFFFF"> 
<tr> <td width="30%"> <div align="left"><i><font color="#FF0000"> <font color="#0000FF"><a href="FCToolHelp.htm"><b>FCToolHelp</b></a></font></font></i></div></td><td width="70%"> 
<p>监视系统当前的进线程。</p></td></tr> </table><h2><font color="#FF0000"><b>函数(Functions):</b></font></h2><table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#D0FFE0"> 
<tr> <td rowspan="2">文件位置:</td><td width="85%"><font color="#FF0000">\FLib\Include\C_Process.h</font></td></tr> 
<tr> <td width="85%" height="19"><font color="#FF0000">\FLib\Source\Process.cpp</font></td></tr> 
<tr> <td>使用方法:</td><td width="85%" height="19"><font color="#FF0000">#include &quot;fool.h&quot;</font></td></tr> 
</table><br> <table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF"> 
<tr> <td width="50%"><font color="#FF0000">bool fooIsWindows9x ()</font></td><td>判断是否运行在Win 
9x系统下。</td></tr> <tr> <td width="50%"><font color="#FF0000"> BOOL fooCreateProcess 
(PCTSTR szFileName,<br>      int nCmdShow = SW_SHOWNORMAL,<br>      DWORD dwPriority 
= NORMAL_PRIORITY_CLASS)</font></td><td>创建进程。<br> nCmdShow :见::ShowWindow<br> 
dwPriority :见::SetPriorityClass </td></tr> <tr> <td width="50%"><font color="#FF0000"> 
HANDLE fooCreateThread (void * pStartAddress,<br>              void * pParameter 
= NULL,<br>     DWORD dwPriority = THREAD_PRIORITY_NORMAL)</font></td><td>创建线程。<br> 
dwPriority :见::SetThreadPriority<br> 调用::CloseHandle可以立即结束线程。<br> </td></tr> <tr> 
<td width="50%"><font color="#FF0000"> BOOL fooInjectDLL_W (DWORD dwProcessId,<br> 
           PC<font color="#0000FF">W</font>STR szDllFile)</font></td><td>注入DLL到其他进程。<br> 
<font color="#FF0000">必须用_L()将szDllFile变为UNICODE字符串。</font></td></tr> <tr> <td width="50%"><font color="#FF0000"> 
HANDLE fooGetRealProcessHandle ()</font></td><td>得到当前进程的真实句柄。<br> ::GetCurrentProcess() 
获得的是伪句柄,它总是返回0x7FFFFFFF 。</td></tr> <tr> <td width="50%"><font color="#FF0000"> 
void fooRebootSys ()</font></td><td rowspan="3"> 重启动/关闭/登录系统。</td></tr> <tr> <td width="50%"><font color="#FF0000">void fooShutDownSys 
()</font></td></tr> <tr> <td width="50%"><font color="#FF0000">void fooLogoSys 
()</font></td></tr> <tr> <td width="50%"><font color="#FF0000"> BOOL fooEnablePrivilege 
(PCTSTR pPrivilegeName)<br> </font></td><td>获取pPrivilegeName权限。(win2000)<br> pPrivilegeName在WINNT.h中定义 
:SE_******</td></tr> <tr> <td width="50%"><font color="#FF0000"> BOOL fooEnableDebugPrivilege 
()</font></td><td>获取Debug权限来(调用OpenProcess)打开进程。(win2000)</td></tr><tr><TD WIDTH="50%"><FONT COLOR="#FF0000"> 
void fooEnableTaskDlg (BOOL bEnable)</FONT></TD><td>bEnable=FALSE 则禁止任务管理器。</td></tr> 
</table><br> <br> <h2 align="center"><img src="stripe.gif" width="94%" height="2"><br> 
</h2><table align=center bgcolor=ghostwhite border=0 cellpadding=0 cellspacing=0 
width=650> <tbody> <tr> <td width="85%"> <p align=center>版权所有 <br> (C)1999 - 2002 
付黎<br> <a href="mailto:crazybit@263.net">给我发信</a>   <a 
      href="javascript:window.close()">关闭窗口</a> </p></td></tr> </tbody> </table><h2>&nbsp;</h2>
</body>

</html>

⌨️ 快捷键说明

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