Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: GUID generation (Read 1752 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

GUID generation

Hey :). How should I generate a GUID?

I see things like these defined in many Foobar components:

static const GUID guid_cfg_bogoSetting1 = { 0xbd5c777, 0x735c, 0x440d, { 0x8c, 0x71, 0x49, 0xb6, 0xac, 0xff, 0xce, 0xb8 } };

How do I generate a GUID in a proper way (other than the obvious of just randomizing values manually which is prone to yielding some value that was already created by somebody.

Re: GUID generation

Reply #1
Visual Studio comes with a tool called GUID Generator. Look for guidgen with your start menu search.

Re: GUID generation

Reply #2
Or in Visual Studio: menu Tools -> Create GUID

Re: GUID generation

Reply #3
Thank you both :). I didn't have it in the Start Menu but I found it in Program Files. I see it's the same thing VS invokes from Tools. Can generate exactly the output I need. Purrfect :).