Groups | Blog | Home
all groups > vb.net > march 2005 >

vb.net : how to declare globally unique identifier (GUID)


notregister
3/31/2005 9:45:06 PM
Hi

i looking for example of declaring and use of GUID, the msdn example is very
confusing, can anyone help me?

if my GUID is F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4, how do i store it in a
variable so that later on i can use it during an API call SetupDiGetClassDevs
Tom Shelton
3/31/2005 10:13:47 PM
[quoted text, click to view]

Imports System.Runtime.InteropServices

Public myGUID As New Guid ("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4")

....

Public Declare Auto Function SetupDiGetClassDevs Lib "Setupapi.dll" _
(ByRef ClassGuid As Guid, _
ByVal Enumerator As String, _
ByVal hwndParent As IntPtr, _
ByVal Flags As Integer) As IntPtr

Anyway, should look something like that anyway :)
--
AddThis Social Bookmark Button