473,395 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to declare globally unique identifier (GUID)

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
1 3114
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Louis Frolio | last post by:
Greetings All, I have read many upon many articles here regarding GUID data types and uniqueness. There have been many opinions regarding the effectiveness of GUID's and when they should/should...
3
by: deko | last post by:
I have a situation where data is being imported from external tables. The Import Wizard (File > Get External Data > Import) is used to create and import tables from different sources (txt, xls,...
4
by: panik | last post by:
Hi, I'm looking for something similar to Encryption. I'd like to generate URL's with a format that avoids visible ID's (e.g. http://thesite/viewlink.aspx?ID=105) Instead, I'd like to generate a...
6
by: Mullin Yu | last post by:
hi, i have a web service that has file operations on Windows OS, and there may be a file concurrency issue if only one working directory e.g. c:\working therefore, i want to have a unique sub...
14
by: Chris Dunaway | last post by:
I have used Guid's as a unique identifier in data applications. But in a recent project, the length of the Guid's string is proving to be too long. Is there a method for generating a unique...
18
by: JJ | last post by:
Now I know this question has been asked many times, but I cannot seem to find a good site which summarises the methods possible in vb .net. I am after a way of producing a unique serial number...
4
by: ba.hons | last post by:
Hello all, Was wondering if anyone could provide some info on what could be a possible solution to a problem am having. I have to generate a Unique Identifier in C# which I will use to assign...
7
by: cj | last post by:
I need to choose a 20 char unique id for transactions handled by my multithreaded program. I can't decide if to use Dim uid As String = Guid.NewGuid.ToString uid = uid.Replace("-", "") uid =...
2
by: Ken | last post by:
Hi, I have a form whose control source is a view from SQL server 2005 database. The view has a primary key that is a unique identifier field with keys generated by newid() function from SQL server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.