<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1912286132689275596</id><updated>2011-11-27T16:00:24.211-08:00</updated><category term='Thermal Printer'/><category term='CashDrawer'/><category term='HTC'/><category term='Change MAC'/><category term='NIC'/><category term='IP Address'/><category term='EPSON'/><category term='MMF Cash Drawer'/><category term='POS'/><category term='warmboot'/><category term='VC++'/><category term='MAC'/><category term='eVC'/><title type='text'>Anuradha</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1912286132689275596.post-1719710891237854063</id><published>2010-03-14T11:15:00.000-07:00</published><updated>2010-03-14T11:33:48.925-07:00</updated><title type='text'>GSM Survey</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_GWA1lTLeXSk/S50r_4OiZcI/AAAAAAAAAAM/pBkg1mlF43g/s1600-h/CellTower.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_GWA1lTLeXSk/S50r_4OiZcI/AAAAAAAAAAM/pBkg1mlF43g/s320/CellTower.jpg" alt="" id="BLOGGER_PHOTO_ID_5448559500613281218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;Hi there &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;Ummm..., after some time, traveling far away from home. The climate changes, people changes and many things including Mobile Base Stations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;I, Was thinking, well... U know.., the idea is to build a survey module with all the facts I can gather for a given BT i.e. Signal Strength, BS ID, Frequency, etc...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;Ok.. the blog is open for your comments.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;And I will update my findings.  Today (Now in fact) I gonna start writing the Win CE app.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1912286132689275596-1719710891237854063?l=anuradhai4i.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/1719710891237854063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anuradhai4i.blogspot.com/2010/03/gsm-survey.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/1719710891237854063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/1719710891237854063'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/2010/03/gsm-survey.html' title='GSM Survey'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_GWA1lTLeXSk/S50r_4OiZcI/AAAAAAAAAAM/pBkg1mlF43g/s72-c/CellTower.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1912286132689275596.post-576996825535157204</id><published>2010-02-16T03:21:00.000-08:00</published><updated>2010-02-16T03:26:58.441-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='warmboot'/><category scheme='http://www.blogger.com/atom/ns#' term='eVC'/><category scheme='http://www.blogger.com/atom/ns#' term='HTC'/><category scheme='http://www.blogger.com/atom/ns#' term='VC++'/><title type='text'>Warm Booting Windows Mobile 6.0</title><content type='html'>&lt;span style="color: rgb(51, 102, 255);"&gt;Hi...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;I was playing around my new HTC Kaiser and ummm... some times feel if there is a way to reboot dis and refresh the system, specially, after installing a new program.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Find below what I found on the net... I assume you have configured your ActiveSync correctly and know basics of VC++&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Ok here it is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Include this in the header of your CPP code &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;#include &lt;winioctl.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;#define IOCTL_HAL_REBOOT CTL_CODE(FILE_DEVICE_HAL, 15, METHOD_BUFFERED,FILE_ANY_ACCESS)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;extern "C" __declspec(dllimport) BOOL KernelIoControl(&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;DWORD dwIoControlCode,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;LPVOID lpInBuf,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;DWORD nInBufSize,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;LPVOID lpOutBuf,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;DWORD nOutBufSize,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;LPDWORD lpBytesReturned);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;and here is the function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Have fun..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;:) &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1912286132689275596-576996825535157204?l=anuradhai4i.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/576996825535157204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/warm-booting-windows-mobile-60.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/576996825535157204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/576996825535157204'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/warm-booting-windows-mobile-60.html' title='Warm Booting Windows Mobile 6.0'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1912286132689275596.post-990793728649141382</id><published>2010-02-13T13:30:00.000-08:00</published><updated>2010-02-13T13:42:11.092-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MMF Cash Drawer'/><category scheme='http://www.blogger.com/atom/ns#' term='CashDrawer'/><category scheme='http://www.blogger.com/atom/ns#' term='Thermal Printer'/><category scheme='http://www.blogger.com/atom/ns#' term='EPSON'/><category scheme='http://www.blogger.com/atom/ns#' term='POS'/><title type='text'>Kicking out the Printer Driven CashDrawer</title><content type='html'>&lt;span style="color: rgb(51, 255, 51);"&gt;Got panic? ummm its nt that kick... I basically wanted to explain how to send the Direct I/O commands to open the Printer Driven CashDrawer connected to a POS Printer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Prity simple...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;will just paste the code snippet grabbed from my VB (VB6) Code&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;Private Sub CmdOpenDevice_Click()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;OPOSPOSPrinter1.Open("TM-T88IVE") 'Open the PosPrinter&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;OPOSPOSPrinter1.ClaimDevice(10000) 'Waiting for 10 seconds to get the ctrl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;OPOSPOSPrinter1.DeviceEnabled = True&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;OPOSPOSPrinter1.PrintNormal(2&amp;amp;, Chr(l27) + Chr(112) + Chr(0) + Chr(50) + Chr(250))  'Key code for the OpenDrawer is 127, 112, 0, 50, 250&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;This will just kick it out&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;or else, ummm u may use the CashDrawer Service Object&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;like this&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Private Sub OpenDrawer()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;OPOSCashDrawer1.Open(StandardE) 'The Name of the device is StandardE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;OPOSCashDrawer1.ClaimDevice(10000)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;OPOSCashDrawer1.DeviceEnabled = True&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;OPOSCashDrawer1.OpenDrawer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;OPOSCashDrawer1.WaitForDrawerClose(100, 4500, 100, 100)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;Happy Cording&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1912286132689275596-990793728649141382?l=anuradhai4i.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/990793728649141382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/kicking-out-printer-driven-cashdrawer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/990793728649141382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/990793728649141382'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/kicking-out-printer-driven-cashdrawer.html' title='Kicking out the Printer Driven CashDrawer'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1912286132689275596.post-1807725497323060615</id><published>2010-02-11T12:46:00.000-08:00</published><updated>2010-02-11T21:03:03.313-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IP Address'/><category scheme='http://www.blogger.com/atom/ns#' term='NIC'/><category scheme='http://www.blogger.com/atom/ns#' term='MAC'/><category scheme='http://www.blogger.com/atom/ns#' term='Change MAC'/><title type='text'>Changing the MAC address of the NIC</title><content type='html'>Recently I wanted to change the MAC id of the NIC, and was searching in the net to find a solution for how to do this from a computer program (By not manually changing the Windows Registry). So I gonna share what I have found from my search.&lt;br /&gt;&lt;br /&gt;Please reply to this post with ur findings.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;'VB.NET 2005&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Imports System.Management&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Imports System.Security.AccessControl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Sub FillNetworkAdapters()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mc As System.Management.ManagementClass&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mo As ManagementObject&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        mc = New ManagementClass("Win32_NetworkAdapterConfiguration")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim moc As ManagementObjectCollection = mc.GetInstances()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        For Each mo In moc&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            If mo.Item("IPEnabled") = True Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                Dim strAdapter As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                strAdapter = mo.Item("Caption").ToString().Substring(11)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                ListBox1.Items.Add(strAdapter)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Next&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim rs As New RegistrySecurity()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        FillNetworkAdapters()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Label1.Text = ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Function GetMACAddress(ByVal Adapter As String) As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mc As System.Management.ManagementClass&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mo As ManagementObject&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        mc = New ManagementClass("Win32_NetworkAdapterConfiguration")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim moc As ManagementObjectCollection = mc.GetInstances()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        For Each mo In moc&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            If mo.Item("IPEnabled") = True Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                Dim strAdapter As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                strAdapter = mo.Item("Caption").ToString().Substring(11)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                If strAdapter = Adapter Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                    Return mo.Item("MacAddress").ToString()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Next&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Function DoPadding(ByVal x As String) As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim Ret As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim z As Integer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Ret = x&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        If Len(x) &lt;&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            For z = 1 To 4 - Len(x)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                Ret = "0" &amp;amp; Ret&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            Next&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Return Ret&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Function GetRoot(ByVal Adapter As String) As String&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim rs As New RegistrySecurity()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        ' Allow the current user to read and delete the key.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        '&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        rs.AddAccessRule(New RegistryAccessRule("Karnna", _&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            RegistryRights.FullControl, _&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            InheritanceFlags.None, _&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            PropagationFlags.None, _&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            AccessControlType.Allow))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim regKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim i As Integer = 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            Dim Root As String = "SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            Dim Last As String = DoPadding(i)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(Root &amp;amp; Last, True)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            regKey.SetAccessControl(rs)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                Dim cAdapter As String = regKey.GetValue("DriverDesc").ToString()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                If cAdapter = Adapter Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                    Return Root &amp;amp; Last&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            Catch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                ' Exit Do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            End Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            i += 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Loop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim regKey As Microsoft.Win32.RegistryKey&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim Addr As String = GetRoot(ListBox1.SelectedItem.ToString())&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(Addr, True)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        regKey.SetValue("NetworkAddress", "00e04c4d1dA2")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mc2 As System.Management.ManagementClass&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim mo2 As ManagementObject&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        mc2 = New ManagementClass("Win32_NetworkAdapterConfiguration")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim moc2 As ManagementObjectCollection = mc2.GetInstances()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Dim xIP As String()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        For Each mo2 In moc2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            If mo2.Item("IPEnabled") = True Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                Dim strAdapter&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                strAdapter = mo2.Item("Caption").ToString().Substring(11)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                If strAdapter = ListBox1.Text Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                    xIP = mo2.Item("IPAddress")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                    Label1.Text = xIP(0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;                End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;        Next&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51); font-weight: bold;"&gt;End Class&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1912286132689275596-1807725497323060615?l=anuradhai4i.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/1807725497323060615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/changing-mac-address-of-nic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/1807725497323060615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/1807725497323060615'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/changing-mac-address-of-nic.html' title='Changing the MAC address of the NIC'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1912286132689275596.post-6604404472352511115</id><published>2010-02-06T11:42:00.000-08:00</published><updated>2010-02-06T11:43:17.313-08:00</updated><title type='text'>My first blog post</title><content type='html'>Heys&lt;br /&gt;&lt;br /&gt;Though I was playing with computers for a very long time, this is my very first blog post. Hope to do more in here...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1912286132689275596-6604404472352511115?l=anuradhai4i.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anuradhai4i.blogspot.com/feeds/6604404472352511115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/my-first-blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/6604404472352511115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1912286132689275596/posts/default/6604404472352511115'/><link rel='alternate' type='text/html' href='http://anuradhai4i.blogspot.com/2010/02/my-first-blog-post.html' title='My first blog post'/><author><name>Anuradhai4i</name><uri>http://www.blogger.com/profile/13660298678688913207</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
