Globally Unique Identifier or GUID is a 128-bit integer (16 bytes) that is used by some software applications across all computers and networks in order to provide a reference number which is unique or to identify a particular component. Because of this there's a very low probability that any two or more component has the same value.
GUID is also used in Windows Registry.
Example:
Internet Explorer {871C5380-42A0-1069-A2EA-08002B30309D}
Network {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}
Computer {20D04FE0-3AEA-1069-A2D8-08002B30309D}
Web Application: GUID Generator
Try here: http://www.windowsforus.com/guidgenerator/
Vb Script
Set TypeLib = CreateObject("Scriptlet.TypeLib")
NewGUID = TypeLib.Guid
WScript.Echo(left(NewGUID, len(NewGUID)-2))
Set TypeLib = Nothing
C#
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("GUID: {" + Guid.NewGuid().ToString()+ "}");
}
Visual Basic .Net 2008
Private Sub GenerateNewGUID()
Dim xGUID As String = System.Guid.NewGuid.ToString()
MessageBox.Show("{" & xGUID & "}")
End Sub
So, What's the use of this GUID to us? Sooner or later, As you study more and more about Registry Customizations... I'm sure you'll be reading this article again.
Sample Applications: Another Way to Add Icons to DesktopEnjoy!
Read more Articles: Windows Vista Tips, Tricks and Tweaks
No comments:
Post a Comment