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

📄 subject_42320.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:42320 发表者:maginn 发表日期:2003-06-02 16:31:20
<br>主题:help::日志钩子(监听日志的变化给出示警)!
<br>内容:日志钩子<BR>&nbsp;&nbsp;&nbsp;&nbsp;我现在作日志钩子,发现钩子函数需要安装<BR>SetWindowsHookEx(WH_JOURNALRECORD, JournalRecordProc, hMod,0);<BR>但是其中hMod为 :包含钩子函数的模块句柄(是什么意思阿?)如何定义?<BR><BR>还有<BR>LRESULT CALLBACK JournalRecordProc(int iCode,&nbsp;&nbsp;WPARAM wParam, LPARAM lParam )<BR>具体如何实现?<BR>我想实现的功能为:<BR>&nbsp;&nbsp;当有事件写入系统日志(application)的时候后,能得到通知!<BR><BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:maginn 回复日期:2003-06-02 19:38:20
<br>内容:咋个没人看?<BR>不会没有人走过吧!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:maginn 回复日期:2003-06-02 20:05:57
<br>内容:日志属于系统钩子还是线程钩子?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:maginn 回复日期:2003-06-02 20:34:15
<br>内容:日志钩子的第三个参数<BR>如果是线程钩子 应该是null ;如果是系统钩子,该参数为勾子函数所在的DLL句柄<BR>请问它是线程钩子还是系统钩子?<BR><BR>如何写<BR>LRESULT CALLBACK JournalRecordProc(int iCode,&nbsp;&nbsp;WPARAM wParam, LPARAM lParam )<BR><BR>想实现的功能为:<BR>&nbsp;&nbsp;当有事件写入系统日志(application)的时候后,能得到通知!<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Neil Gan 回复日期:2003-06-03 06:52:09
<br>内容:Journal record hook is a not used for event log. It is used with journal playback hook to record/replay user operations.<BR><BR>You can use a thread or a WM_TIMER to check the event log every 1 or more second. If any change exist, you can notify your application.<BR><BR>Read this section in MSDN:<BR>Platform sdk documentation-&gt;base services-&gt;debugging and error handling-&gt;event logging.<BR><BR>You need these two functions: OpenEventLog, ReadEventLog<BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:maginn 回复日期:2003-06-03 09:25:51
<br>内容:At first,i must thank you for your suggestion.<BR>now , i have finished the fuction of OpenEventLog an ReadEventLog and can read the content of&nbsp;&nbsp;"Application log".<BR>the question is how to check the log happening change ?<BR><BR> <BR>2003-6-3 9:55:33

⌨️ 快捷键说明

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