<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Fabio&amp;#39;s Blog : iis watermark image native c++ sample module</title><link>http://blogs.iis.net/fabioy/archive/tags/iis+watermark+image+native+c_2B002B00_+sample+module/default.aspx</link><description>Tags: iis watermark image native c++ sample module</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>New watermark module sample available!</title><link>http://blogs.iis.net/fabioy/archive/2008/05/21/new-watermark-module-sample-available.aspx</link><pubDate>Wed, 21 May 2008 21:40:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2372467</guid><dc:creator>fabioy</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/fabioy/rsscomments.aspx?PostID=2372467</wfw:commentRss><comments>http://blogs.iis.net/fabioy/archive/2008/05/21/new-watermark-module-sample-available.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;There's a new sample module that I wrote available &lt;A class="" title="Sample Native Watermark Module" href="http://learn.iis.net/page.aspx/455/sample-image-watermark-module/" mce_href="http://learn.iis.net/page.aspx/455/sample-image-watermark-module/"&gt;&lt;FONT color=#3529ae&gt;here&lt;/FONT&gt;&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;One of the great new things in IIS 7 is this great extensibility we built so that modules and request handlers can be written with a much richer API than before (those who've had to tackle writting an ISAPI filter or handler know the pain involved).&amp;nbsp; Of course, most samples you see out there involve extending IIS 7 using ASP.Net modules.&amp;nbsp; But, a little while back we had an internal "app building" week, so I took upon myself to figure out this new native(C++) extensibility.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Now, understand that I typically don't work with anything involving the request processing itself.&amp;nbsp; That's the domain of my next-door office mate, AnilR (who also answers lots of questions in the forums).&amp;nbsp; But I wanted to do learn about this new API and also do something cool, so I wrote a watermarker module all in C++ (along with extending config and the UI -- I really did want to get the "full experience").&amp;nbsp; Of course the UI is in managed code (C#), but&amp;nbsp;overall, it&amp;nbsp;was a pretty cool to do and I learned a lot.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;A few observations that I made during this exercise.&amp;nbsp; One is that the new native extensibility API is quite cool.&amp;nbsp; You really can do much more with&amp;nbsp;this&amp;nbsp;new API than the old ISAPI ones.&amp;nbsp; Next, I found that the management UI itself contains a very rich set of APIs to do all they do under the covers.&amp;nbsp; Quite impressive really.&amp;nbsp; And finally, I found that there are decent image manipulation code in native C++ that doesn't require a whole lot of dependencies (the &lt;A class="" title=CImage href="http://msdn.microsoft.com/en-us/library/bwea7by5(VS.80).aspx" mce_href="http://msdn.microsoft.com/en-us/library/bwea7by5(VS.80).aspx"&gt;&lt;FONT color=#3529ae&gt;CImage&lt;/FONT&gt;&lt;/A&gt; classes).&lt;/P&gt;
&lt;P mce_keep="true"&gt;In any case, the point of it was to provide a cool native C++ module for folks to play with and use.&amp;nbsp; So, please, go and download it, play with it and extend it further.&amp;nbsp; The docs will mention a few things that I didn't finish that I left as work items to anyone else.&amp;nbsp; After all, it is a sample and didn't want to give away all the answers...&amp;nbsp; :)&amp;nbsp; Hope you enjoy!&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2372467" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/fabioy/archive/tags/iis+watermark+image+native+c_2B002B00_+sample+module/default.aspx">iis watermark image native c++ sample module</category></item></channel></rss>