<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by janverge</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/janverge/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by janverge</title>
		<link>http://channel9.msdn.com/Niners/janverge/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/janverge/Discussions</link>
	<language>en</language>
	<pubDate>Tue, 18 Jun 2013 22:27:42 GMT</pubDate>
	<lastBuildDate>Tue, 18 Jun 2013 22:27:42 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - How to detect IP address/Mac Address and Hostname of the installed Network Printer.</title>
		<description><![CDATA[<p>My code which I read about on the other forum is below:<br>
<br>
<br>
<font color="#008080" size="2">DirectorySearcher</font><font size="2"> srch = </font>
<font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DirectorySearcher</font><font size="2">();<br>
</font><font color="#008080" size="2">DirectoryEntry</font><font size="2"> entry = srch.SearchRoot;<br>
</font><font color="#0000ff" size="2"><br>
string</font><font size="2"> domain = (</font><font color="#0000ff" size="2">string</font><font size="2">)entry.Properties[</font><font color="#800000" size="2">&quot;name&quot;</font><font size="2">][0];
</font><font color="#008080" size="2">DirectoryEntry</font><font size="2"> DomainEntry =
</font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">DirectoryEntry</font><font size="2">(</font><font color="#800000" size="2">&quot;WinNT://&quot;</font><font size="2"> &#43; domain);</p>
<p>DomainEntry.Children.SchemaFilter.Add(</font><font color="#800000" size="2">&quot;computer&quot;</font><font size="2">);
</font><font color="#008000" size="2">//&quot;UNIQUE&quot;); //computer dn</p>
<p></font><font color="#008000" size="2">// To Get all the System names And Display with the Ip Address<br>
</font><font color="#0000ff" size="2">foreach</font><font size="2"> (</font><font color="#008080" size="2">DirectoryEntry</font><font size="2"> machine
</font><font color="#0000ff" size="2">in</font><font size="2"> DomainEntry.Children)<br>
{</p>
<p></font><font color="#0000ff" size="2">string</font><font size="2">[] Ipaddr = </font>
<font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#0000ff" size="2">string</font><font size="2">[3];<br>
Ipaddr[0] = machine.Name;<br>
</font><font color="#008000" size="2">// string guid = machine.Guid.ToString();<br>
</font><font size="2">System.Net.</font><font color="#008080" size="2">IPHostEntry</font><font size="2"> Tempaddr =
</font><font color="#0000ff" size="2">null</font><font size="2">;<br>
</font><font color="#008080" size="2">Console</font><font size="2">.WriteLine(</font><font color="#800000" size="2">&quot;&gt;&quot;</font><font size="2"> &#43; Ipaddr[0]);</font><font color="#008000" size="2">&nbsp;
<br>
</font><font size="2"></font><font color="#0000ff" size="2">try</font><font size="2">{&nbsp;<br>
</font><font color="#008000" size="2">&nbsp;</font><font size="2">Tempaddr = (System.Net.</font><font color="#008080" size="2">IPHostEntry</font><font size="2">)</font><font color="#008080" size="2">Dns</font><font size="2">.GetHostEntry(machine.Name);
<br>
</font><font size="2">}<br>
</font><font color="#0000ff" size="2">catch</font><font size="2"> (</font><font color="#008080" size="2">Exception</font><font size="2"> ex)<br>
{ IPx.Add(machine.Name); </font><font color="#0000ff" size="2">continue</font><font size="2">;<br>
}</p>
<p>System.Net.</font><font color="#008080" size="2">IPAddress</font><font size="2">[] TempAd = Tempaddr.AddressList;</p>
<p></font><font color="#0000ff" size="2">foreach</font><font size="2"> (</font><font color="#008080" size="2">IPAddress</font><font size="2"> TempA
</font><font color="#0000ff" size="2">in</font><font size="2"> TempAd)<br>
{<br>
Ipaddr[1] = TempA.ToString();<br>
</font><font color="#008000" size="2">//if (Ipaddr[1].ToString() == &quot;10.25.1.222&quot;) { Console.WriteLine(&quot;found sato printer.&quot;); break; }<br>
</font><font color="#0000ff" size="2">byte</font><font size="2">[] ab = </font><font color="#0000ff" size="2">new</font><font size="2">
</font><font color="#0000ff" size="2">byte</font><font size="2">[6];<br>
</font><font color="#0000ff" size="2">int</font><font size="2"> len = ab.Length;<br>
</font><font color="#008000" size="2">// This Function Used to Get The Physical Address<br>
</font><font color="#0000ff" size="2">int</font><font size="2"> r = SendARP((</font><font color="#0000ff" size="2">int</font><font size="2">)TempA.Address, 0, ab,
</font><font color="#0000ff" size="2">ref</font><font size="2"> len);<br>
</font><font color="#0000ff" size="2">string</font><font size="2"> mac = </font><font color="#008080" size="2">BitConverter</font><font size="2">.ToString(ab, 0, 6);<br>
Ipaddr[2] = mac;<br>
}</p>
<p></font><font color="#008080" size="2">Console</font><font size="2">.WriteLine(</font><font color="#800000" size="2">&quot;\t\t&quot;</font><font size="2"> &#43; Ipaddr[2].ToString().Trim() &#43;
</font><font color="#800000" size="2">&quot;\t &quot;</font><font size="2"> &#43; Ipaddr[1].ToString().Trim() &#43;
</font><font color="#800000" size="2">&quot;\t\t &quot;</font><font size="2"> &#43; Ipaddr[0].ToString().Trim() &#43;
</font><font color="#800000" size="2">&quot; &quot;</font><font size="2">);</p>
<p>}<br>
<br>
<br>
but this does not detect an installed printer. The printer is a barcode printer. I know the printer IP address and location but my concern is how to detect it programmatically.
<br>
<br>
Is there a way to identify an unshared printer over the network?<br>
<br>
I hope anyone would be kind enough to reply me asap or it would be great to email me at janverge@gmail.com<br>
<br>
Thanks alot Happy New Year!!!<br>
<br>
</p>
</font>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/251194-How-to-detect-IP-addressMac-Address-and-Hostname-of-the-installed-Network-Printer/251194#251194</link>
		<pubDate>Thu, 04 Jan 2007 02:59:52 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/251194-How-to-detect-IP-addressMac-Address-and-Hostname-of-the-installed-Network-Printer/251194#251194</guid>
		<dc:creator>janverge</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/janverge/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Longest Method Name In .NET Framework</title>
		<description><![CDATA[<p>Can someone help me out from this problem. I am unable to&nbsp; resolve how to detect a network printer's IP address and Mac address over the network.
</p>
<p>&nbsp;</p>
<p>There is a code something like this over the internet but I am unable to detect the printer name I am looking for:</p>
<p>DirectorySearcher srch = new DirectorySearcher(); <br>
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryEntry entry = srch.SearchRoot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;string domain = (string)entry.Properties[&quot;DC&quot;][0]; </p>
<p>DirectoryEntry DomainEntry = new DirectoryEntry(&quot;WinNT://&quot; &#43; domain);</p>
<p>&nbsp;&nbsp;&nbsp;DomainEntry.Children.SchemaFilter.Add(this.txtSchemaFilter.Text.Trim()); //&quot;UNIQUE&quot;); //computer dn</p>
<p><br>
&nbsp;&nbsp;&nbsp;&nbsp;foreach(DirectoryEntry machine in DomainEntry.Children)<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string[] Ipaddr = new string[3];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ipaddr[0] = machine.Name;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Net.IPHostEntry Tempaddr = null;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.Status.Text = &quot;Collecting Information...&quot;&#43;Ipaddr[0];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tempaddr = (System.Net.IPHostEntry)Dns.GetHostByName(machine.Name);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(Exception ex)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Windows.Forms.ListViewItem TempItem1 = new ListViewItem(machine.Name);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.lstExclude.Items.Add(TempItem1);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Net.IPAddress[] TempAd = Tempaddr.AddressList;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach(IPAddress TempA in TempAd)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ipaddr[1] = TempA.ToString();<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//if(Ipaddr[1].ToString() !=&quot;10.25.1.221&quot;) {isvalid=false; break;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isvalid= true;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;byte[] ab = new byte[6];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int len = ab.Length;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// This Function Used to Get The Physical Address<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int r = SendARP( (int) TempA.Address, 0, ab, ref len );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string mac = BitConverter.ToString( ab, 0, 6 );</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ipaddr[2] = mac;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Windows.Forms.ListViewItem TempItem = new ListViewItem(Ipaddr);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.ListHostIP.Items.Add(TempItem);<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp; <br>
&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(Ipaddr[0]!=null)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(( Ipaddr[1]==null) &amp;&amp; ( Ipaddr[2]==null))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Write(&quot; &quot; &#43; Ipaddr[0] &#43;&quot;\r\n&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(( Ipaddr[1]!=null) &amp;&amp; ( Ipaddr[2]==null))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Write(&quot; &quot; &#43; Ipaddr[0]&#43; &quot;\t\t &quot; &#43; Ipaddr[1]&#43;&quot;\t\t &quot; &#43; &quot;\r\n&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Write(&quot;WorkGroup: &quot; &#43; Ipaddr[0]&#43; &quot;\t\t &quot; &#43; Ipaddr[1]&#43;&quot;\t\t &quot; &#43; Ipaddr[2] &#43;&quot;\r\n&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch{}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Text = &quot;System Info &quot; &#43; this.ListHostIP.Items.Count.ToString();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;try{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Flush();<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;catch{}<br>
&nbsp;&nbsp;&nbsp;&nbsp;try{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Close();<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
&nbsp;&nbsp;&nbsp;&nbsp;catch{}<br>
<br>
Kindly help me out tnx..</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/250634-Longest-Method-Name-In-NET-Framework/37eabed217f6487a9c4f9dea014e5343#37eabed217f6487a9c4f9dea014e5343</link>
		<pubDate>Wed, 03 Jan 2007 01:59:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/250634-Longest-Method-Name-In-NET-Framework/37eabed217f6487a9c4f9dea014e5343#37eabed217f6487a9c4f9dea014e5343</guid>
		<dc:creator>janverge</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/janverge/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Longest Method Name In .NET Framework</title>
		<description><![CDATA[<p>sorry but I am quite new to this forum. I am a bit confused on the right people I need to ask question to regarding my problem.</p>
<p>Hope you can help me out.</p>
<p>thanks<br>
</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/250634-Longest-Method-Name-In-NET-Framework/8ab5fb645b5240a2ae109dea014e530e#8ab5fb645b5240a2ae109dea014e530e</link>
		<pubDate>Mon, 18 Dec 2006 03:20:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/250634-Longest-Method-Name-In-NET-Framework/8ab5fb645b5240a2ae109dea014e530e#8ab5fb645b5240a2ae109dea014e530e</guid>
		<dc:creator>janverge</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/janverge/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.Net AJAX  1.0 RC1</title>
		<description><![CDATA[<p>sorry but I am quite new to this forum. I am a bit confused on the right people I need to ask question to regarding my problem.</p>
<p>Hope you can help me out.</p>
<p>thanks</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/250817-ASPNet-AJAX-10-RC1/cddf7d473de24bf987899dec00429830#cddf7d473de24bf987899dec00429830</link>
		<pubDate>Mon, 18 Dec 2006 03:12:45 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/250817-ASPNet-AJAX-10-RC1/cddf7d473de24bf987899dec00429830#cddf7d473de24bf987899dec00429830</guid>
		<dc:creator>janverge</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/janverge/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>