<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JEDI Windows API &#187; JWA Downloads</title>
	<atom:link href="http://blog.delphi-jedi.net/category/downloads/jwa-downloads/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.delphi-jedi.net</link>
	<description>Joint Endeavor of Delphi Innovators of Windows Programming</description>
	<lastBuildDate>Wed, 19 Oct 2011 18:52:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Releases for Delphi 2010</title>
		<link>http://blog.delphi-jedi.net/2009/09/23/releases-for-delphi-2010/</link>
		<comments>http://blog.delphi-jedi.net/2009/09/23/releases-for-delphi-2010/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 22:07:07 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[JWSCL Downloads]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=450</guid>
		<description><![CDATA[JEDI Windows API (JWAL) and JEDI Windows Security Library (JWSCL) are now available in version 2.3 and 0.9.3. They support Delphi 2010. You can download them or use the new Subversion branches. If you find bugs, have questions, hints or want to participate: just mail us. Downloads Download from one of the Sourceforge mirrors at: [...]]]></description>
			<content:encoded><![CDATA[<p>JEDI Windows API (JWAL) and JEDI Windows Security Library (JWSCL) are now available in version 2.3 and 0.9.3. They support Delphi 2010.<br />
 You can download them or use the new Subversion branches.</p>
<p><span id="more-450"></span></p>
<p>If you find bugs, have questions, hints or want to participate: just <a href="http://mailhide.recaptcha.net/d?k=01MeKrDPlF4UMY4OOGe4JcPA==&amp;c=qu6RnFAF5jjxh0bbfE7ymCJCa5TFUIfZS6RdKFzWmME=">mail</a> us.</p>
<h2>Downloads</h2>
<p>Download from one of the Sourceforge mirrors at:</p>
<p><a href="https://sourceforge.net/projects/jedi-apilib/files">https://sourceforge.net/projects/jedi-apilib/files</a></p>
<p>(The download has Subversion folders <em>.SVN</em> which you can use to get updates through a Subversion Client. See below.)</p>
<h3>AND do <span style="text-decoration: underline;">not</span> forget to read:</h3>
<p><a href="http://blog.delphi-jedi.net/2007/12/27/how-to-setup-the-library/">How to Setup the JEDI Windows API Library (JWA).</a><br />
 and<br />
 <a href="http://blog.delphi-jedi.net/2008/03/03/how-to-setup-jwscl/">How to Setup the JEDI Windows Security Code Library (JWSCL).</a></p>
<h2>Subversion Access</h2>
<p>You can use a Subversion client, like <a href="http://tortoisesvn.tigris.org/" target="_blank">TortoiseSVN</a>, to download the sources directly.<br />
 <span style="text-decoration: underline;">Advantage</span>: You can easily get updated sources.</p>
<h3>JWA</h3>
<table style="width: 477px; height: 58px;" border="1">
<tbody>
<tr>
<td><a href="tsvn:https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwapi/branches/2.3"><img title="tortoisecheckout" src="http://blog.delphi-jedi.net/wp-content/uploads/2007/12/tortoisecheckout.png" alt="Checkout with TortoiseSVN" width="48" height="48" /></a></td>
<td>https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwapi/branches/2.3</td>
</tr>
</tbody>
</table>
<h3>JWSCL</h3>
<table style="width: 485px; height: 58px;" border="1">
<tbody>
<tr>
<td><a href="tsvn:https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwscl/branches/0.9.3"><img title="tortoisecheckout" src="http://blog.delphi-jedi.net/wp-content/uploads/2007/12/tortoisecheckout.png" alt="Checkout with TortoiseSVN" width="48" height="48" /></a></td>
<td>https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwscl/branches/0.9.3</td>
</tr>
</tbody>
</table>
<p><em>Click on the turtle to get the source if you have installed TortoiseSVN.</em></p>
<h2>Remaining Issues</h2>
<p>22. August 2009</p>
<p>There is an issue left with D2010: <br />
 The interface <em>IXMLElement</em> is no more available in file msxml.pas (MS XML Version 1). So the file <em>JwaUrlMon.pas</em> has been changed to use a <em>Pointer </em>instead of the <em>IXMLElement </em>interface. Unfortunately, the new IXmlDOMElement (MS XML Version 2) is not compatible with the old interface. <br />
 If you have an idea how to fix that, please <a href="http://mailhide.recaptcha.net/d?k=01MeKrDPlF4UMY4OOGe4JcPA==&amp;c=qu6RnFAF5jjxh0bbfE7ymCJCa5TFUIfZS6RdKFzWmME=">mail</a> to us.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2009/09/23/releases-for-delphi-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pre-Release of JEDI API 2.2 &amp; WSCL 0.9.2</title>
		<link>http://blog.delphi-jedi.net/2008/08/30/pre-release-of-jedi-api-22-wscl-092-2/</link>
		<comments>http://blog.delphi-jedi.net/2008/08/30/pre-release-of-jedi-api-22-wscl-092-2/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 19:23:31 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[JWSCL Downloads]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=254</guid>
		<description><![CDATA[JEDI API and JWSCL compile with Delphi2009 and also the examples work as far as I could test it. I&#8217;ve created a Subversion branch for each project: JEDI API Version 2.2 pre-release https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwapi/branches/2.2a JEDI WSCL Version 0.9.2 pre-release https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwscl/branches/0.9.2a Download a ZIP package with both projects from SourceForge. Always update this package with a SVN [...]]]></description>
			<content:encoded><![CDATA[<p><strong>JEDI API </strong>and <strong>JWSCL</strong> compile with <strong>Delphi2009</strong> and also the examples work as far as I could test it.</p>
<p><span id="more-254"></span></p>
<p>I&#8217;ve created a <a title="Go get Windows Subversion Client TortoiseSVN" href="http://tortoisesvn.tigris.org/" target="_blank">Subversion</a> branch for each project:</p>
<p><strong>JEDI API Version 2.2 pre-release </strong></p>
<p>https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwapi/branches/2.2a</p>
<p><strong>JEDI WSCL Version 0.9.2 pre-release</strong></p>
<p>https://jedi-apilib.svn.sourceforge.net/svnroot/jedi-apilib/jwscl/branches/0.9.2a</p>
<p>Download a ZIP package with both projects from <a href="http://sourceforge.net/project/showfiles.php?group_id=121894&amp;package_id=251762&amp;release_id=626467">SourceForge</a>. <span style="text-decoration: underline;">Always update this package with a SVN client to get best quality.</span></p>
<p><!--more-->As you can see we abandoned the revision numbers and instead use simple version numbers (as people are more used to those).<em><br />
These pre-releases won&#8217;t be available as packages from sourceforge.net!</em></p>
<p><strong>Please!<br />
We encourage you to use, test and check the released projects!</strong></p>
<p>If you find errors, have problems or questions don&#8217;t hesitate to ask them in the <a href="http://sourceforge.net/mail/?group_id=121894">mailinglist</a>, <a href="news://forums.talkto.net:119/jedi.apiconversion">newsgroup</a>, <a href="http://homepages.codegear.com/jedi/issuetracker/main_page.php">JEDI IssueTracker</a> or send it to <a href="http://mailhide.recaptcha.net/d?k=01MeKrDPlF4UMY4OOGe4JcPA==&amp;c=qu6RnFAF5jjxh0bbfE7ymCJCa5TFUIfZS6RdKFzWmME=">mail[at)delphi-jedi.net</a> .</p>
<p>Regards<br />
Christian Wimmer</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/08/30/pre-release-of-jedi-api-22-wscl-092-2/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Winlogon Notification Package</title>
		<link>http://blog.delphi-jedi.net/2008/05/27/winlogon-notification-package/</link>
		<comments>http://blog.delphi-jedi.net/2008/05/27/winlogon-notification-package/#comments</comments>
		<pubDate>Tue, 27 May 2008 18:07:05 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[JEDI Windows API Headers]]></category>
		<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[JWA]]></category>
		<category><![CDATA[winlogon]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=234</guid>
		<description><![CDATA[What is that? MSDN say&#8217;s: A Winlogon Notification Package is a DLL that exports functions that handle Winlogon events. For example, when a user logs onto the system, Winlogon calls each notification package&#8217;s logon event handler function to provide information about the event. So you might know, the mechanism of Winlogon Notification Package is available [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is that? MSDN say&#8217;s: </strong><em>A Winlogon Notification Package is a DLL that exports functions that handle Winlogon events. For example, when a user logs onto the system, Winlogon calls each notification package&#8217;s logon event handler function to provide information about the event.</em></p>
<p><span id="more-234"></span></p>
<p>So you might know, the mechanism of Winlogon Notification Package is available in Windows 2000, Windows XP and Windows 2003 Server. In contrast to Windows Vista, it is completely different, maybe I’ll come back with separate tutorial describing how to build a notification package for Windows Vista.</p>
<p>I&#8217;m going to demonstrate here, how to create such a notification package and as a special gift, we will learn how to create a PNG image with drop shadow effect, which we will use later to draw a transparent window inside the Winlogon Desktop.</p>
<p><a href="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/capture.jpg"><img class="alignnone size-thumbnail wp-image-230" title="capture" src="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/capture.jpg" alt="Winlogon" width="301" height="221" /></a></p>
<p>It&#8217;s time for our <strong>Winlogon Notification Package</strong>. Start Delphi and create a new DLL project.</p>
<p>What we need to do next is to define the Message Callback and the WLXNotificationInfo, as described in <a href="http://msdn.microsoft.com/en-us/library/aa381183(VS.85).aspx">MSDN</a></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">Type</span><br />
<span class="co1">// this callback function does not return a value as described on mdsn.</span></p>
<p>&nbsp; TFnMsgeCallback = <span class="kw1">function</span> <span class="br0">&#40;</span>bVerbose: <span class="kw4">Boolean</span>; lpMessage: <span class="kw4">PWideChar</span><span class="br0">&#41;</span>: <span class="kw4">Cardinal</span>; <span class="kw1">stdcall</span>;</p>
<p><span class="co1">// this structure stores information about a Winlogon event.</span></p>
<p>TWlxNotificationInfo = <span class="kw1">record</span><br />
&nbsp; &nbsp; Size: <span class="kw4">Cardinal</span>;<br />
&nbsp; &nbsp; Flags: <span class="kw4">Cardinal</span>;<br />
&nbsp; &nbsp; UserName: <span class="kw4">PWideChar</span>;<br />
&nbsp; &nbsp; Domain: <span class="kw4">PWideChar</span>;<br />
&nbsp; &nbsp; WindowStation: <span class="kw4">PWideChar</span>;<br />
&nbsp; &nbsp; Token: <span class="kw4">Cardinal</span>;<br />
&nbsp; &nbsp; Desktop: <span class="kw4">Cardinal</span>;<br />
&nbsp; &nbsp; StatusCallback: TFnMsgeCallback;<br />
&nbsp; <span class="kw1">end</span>;<br />
&nbsp; PWlxNotificationInfo = ^TWlxNotificationInfo;</p>
<p><span class="coMULTI">{ &nbsp;winlogon can inform about the following events:<br />
Lock,<br />
Lockoff,<br />
Logon,<br />
Shutdown,<br />
StartScreensave,<br />
StartShell,<br />
StartUp,<br />
StopScreenSaver,<br />
Unlock</p>
<p>For a complete describtion of those events look at: </p>
<p>http://msdn.microsoft.com/en-us/library/aa380544(VS.85).aspx<br />
}</span></p>
<p><span class="co1">// example of handling the Logon Message</span></p>
<p><span class="kw1">procedure</span> LogonHandler<span class="br0">&#40;</span>Info: PWlxNotificationInfo<span class="br0">&#41;</span>; <span class="kw1">stdcall</span>;<br />
<span class="kw1">begin</span></p>
<p><span class="kw1">end</span>;</p>
<p><span class="co1">// the entrance function for DLL</span></p>
<p><span class="kw1">procedure</span> EntryPointProc<span class="br0">&#40;</span>reason: <span class="kw4">integer</span><span class="br0">&#41;</span>;<br />
<span class="kw1">begin</span><br />
&nbsp; <span class="kw1">case</span> reason <span class="kw1">of</span><br />
&nbsp; &nbsp; DLL_PROCESS_ATTACH: &nbsp;<span class="co1">//1</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">Begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// Disable DLL_THREAD_ATTACH &amp;amp; DLL_THREAD_DETACH</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// notification calls. This is a performance optimization</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// for multithreaded applications that do not need</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// thread-level notifications of attachment or</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// detachment.</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; DisableThreadLibraryCalls<span class="br0">&#40;</span>hInstance<span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; DLL_THREAD_ATTACH: &nbsp; <span class="co1">//2</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">begin</span></p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; DLL_PROCESS_DETACH: &nbsp;<span class="co1">//3</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">begin</span></p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; DLL_THREAD_DETACH: &nbsp; <span class="co1">//0</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">begin</span></p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; <span class="kw1">end</span>;</p>
<p><span class="kw1">end</span>;</p>
<p><span class="co1">// define the exports for the DLL</span></p>
<p>exports<br />
&nbsp; LogonHandler;</p>
<p><span class="kw1">begin</span><br />
&nbsp; DllProc := @EntryPointProc;<br />
&nbsp; DllProc<span class="br0">&#40;</span>DLL_PROCESS_ATTACH<span class="br0">&#41;</span>;<br />
<span class="kw1">end</span>.</div>
<p>Our Prototype, is ready to use. The compiled DLL has to be in the following folder:</p>
<p style="padding-left: 30px;"><strong> C:\Windows\System32 </strong>(adapt it to your environment)<strong><br />
</strong></p>
<p>Now we can inform the operating system that we created a <strong>Winlogon Notification Package. </strong>This step will be done in the registry under the following key:</p>
<p style="padding-left: 30px;"><strong>HKey_Local_Machine\Software\Microsoft\WindowsNT\<br />
CurrentVersion\Winlogon\Notify\YourNotification </strong></p>
<table class="MsoTableMediumList2Accent1" style="border: medium none; width: 73.16%; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0" width="73%">
<tbody>
<tr>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 21.78%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium medium 3pt none none solid -moz-use-text-color -moz-use-text-color #4f81bd;" width="21%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">Name</span></p>
</td>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 20.94%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium medium 3pt none none solid -moz-use-text-color -moz-use-text-color #4f81bd;" width="20%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">Type</span></p>
</td>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 57.28%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium medium 3pt none none solid -moz-use-text-color -moz-use-text-color #4f81bd;" width="57%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">Value</span></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 21.78%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="21%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">DLLName</span></p>
</td>
<td style="border: medium none; padding: 0cm 5.4pt; background: #d3dfee none repeat scroll 0%; width: 20.94%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="20%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">REG_SZ</span></p>
</td>
<td style="padding: 0cm 5.4pt; background: #d3dfee none repeat scroll 0%; width: 57.28%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="57%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">C:\Windows\System32\YourDLLName.dll</span></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 21.78%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="21%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">Asynchronous</span></p>
</td>
<td style="border: medium none; padding: 0cm 5.4pt; width: 20.94%;" width="20%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">REG_DWORD</span></p>
</td>
<td style="padding: 0cm 5.4pt; width: 57.28%; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="57%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">0</span></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 21.78%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="21%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">Impersonate</span></p>
</td>
<td style="border: medium none; padding: 0cm 5.4pt; background: #d3dfee none repeat scroll 0%; width: 20.94%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="20%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">REG_DWORD</span></p>
</td>
<td style="padding: 0cm 5.4pt; background: #d3dfee none repeat scroll 0%; width: 57.28%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="57%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">0</span></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 5.4pt; background: white none repeat scroll 0%; width: 21.78%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border: medium 1pt medium medium none solid none none -moz-use-text-color #4f81bd -moz-use-text-color -moz-use-text-color;" width="21%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="color: black;">Logon</span></p>
</td>
<td style="padding: 0cm 5.4pt; width: 20.94%; border: medium medium 1pt none none solid -moz-use-text-color -moz-use-text-color #4f81bd;" width="20%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span lang="EN-US">REG_SZ</span></p>
</td>
<td style="padding: 0cm 5.4pt; width: 57.28%; border: medium 1pt 1pt medium none solid solid none -moz-use-text-color #4f81bd #4f81bd -moz-use-text-color;" width="57%" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><span style="color: black;">LogonHandler</span></p>
</td>
</tr>
</tbody>
</table>
<p>The valid values are described in this <a href="http://msdn.microsoft.com/en-us/library/aa379402(VS.85).aspx">MSDN article.</a></p>
<p><strong>Creating the PNG Image</strong></p>
<p>For completing this Project you will need to download the following:</p>
<p><strong>Graphics32 Library</strong><br />
<em>Graphics32 is a graphics library for Delphi and Kylix/CLX. Optimized for 32-bit pixel formats, it provides fast operations with pixels and graphic primitives. In most cases Graphics32 considerably outperforms the standard TBitmap/TCanvas methods.</em></p>
<p><strong>PNG Components<br />
</strong><em>Delphi VCL Components with PNG Image support.</em></p>
<p>What you&#8217;ll need is an already exisiting PNG or a new one. I&#8217;ll use with the <a href="http://blog.delphi-jedi.net/home/">Jedi Api WSCL Logo</a>.<br />
Open the Logo in Photoshop but remember this can be done in almost any other Graphic Application which supports PNG and layer based drawing.</p>
<p>The Logo from this site is already a PNG, so you will see a transparent background when it is opened in Photoshop. If you like to add a drop shadow style to it, you won&#8217;t see it,because of the mentioned transparent background. It is also a problem on a black background, btw. So first thing to do is to add a temporary background layer into the Logo. To do so, click on the &#8220;<strong>Create New Layer Symbol</strong>&#8221; in the layer palette (indicated as a small notepad icon).</p>
<p>Now select the new created layer by clicking on it and drag it behind the Logo layer. With the new layer still selected, switch to the &#8220;Tools Window&#8221; and select the &#8220;<strong>Paint Bucket Tool</strong>&#8220;. Select white as your foreground color. If you have another color as foreground color, <strong>simply press d and then x</strong>. In this way it will reset the foreground and backgound colors. Now click inside your image on the transparent part and you&#8217;ll see the Logo with a white background applied.</p>
<p>Switch to your layers palette and double click on the Logo layer. The &#8220;Layers Styles Dialog&#8221; should be visible now. Select &#8220;Drop Shadow&#8221; and you can adjust the angle of the drop shadow and its size. While you adjust it, also watch the Logo. Photoshop shows you a preview of the changes. If you&#8217;re satisfied with your settings hit ok.</p>
<p>At this time, we don&#8217;t need our white background layer anymore, so select it and drag it to the trash can symbol in the layer palette. It will be deleted then. Afterwards save the Logo, select PNG as the file format and a new window will appear (PNG Options). Select none and hit ok.</p>
<p>There also exists a small <a href="#Downloads">video presentation</a> which will help you<strong>.</strong></p>
<p><strong>Drawing the PNG onto the Form Canvas</strong></p>
<p>The following source is kindly provided by <strong>Coder90</strong>. He wrote a nice example in a german delphi <a href="http://www.delphipraxis.net/post606056.html#606056">forum<br />
</a></p>
<p><strong>The Sources<br />
</strong>I won&#8217;t go into any details here, basically the procedure will load the PNG into a Bitmap32 Object and blends it to the forms canvas.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">Type</span><br />
<span class="kw1">interface</span></p>
<p><span class="kw1">uses</span><br />
&nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />
&nbsp; Dialogs, ExtCtrls, StdCtrls, GR32;</p>
<p>&nbsp; <span class="kw1">public</span><br />
&nbsp; &nbsp; <span class="coMULTI">{ Public declarations }</span><br />
&nbsp; &nbsp; BMP32 : TBitmap32;<br />
&nbsp; &nbsp; BlendF: TBlendFunction;<br />
&nbsp; &nbsp; P: TPoint;<br />
&nbsp; &nbsp; Size: TSize;<br />
&nbsp; &nbsp; <span class="kw1">procedure</span> BlendIt;<br />
&nbsp; <span class="kw1">end</span>;</p>
<p>&nbsp; <span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Filename: <span class="kw4">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>; <span class="kw1">overload</span>;</p>
<p>&nbsp; <span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SrcStream: TStream;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>; <span class="kw1">overload</span>;</p>
<p>&nbsp; <span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szSection : <span class="kw4">PChar</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szName &nbsp; &nbsp;: <span class="kw4">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>; <span class="kw1">overload</span>;</p>
<p><span class="kw1">uses</span> PNGImage;</p>
<p><span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SrcStream: TStream;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>;<br />
<span class="kw1">var</span><br />
&nbsp; PNGObject: TPNGObject;<br />
&nbsp; TransparentColor: TColor32;<br />
&nbsp; PixelPtr: PColor32;<br />
&nbsp; AlphaPtr: <span class="kw4">PByte</span>;<br />
&nbsp; X, Y: <span class="kw4">Integer</span>;<br />
<span class="kw1">begin</span><br />
&nbsp; PNGObject := <span class="kw2">nil</span>;<br />
&nbsp; <span class="kw1">try</span><br />
&nbsp; &nbsp; PNGObject := TPngObject.<span class="me1">Create</span>;<br />
&nbsp; &nbsp; PNGObject.<span class="me1">LoadFromStream</span><span class="br0">&#40;</span>SrcStream<span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; DstBitmap.<span class="me1">Assign</span><span class="br0">&#40;</span>PNGObject<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; DstBitmap.<span class="me1">ResetAlpha</span>;</p>
<p>&nbsp; &nbsp; <span class="kw1">case</span> PNGObject.<span class="me1">TransparencyMode</span> <span class="kw1">of</span><br />
&nbsp; &nbsp; &nbsp; ptmPartial:<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>PNGObject.<span class="me1">Header</span>.<span class="me1">ColorType</span> = COLOR_GRAYSCALEALPHA<span class="br0">&#41;</span> <span class="kw1">or</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#40;</span>PNGObject.<span class="me1">Header</span>.<span class="me1">ColorType</span> = COLOR_RGBALPHA<span class="br0">&#41;</span> <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PixelPtr := PColor32<span class="br0">&#40;</span>@DstBitmap.<span class="me1">Bits</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> Y := <span class="nu0">0</span> <span class="kw1">to</span> DstBitmap.<span class="me1">Height</span> &#8211; <span class="nu0">1</span> <span class="kw1">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AlphaPtr := <span class="kw4">PByte</span><span class="br0">&#40;</span>PNGObject.<span class="me1">AlphaScanline</span><span class="br0">&#91;</span>Y<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> X := <span class="nu0">0</span> <span class="kw1">to</span> DstBitmap.<span class="me1">Width</span> &#8211; <span class="nu0">1</span> <span class="kw1">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PixelPtr^ := <span class="br0">&#40;</span>PixelPtr^ <span class="kw1">and</span> <span class="re0">$00FFFFFF</span><span class="br0">&#41;</span> <span class="kw1">or</span> <span class="br0">&#40;</span>TColor32<span class="br0">&#40;</span>AlphaPtr^<span class="br0">&#41;</span> <span class="kw1">shl</span> <span class="nu0">24</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">Inc</span><span class="br0">&#40;</span>PixelPtr<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">Inc</span><span class="br0">&#40;</span>AlphaPtr<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AlphaChannelUsed := <span class="kw2">True</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; &nbsp; ptmBit:<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransparentColor := Color32<span class="br0">&#40;</span>PNGObject.<span class="me1">TransparentColor</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PixelPtr := PColor32<span class="br0">&#40;</span>@DstBitmap.<span class="me1">Bits</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> X := <span class="nu0">0</span> <span class="kw1">to</span> <span class="br0">&#40;</span>DstBitmap.<span class="me1">Height</span> &#8211; <span class="nu0">1</span><span class="br0">&#41;</span> * <span class="br0">&#40;</span>DstBitmap.<span class="me1">Width</span> &#8211; <span class="nu0">1</span><span class="br0">&#41;</span> <span class="kw1">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">begin</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> PixelPtr^ = TransparentColor <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PixelPtr^ := PixelPtr^ <span class="kw1">and</span> <span class="re0">$00FFFFFF</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">Inc</span><span class="br0">&#40;</span>PixelPtr<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AlphaChannelUsed := <span class="kw2">True</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; &nbsp; &nbsp; ptmNone:<br />
&nbsp; &nbsp; &nbsp; &nbsp; AlphaChannelUsed := <span class="kw2">False</span>;<br />
&nbsp; &nbsp; <span class="kw1">end</span>;<br />
&nbsp; <span class="kw1">finally</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="kw3">Assigned</span><span class="br0">&#40;</span>PNGObject<span class="br0">&#41;</span> <span class="kw1">then</span> PNGObject.<span class="me1">Free</span>;<br />
&nbsp; <span class="kw1">end</span>;<br />
<span class="kw1">end</span>;</p>
<p><span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Filename: <span class="kw4">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>;<br />
<span class="kw1">var</span><br />
&nbsp; FileStream: TFileStream;<br />
<span class="kw1">begin</span><br />
&nbsp; FileStream := TFileStream.<span class="me1">Create</span><span class="br0">&#40;</span>Filename, fmOpenRead<span class="br0">&#41;</span>;<br />
&nbsp; <span class="kw1">try</span><br />
&nbsp; &nbsp; LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap, FileStream, AlphaChannelUsed<span class="br0">&#41;</span>;<br />
&nbsp; <span class="kw1">finally</span><br />
&nbsp; &nbsp; FileStream.<span class="me1">Free</span>;<br />
&nbsp; <span class="kw1">end</span>;<br />
<span class="kw1">end</span>;</p>
<p><span class="kw1">procedure</span> LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap: TBitmap32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szSection : <span class="kw4">PChar</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szName &nbsp; &nbsp;: <span class="kw4">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out AlphaChannelUsed: <span class="kw4">Boolean</span><span class="br0">&#41;</span>;<br />
<span class="kw1">var</span><br />
&nbsp; Stream: TResourceStream;<br />
<span class="kw1">begin</span><br />
&nbsp; Stream := TResourceStream.<span class="me1">Create</span><span class="br0">&#40;</span>hInstance, szName, <span class="kw4">PChar</span><span class="br0">&#40;</span>szSection<span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; <span class="kw1">try</span><br />
&nbsp; &nbsp; LoadPNGintoBitmap32<span class="br0">&#40;</span>DstBitmap, Stream, AlphaChannelUsed<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <span class="kw1">finally</span><br />
&nbsp; &nbsp; &nbsp;Stream.<span class="me1">Free</span>;<br />
&nbsp; &nbsp;<span class="kw1">end</span>;<br />
<span class="kw1">end</span>;</p>
<p><span class="coMULTI">{ Works only Win2000_Up }</span></p>
<p><span class="kw1">procedure</span> TForm1.<span class="me1">BlendIt</span>;<br />
&nbsp; <span class="kw1">var</span><br />
&nbsp; &nbsp; Alpha: <span class="kw4">Boolean</span>;<br />
<span class="kw1">begin</span><br />
&nbsp; BMP32 := TBitmap32.<span class="me1">Create</span>;<br />
&nbsp;<span class="coMULTI">{Load PNG from File<br />
&nbsp; LoadPNGintoBitmap32(BMP32, ExtractFilePath(ParamStr(0)) + &#8216;WSCL.png&#8217;, Alpha);<br />
&nbsp;}</span><br />
&nbsp; <span class="co1">// Load PNG From Resource</span><br />
&nbsp; LoadPNGintoBitmap32<span class="br0">&#40;</span>BMP32, <span class="kw4">PChar</span><span class="br0">&#40;</span><span class="st0">&#8216;PNG&#8217;</span><span class="br0">&#41;</span>, <span class="st0">&#8216;WSCL&#8217;</span>, Alpha<span class="br0">&#41;</span>;</p>
<p>&nbsp; setWindowLong<span class="br0">&#40;</span>Handle, GWL_EXSTYLE,<br />
&nbsp; getWindowLong<span class="br0">&#40;</span>Handle, GWL_EXSTYLE<span class="br0">&#41;</span> <span class="kw1">or</span> WS_EX_LAYERED <span class="coMULTI">{or WS_EX_TRANSPARENT}</span><span class="br0">&#41;</span>;<br />
&nbsp; <span class="co1">// WS_EX_TRANSPARENT makes the Window for MouseClicks transparent&#8230;</span></p>
<p>&nbsp; BlendF.<span class="me1">BlendOp</span> := AC_SRC_OVER;<br />
&nbsp; BlendF.<span class="me1">BlendFlags</span> := <span class="nu0">0</span>;<br />
&nbsp; BlendF.<span class="me1">SourceConstantAlpha</span> := <span class="nu0">255</span>;<br />
&nbsp; BlendF.<span class="me1">AlphaFormat</span> := AC_SRC_ALPHA;<br />
&nbsp; P := Point<span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">0</span><span class="br0">&#41;</span>;<br />
&nbsp; Size.<span class="me1">cx</span> := BMP32.<span class="me1">Width</span>;<br />
&nbsp; Size.<span class="me1">cy</span> := BMP32.<span class="me1">Height</span>;</p>
<p>&nbsp; UpdateLayeredWindow<span class="br0">&#40;</span>Handle, <span class="nu0">0</span>, <span class="kw2">nil</span>, @Size, BMP32.<span class="me1">Handle</span>, @P, <span class="nu0">0</span>, @BlendF, ULW_ALPHA<span class="br0">&#41;</span>;</p>
<p>&nbsp; <span class="co1">// Set Window on Top</span><br />
&nbsp; SetWindowPos<span class="br0">&#40;</span>Handle, HWND_TOPMOST, Left, Top, Width, Height,<br />
&nbsp; SWP_NOACTIVATE <span class="kw1">or</span> SWP_NOMOVE <span class="kw1">or</span> SWP_NOSIZE<span class="br0">&#41;</span>;</p>
<p>&nbsp; <span class="co1">// Set Parent to Desktop</span><br />
&nbsp; SetWindowLong<span class="br0">&#40;</span>Handle, GWL_HWNDPARENT, <span class="nu0">0</span><span class="br0">&#41;</span>;</p>
<p>&nbsp; <span class="co1">// Hide Window from Taskbar</span><br />
&nbsp; SetWindowLong<span class="br0">&#40;</span>Handle, GWL_EXSTYLE,<br />
&nbsp; GetWindowLong<span class="br0">&#40;</span>Handle, GWL_EXSTYLE<span class="br0">&#41;</span> <span class="kw1">or</span><br />
&nbsp; WS_EX_TOOLWINDOW <span class="kw1">and</span> <span class="kw1">not</span> WS_EX_APPWINDOW<span class="br0">&#41;</span>;<br />
<span class="kw1">end</span>;</div>
<p>Call it in the FormOnCreate handler and don&#8217;t forget to free the Bitmap32 Object, a good place e.g. would be on the FormOnDestroy Handler.</p>
<p><strong>Additional informations for you</strong></p>
<p>I have to tell you that the first version of this package was slightly different than the one I’ll post here.<br />
Well I used an external executeable which was called from my DLL when the LogonEvent was called.</p>
<p>But I encountered a big problem with that technique. One of the biggest problems were that my external application was executed more then once. Additionally I wasn’t able to close it. Neither Application.Terminate nor Application.Mainform.Close worked here. I did some experiments with a mutex which worked in some cases, but then, Christian Wimmer gave me many good ideas and suggestions.</p>
<p>So the improvements were:</p>
<ol>
<li>The transparent Window is now directly created inside of the Winlogon Process by creating a new thread object.</li>
<li>Christian implemented an TApplication.OnIdle handler inside the thread object which will safely close the transparent window when it isn&#8217;t needed anymore.</li>
</ol>
<h3>Prerequisites:</h3>
<p>The following Delphi packages are necessary. They are not included and must therfore downloaded and installed (if necessary) separately. Please, also recognize the license of these packages. The winlogon examples does only have a Copyright and no Warranty license.</p>
<h3>Download:<a name="Downloads"></a></h3>
<p>3rd Party Components and Library&#8217;s you need to download:<br />
<a href="https://sourceforge.net/projects/graphics32/">Graphics32</a><br />
<a href="http://www.thany.org/article/18/Delphi_components">PNG Components</a></p>
<p>Jedi Tutorial Files:<a href="http://www.thany.org/article/18/Delphi_components"><br />
</a><a href="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/vid.avi">Photoshop Tutorial<br />
</a>(dowload size: 2.12 MB Format: AVI)<a href="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/vid.avi"><br />
</a><a href="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/winlogon.zip">winlogon<br />
</a>(dowload size: 82.2 KB Format: ZIP)</p>
<h2>Warning:</h2>
<p>If you want to use such a Winlogon Notification DLL in a productive system you have to make sure that the wrong person can&#8217;t manipulate the DLL file. This can be done by setting the file&#8217;s access control list to allow only write access to SYSTEM and Administrators. There is no need for other users to have even read access, since the DLL is only used by winlogon. Furthermore you should save this file in a save place like the System32 folder.</p>
<p><strong>Conclusion:</strong></p>
<p>I hope you learned something new and had as much fun as I had writing this little tutorial for you!<br />
My biggest thanks fly out to Christian Wimmer for all his support and help for making me finish this project.</p>
<p>Kindest regards<br />
stOrM!</p>
<p>(contact by comments or <a href="http://blog.delphi-jedi.net/about/">mail @ JEDI</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/05/27/winlogon-notification-package/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
<enclosure url="http://blog.delphi-jedi.net/wp-content/uploads/2008/05/vid.avi" length="2232108" type="video/x-msvideo" />
		</item>
		<item>
		<title>The Delphi JEDI Project needs your help</title>
		<link>http://blog.delphi-jedi.net/2008/04/20/the-delphi-jedi-project-needs-your-help/</link>
		<comments>http://blog.delphi-jedi.net/2008/04/20/the-delphi-jedi-project-needs-your-help/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 20:16:40 +0000</pubDate>
		<dc:creator>Remko</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[JEDI Windows API Headers]]></category>
		<category><![CDATA[JEDI Windows Security Code Lib]]></category>
		<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[JWSCL Downloads]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/2008/04/20/the-delphi-jedi-project-needs-your-help-2/</guid>
		<description><![CDATA[The JEDI API Library project (JWA) has been successfully revived from a sleep status to an active project with lots of ambitions. Some recent achievements are the new include model of JWA, the release of JWSCL (the Security Library) and of course the &#8220;birth&#8221; of this blog. We made a roadmap for JWA and JWSCL [...]]]></description>
			<content:encoded><![CDATA[<p>The JEDI API Library project (JWA) has been successfully revived from a sleep status to an active project with lots of ambitions. Some recent achievements are the new include model of JWA, the release of JWSCL (the Security Library) and of course the &#8220;birth&#8221; of this blog.</p>
<p><span id="more-155"></span></p>
<p>We made a roadmap for JWA and JWSCL which includes &#8220;unicodifying&#8221; (Nick Hodges gave birth to a new word, meaning making the code ready for the next Delphi) and converting new Vista/Server 2008 API&#8217;s.</p>
<p>To help us fullfill these ambitions and continue contributing to the Delphi Community, we are looking for experienced Delphi developers to help us with the following tasks:</p>
<ul>
<li>Maintaining and extending the Jedi API Library (convert new header files, fix errors in existing code).</li>
<li>Maintaining and extending the Jedi Windows Security Code Library (use and test the library, contribute new code, maintain documentation, <em>Active Directory</em>).</li>
<li>Create examples and write blog posts about using JWA and/or JWSCL.</li>
</ul>
<p>See also the <a href="http://blog.delphi-jedi.net/2008/04/09/roadmap-of-jwa-jwscl/">Roadmap</a> for more details.</p>
<p>Of course you will get something back as well: the JEDI projects are very well known and respected in the Delphi Community, so active participation will earn you the respect of the community and is likely to offer additional benefits to your professional career!</p>
<p>Joining the projects means that you will be part of a team where the members actively support and help each other. You can learn a lot from the team&#8217;s knowledge and expertise and we look forward to learning from your knowledge.</p>
<p>If you think you can help us with either JWA, JWSCL or both projects please contact us:<br />
<a href="http://mailhide.recaptcha.net/d?k=01MeKrDPlF4UMY4OOGe4JcPA==&amp;c=qu6RnFAF5jjxh0bbfE7ymCJCa5TFUIfZS6RdKFzWmME="><img src="http://blog.delphi-jedi.net/wp-content/uploads/2008/04/mail-1.gif" alt="mail" width="129" height="12" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/04/20/the-delphi-jedi-project-needs-your-help/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NTStatus</title>
		<link>http://blog.delphi-jedi.net/2008/04/04/ntstatus/</link>
		<comments>http://blog.delphi-jedi.net/2008/04/04/ntstatus/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 14:22:00 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[JWA Downloads]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/2008/04/04/ntstatus/</guid>
		<description><![CDATA[NTStatus converts an error number into a NTStatus error message. It is very helpful if you encounter error numbers in debugging sessions but cannot comprehend its sense. This application was written by Assarbad. Get the application written in Delphi and using non-VCL at these locations (including source): http://assarbad.net/stuff/ntstatus.rar http://assarbad.net/stuff/ntstatus.zip]]></description>
			<content:encoded><![CDATA[<p>NTStatus converts an error number into a NTStatus error message.<br />
It is very helpful if you encounter error numbers in debugging sessions but cannot comprehend its sense.</p>
<p><a HREF="http://blog.delphi-jedi.net/wp-content/uploads/2008/03/bild-19.jpg"><img WIDTH="450" HEIGHT="217" ALT="Bild" SRC="http://blog.delphi-jedi.net/wp-content/uploads/2008/03/bild-19-small.jpg" /></a></p>
<p>This application was written by Assarbad. Get the application written in Delphi and using non-VCL at these locations (including source):</p>
<p><a HREF="http://assarbad.net/stuff/ntstatus.rar">http://assarbad.net/stuff/ntstatus.rar</a><br />
<a HREF="http://assarbad.net/stuff/ntstatus.zip">http://assarbad.net/stuff/ntstatus.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/04/04/ntstatus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>All the error messages &#8211; but no warranty</title>
		<link>http://blog.delphi-jedi.net/2008/03/24/all-the-error-messages-but-no-warranty/</link>
		<comments>http://blog.delphi-jedi.net/2008/03/24/all-the-error-messages-but-no-warranty/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 16:00:39 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[JEDI Windows API Headers]]></category>
		<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[JWA]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/2008/03/24/all-the-error-messages-but-no-warranty/</guid>
		<description><![CDATA[There are many error messages in a Windows System. Actually a MSDN article describes them &#8211; or better: part of them. However they weren&#8217;t enough for me, so I decided to get all of them. FormatMessage is the way to convert between the error number and the error text. So why do not simply go [...]]]></description>
			<content:encoded><![CDATA[<p>There are many error messages in a Windows System. Actually a <a title="Go to MSDN." href="http://technet.microsoft.com/en-us/library/bb684707.aspx">MSDN article</a> describes them &#8211; or better: part of them. However they weren&#8217;t enough for me, so I decided to get all of them.</p>
<p><span id="more-63"></span></p>
<p><em><a title="Go to MSDN." href="http://msdn2.microsoft.com/en-us/library/ms679351.aspx">FormatMessage</a> </em>is the way to convert between the error number and the error text.   So why do not simply go from zero to 4294967295  (high(Cardinal)) and convert all these possible error numbers to an error text by using <em>FormatMessage</em>? I did. And you know what? It works. I got all the possible error numbers in only 6 hours and 33 minutes.</p>
<p>Here you can download the code tables (retrieved from a Windows Vista)</p>
<ul>
<li><a title="German GetLastError Code Table" href="http://blog.delphi-jedi.net/wp-content/uploads/2008/03/getlasterrors-_-deutsch.zip">German GetLastError Code Table</a></li>
<li><a title="English GetLastError Code Table" href="http://blog.delphi-jedi.net/wp-content/uploads/2008/03/getlasterrors-_-english.zip">English GetLastError Code Table</a></li>
</ul>
<p>Use them for your joy. However I cannot grant any guarantee for correctness, completeness or anything else. It is even possible that error codes and messages are going to change in future. This data comes straight from a Vista system and is not altered in any way but only for formating purposes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/03/24/all-the-error-messages-but-no-warranty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to submit header conversions</title>
		<link>http://blog.delphi-jedi.net/2008/03/13/how-to-submit-header-conversions/</link>
		<comments>http://blog.delphi-jedi.net/2008/03/13/how-to-submit-header-conversions/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 21:38:34 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[Conversion]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[JWA]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/2008/03/13/how-to-submit-header-conversions/</guid>
		<description><![CDATA[Please read this &#8220;How to&#8221; before submitting any Header Conversions to us. Then you can submit the headers to us by mail.]]></description>
			<content:encoded><![CDATA[<p>Please read this <a href="http://delphi-jedi.org/apipackspec.html">&#8220;How to&#8221;</a> before submitting any Header Conversions to us.</p>
<p>Then you can submit the headers to us by <a href="http://mailhide.recaptcha.net/d?k=01MeKrDPlF4UMY4OOGe4JcPA==&amp;c=qu6RnFAF5jjxh0bbfE7ymCJCa5TFUIfZS6RdKFzWmME=">mail</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2008/03/13/how-to-submit-header-conversions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JEDI Windows API Release 315</title>
		<link>http://blog.delphi-jedi.net/2007/10/21/jedi-windows-api-release-315/</link>
		<comments>http://blog.delphi-jedi.net/2007/10/21/jedi-windows-api-release-315/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 13:25:16 +0000</pubDate>
		<dc:creator>Christian Wimmer</dc:creator>
				<category><![CDATA[JWA Downloads]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[JWA]]></category>

		<guid isPermaLink="false">http://blog.delphi-jedi.net/2007/10/21/jedi-windows-api-release-315/</guid>
		<description><![CDATA[The JEDI Windows API Download Revision 315 is now available on SourceForge. Direct link (4,5mb) Changes: + Many bugfixes + additional terminal service functions (jwaWinsta.pas) + added JwaWinInet.pas]]></description>
			<content:encoded><![CDATA[<p>The JEDI Windows API Download <strong>Revision 315</strong> is now available on SourceForge.</p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=121894&amp;package_id=251762" title="Direct Link" target="_blank">Direct link</a> (4,5mb)</p>
<p>Changes:<br />
+ Many bugfixes<br />
+ additional terminal service functions (jwaWinsta.pas)<br />
+ added JwaWinInet.pas</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delphi-jedi.net/2007/10/21/jedi-windows-api-release-315/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

