By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

how to declare globally unique identifier (GUID)

P: n/a
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
from setupapi.dll
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2005-04-01, notregister <no*********@discussions.microsoft.com> wrote:
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
from setupapi.dll


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 :)
--
Tom Shelton [MVP]
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.