VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Create a Globally Unique Identifier (GUID)

Waty Thierry  (60 Submissions)   Windows System Services   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Tue 30th March 1999   Mon 8th February 2021

Create a Globally Unique Identifier (GUID)

API Declarations


' * Programmer Name : Waty Thierry
' * Web Site : www.geocities.com/ResearchTriangle/6311/
' * E-Mail : [email protected]
' * Date : 22/10/98
' * Time : 15:50
' * Module Name : GUID_Module
' * Module Filename : sGUID.bas
' **********************************************************************
' * Comments : Create a Globally Unique Identifier (GUID)
' *
' * Samples:
' * {3201047B-FA1C-11D0-B3F9-004445535400}
' * {0547C3D5-FA24-11D0-B3F9-004445535400}
' *
' **********************************************************************

Option Explicit
DefLng A-Z

Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(0 To 7) As String * 1
End Type

Declare Function CoCreateGuid Lib "ole32.dll" (tGUIDStructure As GUID) As Long

Const mciLen As Integer = 4


Rate Create a Globally Unique Identifier (GUID) (2(2 Vote))
Create a Globally Unique Identifier (GUID).bas

Create a Globally Unique Identifier (GUID) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters