<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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/"><channel><title>Windows CE Networking Team WebLog : Auther:  Alexander T. Bussmann</title><link>http://blogs.msdn.com/cenet/archive/tags/Auther_3A00_++Alexander+T.+Bussmann/default.aspx</link><description>Tags: Auther:  Alexander T. Bussmann</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>NETUI and Disabling Prompts for Credentials by the Redirector</title><link>http://blogs.msdn.com/cenet/archive/2007/05/26/netui-and-disabling-prompts-for-credentials-by-the-redirector.aspx</link><pubDate>Sat, 26 May 2007 19:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2959768</guid><dc:creator>cenet</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/cenet/comments/2959768.aspx</comments><wfw:commentRss>http://blogs.msdn.com/cenet/commentrss.aspx?PostID=2959768</wfw:commentRss><description>&lt;P&gt;One of the questions that I've seen asked, time and time again, is "How do you disable the username and password dialog that is generated by such and such Microsoft provided component?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The answer to all great questions is that it usually depends.&amp;nbsp; In particular it depends on how this said Microsoft component generates its UI.&amp;nbsp; In the specific case of this blog posting, I'm going to talk about one of these components and one of the methods you could use to disable various UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The Redirector component on Windows CE almost always refers to the client-side Server Message Block (SMB) network filesystem.&amp;nbsp; This component can display a number of UI forms, Message Boxes, Username and Password Dialogs, etc.&amp;nbsp; It puts up these UI forms by making calls into another component called NetUI, which is used by many Microsoft provided components to display UI.&amp;nbsp; The NetUI module is provided as public sample code with Platform Builder and it is available for the user to modify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The following MSDN article discusses how to modify/make changes to NetUI.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms904254.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms904254.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms904254.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;When the Redirector component displays a Username and Password Dialog in Windows CE 6.0 it does so by calling &lt;STRONG&gt;CallGetUsernamePassword.&amp;nbsp; &lt;/STRONG&gt;This method is defined in netui.h.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you wanted to fail the Username and Password dialog silently in the Redirector component then you would want to set the return value of CallGetUsernamePassword to FALSE.&amp;nbsp; CallGetUsernamePassword is defined in $(_WINCEROOT)\public\common\oak\inc\netui.h.&amp;nbsp; If you investigate netui.h you can see that there is logic that handles displaying UI from both Usermode and Kernel.&amp;nbsp; What is important to know is that you must change the final calls that&amp;nbsp;both Usermode and Kernel mode will eventually call.&amp;nbsp; Reading the code in netui.h one can find dependencies on netui_kernel.h and netui_user.h.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Looking to netui.h and netui_user.h we can see:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CallGetUsernamePassword&lt;/STRONG&gt; calls &lt;STRONG&gt;CallUGetUsernamePassword&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CallUGetUsernamePassword&lt;/STRONG&gt; calls &lt;STRONG&gt;GetUsernamePassword&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GetUsernamePassword &lt;/STRONG&gt;is found in &lt;STRONG&gt;getuser.c &lt;/STRONG&gt;in the netui directory:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;$(_WINCEROOT)\public\common\oak\drivers\netui.&lt;/P&gt;
&lt;P&gt;Here you can modify GetUsernamePassword to return FALSE, effectively removing the username and password dialog from being displayed.&lt;/P&gt;
&lt;P&gt;Hopefully this illustration helps you&amp;nbsp;disable or improve&amp;nbsp;the default UI that comes with other Microsoft components.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2959768" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/cenet/archive/tags/Auther_3A00_++Alexander+T.+Bussmann/default.aspx">Auther:  Alexander T. Bussmann</category></item><item><title>Disabling Authentication for Windows CE 6.0 File Shares</title><link>http://blogs.msdn.com/cenet/archive/2007/03/13/disabling-authentication-for-windows-ce-6-0-file-shares.aspx</link><pubDate>Wed, 14 Mar 2007 08:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1878478</guid><dc:creator>cenet</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/cenet/comments/1878478.aspx</comments><wfw:commentRss>http://blogs.msdn.com/cenet/commentrss.aspx?PostID=1878478</wfw:commentRss><description>&lt;P&gt;The following is a set of instructions that will help you disable authentication on your File Shares.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Registry Settings Required&lt;/U&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UseAuthentication"=dword:0&lt;BR&gt;&lt;BR&gt;[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Share]&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UserList"="someuser;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ROUserList"=""&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Type"=dword:0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Path"="Temp"&lt;BR&gt;&lt;BR&gt;By default the system should have UseAuthentication = 1.&lt;BR&gt;Boot a 6.0 image with the smb server.&lt;BR&gt;Configure a share with a username and password (someuser/somepassword).&lt;BR&gt;Restart the smb server.&lt;BR&gt;&lt;BR&gt;You should now be able to access the share, someuser/somepassword will be &lt;BR&gt;required.&lt;BR&gt;&lt;BR&gt;Using the remote registry editor change the UseAuthentication dword to 0.&lt;BR&gt;Restart the smb server.&lt;BR&gt;&lt;BR&gt;You should now be able to access the share without the username/password &lt;BR&gt;prompt.&lt;BR&gt;&lt;BR&gt;Restarting the smb server with the command:&amp;nbsp; "services refresh SMB0:"&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1878478" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/cenet/archive/tags/Auther_3A00_++Alexander+T.+Bussmann/default.aspx">Auther:  Alexander T. Bussmann</category></item></channel></rss>