News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Convert string to guid

Started by donkey, September 19, 2009, 08:24:36 PM

Previous topic - Next topic

donkey

I'm looking for an API function that converts a string GUID to a numeric GUID structure, can't seem to find one but I would assume that there must be one. The strings are read from the registry in the format {2A75196C-D9EB-4129-B803-931327F72D5C} and I need to convert it to a usable GUID structure. Failing a Windows API function I guess I will have to write my own but its a PITA to have to write the parser and all of the ascii to hex supporting functions for a function that's only executed once and is optional.

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Ossa

Hi,

perhaps use CLSIDFromString? I think it should work... give it a go.

Ossa
Website (very old): ossa.the-wot.co.uk

donkey

Thanks Ossa,

missed that one combing through MSDN, it works fine.

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable