写Windows NT事件日志

来源: 作者: 2007-12-03 出处:pcdog.com


  Writing to the Windows NT event log

Windows applications typically write to the NT event log to provide the user with useful information. In VB5/6, the App object now provides methods to make writing to the event log in Windows NT a snap:

注释:-- Start Event Logging
Call App.StartLogging("", vbLogToNT)

注释:-- Log Events to NT
Call App.LogEvent("Info", vbLogEventTypeInformation)
Call App.LogEvent("Error", vbLogEventTypeError)
Call App.LogEvent("Warning", vbLogEventTypeWarning)

Check out the Knowledge Base article App.LogEvent Only Logs in Compiled Applications for more information.
更多内容请看PCdog.com--Windows操作系统安装  Windows常见故障排除  Windows远程桌面的应用专题
上一篇:为什么我在中文win2000+sp1上装的vs.net不能创建各种web application
下一篇:用DELPHI实现为NT添加用户