<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Event Logging in Windows</title>
	<atom:link href="http://jalaj.net/2006/12/26/event-logging-in-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://jalaj.net/2006/12/26/event-logging-in-windows/</link>
	<description>A Technical Blog</description>
	<pubDate>Tue, 13 May 2008 21:57:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: chinhan</title>
		<link>http://jalaj.net/2006/12/26/event-logging-in-windows/#comment-29543</link>
		<dc:creator>chinhan</dc:creator>
		<pubDate>Fri, 02 May 2008 07:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://jalaj.wordpress.com/2006/12/26/event-logging-in-windows/#comment-29543</guid>
		<description>The first description part depend on EventID, let use 1 to have a custom description.</description>
		<content:encoded><![CDATA[<p>The first description part depend on EventID, let use 1 to have a custom description.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanvi</title>
		<link>http://jalaj.net/2006/12/26/event-logging-in-windows/#comment-28862</link>
		<dc:creator>Tanvi</dc:creator>
		<pubDate>Sun, 16 Mar 2008 09:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://jalaj.wordpress.com/2006/12/26/event-logging-in-windows/#comment-28862</guid>
		<description>how to log in? this is a very unorganized competition.....</description>
		<content:encoded><![CDATA[<p>how to log in? this is a very unorganized competition&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meindert</title>
		<link>http://jalaj.net/2006/12/26/event-logging-in-windows/#comment-28543</link>
		<dc:creator>meindert</dc:creator>
		<pubDate>Mon, 18 Feb 2008 11:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://jalaj.wordpress.com/2006/12/26/event-logging-in-windows/#comment-28543</guid>
		<description>I had the same 'problem' as Mercury.
Have gotten around it by creating a simple MessageDLL containing no categories and one message type (CategoryId 0, EventID 1).
I found the c++ code for this on http://www.codeproject.com/KB/system/eventlogging.aspx

You will have to connect this dll to your 'source' name in the event viewer. Code below links the dll to the source 'Logger', writeregistry is a wrapper module to write the registry (Created by E.Spencer)

Const MY_LOGGER_REG_PATH = "SYSTEM\CurrentControlSet\Services\Eventlog\Application\Logger"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "CategoryCount", ValDWord, "1"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "CategoryMessageFile", ValString, App.Path &#38; "\MessageDLL.DLL"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "EventMessageFile", ValString, App.Path &#38; "\MessageDLL.DLL"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "File", ValString, "%SystemRoot%\system32\config\Logger.evt"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "MaxSize", ValDWord, "524288"
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, "TypesSupported", ValDWord, "7"</description>
		<content:encoded><![CDATA[<p>I had the same &#8216;problem&#8217; as Mercury.<br />
Have gotten around it by creating a simple MessageDLL containing no categories and one message type (CategoryId 0, EventID 1).<br />
I found the c++ code for this on <a href="http://www.codeproject.com/KB/system/eventlogging.aspx" rel="nofollow">http://www.codeproject.com/KB/system/eventlogging.aspx</a></p>
<p>You will have to connect this dll to your &#8217;source&#8217; name in the event viewer. Code below links the dll to the source &#8216;Logger&#8217;, writeregistry is a wrapper module to write the registry (Created by E.Spencer)</p>
<p>Const MY_LOGGER_REG_PATH = &#8220;SYSTEM\CurrentControlSet\Services\Eventlog\Application\Logger&#8221;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;CategoryCount&#8221;, ValDWord, &#8220;1&#8243;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;CategoryMessageFile&#8221;, ValString, App.Path &amp; &#8220;\MessageDLL.DLL&#8221;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;EventMessageFile&#8221;, ValString, App.Path &amp; &#8220;\MessageDLL.DLL&#8221;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;File&#8221;, ValString, &#8220;%SystemRoot%\system32\config\Logger.evt&#8221;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;MaxSize&#8221;, ValDWord, &#8220;524288&#8243;<br />
    WriteRegistry HKEY_LOCAL_MACHINE, MY_LOGGER_REG_PATH, &#8220;TypesSupported&#8221;, ValDWord, &#8220;7&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mercury</title>
		<link>http://jalaj.net/2006/12/26/event-logging-in-windows/#comment-3203</link>
		<dc:creator>Mercury</dc:creator>
		<pubDate>Thu, 24 May 2007 21:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://jalaj.wordpress.com/2006/12/26/event-logging-in-windows/#comment-3203</guid>
		<description>Hi, thanks for this info on logging events. This is a very good code sample.

I wanted to use this code to log events from Excel VBA. It's working, but when I look at the event viewer (O/S WinServer 2003), the description is always prefixed with something like "The description for Event ID ( 65535 ) in Source ( blahblah ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Test msg."

Is there any way to remove this first description part? It totally obscures the message, to the point where I wonder if this is a good way to log stuff. Thank you!!</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this info on logging events. This is a very good code sample.</p>
<p>I wanted to use this code to log events from Excel VBA. It&#8217;s working, but when I look at the event viewer (O/S WinServer 2003), the description is always prefixed with something like &#8220;The description for Event ID ( 65535 ) in Source ( blahblah ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Test msg.&#8221;</p>
<p>Is there any way to remove this first description part? It totally obscures the message, to the point where I wonder if this is a good way to log stuff. Thank you!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
